dryad-rag-mcp

dryad-rag-mcp

Exposes a RAG document-search API as MCP tools (rag_health, rag_ingest, rag_query), enabling agents to index and search markdown documents with cited results through natural language.

Category
Visit Server

README

dryad-rag-mcp

A small Model Context Protocol server that exposes a RAG document-search API as agent-callable tools — rag_health, rag_ingest, and rag_query. It wraps dryad-rag-pipeline, so any MCP client (Claude Code, Claude Desktop, or your own client) can index and search markdown docs through tool calls instead of hand-rolled HTTP glue.

Why this exists

Most MCP server examples are toys that echo a string back. This one wraps a real, separately running HTTP service and is proven against it: the test suite spins up the actual FastAPI RAG service, spawns this server as a subprocess, connects a real MCP client over stdio, and asserts the retrieved chunks are semantically correct — not just that the tool call didn't crash.

Tools

Tool Description
rag_health Checks whether the RAG service is reachable.
rag_ingest Re-indexes the configured document set.
rag_query Searches the index; returns cited chunks with a similarity score. question (required), top_k (1-20, default 4).

Quickstart

npm install
npm run build

Point it at a running dryad-rag-pipeline instance:

RAG_API_BASE_URL=http://127.0.0.1:8000 npm start

Add to Claude Code

claude mcp add dryad-rag -- node /path/to/dryad-rag-mcp/dist/server.js

Or in .mcp.json:

{
  "mcpServers": {
    "dryad-rag": {
      "command": "node",
      "args": ["/path/to/dryad-rag-mcp/dist/server.js"],
      "env": { "RAG_API_BASE_URL": "http://127.0.0.1:8000" }
    }
  }
}

Running the tests

The test suite needs a checkout of dryad-rag-pipeline as a sibling directory (or set RAG_PIPELINE_DIR), with its Python virtualenv already set up:

git clone https://github.com/DryadAI/dryad-rag-pipeline ../dryad-rag-pipeline
cd ../dryad-rag-pipeline && python3 -m venv .venv && .venv/bin/pip install -r requirements-dev.txt
cd ../dryad-rag-mcp

npm run build
npm test

This starts the real RAG API on a test port, spawns this MCP server as a subprocess, connects an MCP Client over stdio, and exercises all three tools end to end — including asserting that a health question actually retrieves the FAQ/API-reference chunks that answer it, and that an out-of-range top_k is rejected.

Architecture

sequenceDiagram
    participant Agent as MCP Client (e.g. Claude)
    participant Server as dryad-rag-mcp (stdio)
    participant API as dryad-rag-pipeline (HTTP)

    Agent->>Server: callTool("rag_ingest")
    Server->>API: POST /ingest
    API-->>Server: {documents_ingested, chunks_created}
    Server-->>Agent: "Indexed 3 document(s)..."

    Agent->>Server: callTool("rag_query", {question})
    Server->>API: POST /query
    API-->>Server: ranked, cited chunks
    Server-->>Agent: formatted, citable text

License

MIT — see LICENSE.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured