Skip to main content

MCP server for karini copilots and webhook recipe tool integrations

Project description

Karini MCP Server

MCP (Model Context Protocol) server for integrating Karini AI copilots and webhook recipes with Claude Desktop and other MCP clients.

Features

  • 🤖 AI Copilot Integration - Ask questions and get AI-powered responses from your Karini copilots
  • 📄 Document Processing - Process documents stored in S3 through copilots and webhooks
  • 🔗 Webhook Recipes - Trigger asynchronous data processing workflows
  • 📊 Status Tracking - Monitor webhook execution status and results

Installation

Via uvx (Recommended)

uvx karini-mcp-server

Via pip

pip install karini-mcp-server

Configuration

Claude Desktop Setup

Edit your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

Full Configuration (All Features)

{
  "mcpServers": {
    "karini-mcp-server": {
      "command": "uvx",
      "args": ["karini-mcp-server@latest"],
      "env": {
        "KARINI_API_BASE": "https://app.karini.ai",
        "KARINI_COPILOT_ID": "your-copilot-id",
        "KARINI_API_KEY": "your-copilot-api-key",
        "WEBHOOK_API_KEY": "your-webhook-api-key",
        "WEBHOOK_RECIPE_ID": "your-webhook-recipe-id"
      }
    }
  }
}

Copilot Only Configuration

{
  "mcpServers": {
    "karini-mcp-server": {
      "command": "uvx",
      "args": ["karini-mcp-server@latest"],
      "env": {
        "KARINI_API_BASE": "https://app.karini.ai",
        "KARINI_COPILOT_ID": "your-copilot-id",
        "KARINI_API_KEY": "your-copilot-api-key"
      }
    }
  }
}

Webhook Only Configuration

{
  "mcpServers": {
    "karini-mcp-server": {
      "command": "uvx",
      "args": ["karini-mcp-server@latest"],
      "env": {
        "KARINI_API_BASE": "https://app.karini.ai",
        "WEBHOOK_API_KEY": "your-webhook-api-key",
        "WEBHOOK_RECIPE_ID": "your-webhook-recipe-id"
      }
    }
  }
}

Note: Only tools with valid configuration will be available. If webhook credentials are not provided, only copilot tools will appear.

Environment Variables

Variable Required For Description
KARINI_API_BASE All Base URL for Karini API (e.g., https://app.karini.ai)
KARINI_COPILOT_ID Copilot Tools Your copilot's unique identifier
KARINI_API_KEY Copilot Tools API key for copilot authentication
KARINI_WEBHOOK_API_KEY Webhook Tools API key for webhook authentication
KARINI_WEBHOOK_RECIPE_ID Webhook Tools Webhook recipe identifier

Available Tools

Copilot Tools

ask_karini_copilot

Ask questions to your Karini AI copilot and receive intelligent responses.

Parameters:

  • question (string, required): The question or query to ask
  • files (list, optional): S3 file paths to include in the query
    • Example: ["s3://bucket/document.pdf", "s3://bucket/data.txt"]

Webhook Tools

invoke_webhook_recipe

Trigger a webhook recipe for asynchronous data processing.

Parameters:

  • question (string, optional): Input message or query
  • files (list, optional): S3 file paths to process (content type auto-detected)
    • Example: ["s3://bucket/invoice.pdf", "s3://bucket/receipt.jpg"]
  • metadata (dict, optional): Additional context as key-value pairs
    • Example: {"user_id": "123", "priority": "high", "source": "email"}

Returns: JSON with request_id for status tracking

get_webhook_status

Check the status of webhook recipe executions.

Parameters:

  • request_id (string, optional): Specific request ID to check
  • limit (integer, optional): Number of recent requests to return (default: 5)

Development

Local Testing

# Clone repository
git clone https://github.com/yourusername/karini-mcp-server.git
cd karini-mcp-server

# Install dependencies
pip install -e .

# Run locally
python -m src.main

Project Structure

karini-mcp-server/
├── src/
│   ├── main.py              # Entry point
│   ├── server.py            # MCP server setup
│   ├── services/
│   │   ├── config.py        # Configuration management
│   │   └── client.py        # Karini API client
│   └── tools/
│       └── tools.py         # Tool definitions
├── pyproject.toml
└── README.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

karini_mcp_server_test-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

karini_mcp_server_test-0.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file karini_mcp_server_test-0.1.0.tar.gz.

File metadata

  • Download URL: karini_mcp_server_test-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for karini_mcp_server_test-0.1.0.tar.gz
Algorithm Hash digest
SHA256 56c1d0769239e1e6f42bb911808ef7d492cd76ac280db69a183abe0eb4471521
MD5 bcdf533760d8975b5c893c54c0caa834
BLAKE2b-256 ea5438c64adca68d54bc150a91a1a029c978f928942ebe877080092875ac648b

See more details on using hashes here.

File details

Details for the file karini_mcp_server_test-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for karini_mcp_server_test-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a0c1912952c4d03aeebdc92073f944c5ba68d2253ec5fcba20928ac10925362
MD5 54e1b66fd7295a20f68824af3e61e9e4
BLAKE2b-256 a300a4ffe4ce33afa471ebc3133e20f927523ae445f7a4217545aff2e358d737

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page