rag-knowledge-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@rag-knowledge-mcpsearch for details on ACME company"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RAG Knowledge Base MCP Server
This is an MCP server I use to connect a RAG knowledge base to Claude Desktop, Claude Code, and other things.
Setup
uv sync --extra dev # installs pytest testsIngesting Documents
The Chroma backend does embedding and retrieval (you can use any sort of embedding/retrieval by implementing AbstractRagBackend)
Default configuration assumes the docs will be in knowledge-base in the project root.
Anything with that name is git-ignored, so one can create a symlink named knowledge-base pointing elsewhere.
The directory can also be configured by copying example.env to .env and...
RAG_KNOWLEDGE_DIR=./knowledge-base # <--- changing this to something elseWhat my directory looks like (more or less):
knowledge-base
├── companies
│ └── frobozz-co.md
│ └── acme.md
├── developers
│ └── wesley-hinkle.md
└── projects
| ├── magic-api-gateway.md
| ├── zork-legacy-cms.md
| ├── torch-saas.md
| ├── grue-detector.md
| ├── zorkmid-sdk.md
| ├── hello-footpad.md
| ├── anvil.md
└── skills-mapping.mdOnce the documents are in place:
uv run python ingest.pyor just
make embeddingsRelated MCP server: RAGBrain MCP
Client Configuration
Claude Desktop
Add to Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"rag-knowledge": {
"command": "/absolute/path/to/uv",
"args": [
"run",
"--directory",
"/absolute/path/to/this/project",
"python",
"rag_knowledge_mcp.py"
],
"env": {
"LOG_LEVEL": "INFO"
}
}
}
}Note: Claude Desktop did not seem to have uv in its path so I used the
absolute path returned from which uv
Claude Code
https://code.claude.com/docs/en/mcp
Installs with --scope local by default (claude in CWD)
claude mcp add rag-knowledge -- uv run --directory /absolute/path/to/this/project python rag_knowledge_mcp.pyAdd --scope user for claude in any directory:
claude mcp add --scope user rag-knowledge -- uv run --directory /absolute/path/to/this/project python rag_knowledge_mcp.pyBefore I managed to work out the syntax above I created a wrapper script:
claude mcp add --transport stdio rag-knowledge ~/.bin/rag-knowledge-mcpThe contents of wrapper-example.sh can be copied and modified
#!/usr/bin/env bash
set -euo pipefail
PROJECT_DIR="$HOME/path/to/this/project"
UV="$(which uv)"
echo "$PROJECT_DIR"
echo "$UV"
export LOG_LEVEL="${LOG_LEVEL:-INFO}"
cd "$PROJECT_DIR"
exec "$UV" run python rag_knowledge_mcp.pyThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/evokateur/rag-knowledge-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server