MCP Hub
Back to servers

RAGBrain MCP

Connects Claude Desktop to a RAGBrain knowledge base, providing semantic search, document retrieval, and namespace management across stored documents.

Tools
5
Updated
Dec 27, 2025

Deprecated

This project has moved to stache-ai - it is no longer maintained here.

RAGBrain MCP

Python 3.10+ License: MIT

MCP server that connects Claude Desktop to your RAGBrain knowledge base.

Install

pip install ragbrain-mcp

Configure Claude Desktop

Add to your config file:

OSPath
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "ragbrain": {
      "command": "ragbrain-mcp",
      "env": {
        "RAGBRAIN_URL": "http://localhost:8000"
      }
    }
  }
}

Restart Claude Desktop. Done.

Tools

ToolDescription
ragbrain_list_namespacesList namespaces with doc counts
ragbrain_searchSemantic search
ragbrain_browse_namespaceList docs in a namespace
ragbrain_get_documentGet full document by ID
ragbrain_discover_documentsFind docs by topic via summary search

Example prompts

  • "What namespaces do I have?"
  • "Search for machine learning"
  • "Show docs in work/projects"
  • "Get document abc-123"

Config

Environment variables:

VariableDefaultDescription
RAGBRAIN_URLhttp://localhost:8000RAGBrain API URL
RAGBRAIN_TIMEOUT60Request timeout (seconds)
RAGBRAIN_LOG_LEVELINFODEBUG, INFO, WARNING, ERROR
RAGBRAIN_MAX_RESULTS20Max search results
RAGBRAIN_MAX_DOCUMENT_LENGTH100000Max doc length (chars)

Development

git clone https://github.com/ragbrain/ragbrain-mcp.git
cd ragbrain-mcp
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
pytest
┌─────────────────┐     stdio      ┌─────────────────┐     HTTP      ┌─────────────────┐
│  Claude Desktop │ ◄────────────► │  RAGBrain MCP   │ ◄───────────► │  RAGBrain API   │
└─────────────────┘                └─────────────────┘               └─────────────────┘

Troubleshooting

Can't connect? Check RAGBrain is running: curl http://localhost:8000/health

Tools not showing? Verify config path, test with ragbrain-mcp, restart Claude Desktop.

Timeouts? Set RAGBRAIN_TIMEOUT higher.

License

MIT

Reviews

No reviews yet

Sign in to write a review