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.1.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.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: karini_mcp_server_test-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ae5808591740190f1c034e70085aeaf371e7fc004bbc3b7b109ff33ea23081d4
MD5 3dfa02caaa9180e1ca54686c79e6f36b
BLAKE2b-256 095930f6187fb9f4578d789f5a3e9054775249b5157e2e8ad36cce1b4fa68648

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for karini_mcp_server_test-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 28f89301455c864ca14c3f8b286de7933a025eea7195a3fd534d2d4ce870921e
MD5 85b95311715660da5fab26e7c0a51d18
BLAKE2b-256 d1178f440b56e1a2541d573a26361201b2ceaf435576f733d8a9474d7b19740d

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