Labsco
dragonjump logo

MCP ArcKnowledge

โ˜… 2

from dragonjump

Manage and query custom knowledge bases using webhook endpoints.

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

MCP ArcKnowledge

smithery badge arc knowledge MCP

How it works?

arc knowledge diagram

This is a Model Context Protocol (MCP) server for your custom webhook endpoints (knowledgebase).

With this you can you can easily manage and query your list of knowledge base(webhook endpoints). You can add new document sources by registering their URLs, and optionally provide a description and API key.

You can also list all the registered document sources and view their details.

When you're ready to ask/search, you can query the knowledge base with a text question , specifying which sources to search or leaving it blank to search all of them.

The tool will then aggregate the results from the queried sources and provide them to you.

Prerequisites

  • Go
  • Python 3.6+
  • Anthropic Claude Desktop app (or Cursor or Cline)
  • UV (Python package manager), install with curl -LsSf https://astral.sh/uv/install.sh | sh

Concept

Imagine being able to bridge 1 unified setup where you can connect all your custom knowledge base endpoints webhook in one configuration, eliminating the need for multiple MCP servers.

Demo

arcknowledge demo cursor arcknowledge demo cursor arcknowledge demo cline

See mcp cursor video

Architecture Overview

This application consists of simple main component:

Python MCP Server (main.py): A Python server implementing the Model Context Protocol (MCP), which provides standardized tools client to interact with data and invoke api call.

Data Storage

  • All storage is runtime local main python server.

Technical Details

  1. Client sends requests to the Python MCP server
  2. The MCP server lookup its runtime config knowledge base.
  3. Then based on your queries, it calls your knowledge base endpoint api,

Development

Crucial filesProject Structure

mcp-arcknowledge/
โ”œโ”€โ”€ main.py          # Main server implementation
โ”œโ”€โ”€ README.md           # Documentation
โ”œโ”€โ”€ requirements.txt    # Project dependencies

Cursor AI MCP Configuration

  1. Create an mcp.json file in your project root:
{
    "name": "mcp-webhook-ai-agent",
    "version": "1.0.0",
    "description": "Webhook AI agent with RAG capabilities",
    "main": "main.py",
    "tools": [
        {
            "name": "set_document_source",
            "description": "Register a new document source URL for RAG operations"
        },
        {
            "name": "list_document_sources",
            "description": "List all registered document sources"
        },
        {
            "name": "query_rag",
            "description": "Query the specified document sources using RAG"
        },
        {
            "name": "process_post_query",
            "description": "Process a POST request with a query payload"
        }
    ],
    "dependencies": {
        "fastmcp": ">=0.4.0",
        "requests": ">=2.31.0",
        "pydantic": ">=2.0.0"
    }
}
  1. Configure Cursor AI:

    • Open Cursor AI settings
    • Navigate to the MCP section
    • Add the path to your mcp.json file
    • Restart Cursor AI to apply changes
  2. Verify Configuration:

# Check if MCP is properly configured
fastmcp check mcp.json

# List available tools
fastmcp list

Adding New Features

  1. Define new models in main.py
  2. Add new tools using the @mcp.tool() decorator
  3. Update documentation as needed