ragtag-mcp
A local RAG MCP server that enables AI tools like Claude to search indexed codebases and documentation using vector search with Ollama models.
README
ragtag-mcp: a local RAG setup for AI tools
Hacky MVP for local RAG search.
How to install
Clone repo
Clone this repo
cd /Users/suhdude/repos
gh repo clone weston-barger/ragtag-mcp
Pull down the codebases and documentation you want to index
You'll need local copies of the content you want to search. Example:
cd /Users/suhdude/repos
gh repo clone holoviz/param
gh repo clone holoviz/panel
gh repo clone bokeh/bokeh
Set up your rag_config.json file
Set up your rag_config.json to look like this
{
"indices": [],
"dbStoragePath": "/Users/suhdude/repos/ragtag-mcp/db",
"model": {
"embedding": "nomic-embed-text:latest",
"llm": "qwen3:latest"
}
}
the dbStoragePath is where your vector database for searching will live.
Set up vitrual environment and install requirements
You'll want to set up a python venv for this repo. Run
python3 -m venv .venv
source ./.venv/bin/activate
pip3 install -r requirements.txt --upgrade
Install Ollama + accompanying models
The main.py has a command that will help you do this on OSX. Run
python main.py osx_install
NOTE: you'll want to re-run the osx_install command if you change the embedding or llm models in the config.
Create your RAG search indices
Now fill our the indices section of your rag_config.json file. There is an example in example_rag_config.json. Then run
python main.py build
This may take a a bit. See python main.py build --help to see how to build one index at a time.
Claude instructions
Install the MCP server in your Claude project
Add
{
"mcpServers": {
"RAG": {
"command": "/Users/suhdude/repos/ragtag-mcp/.venv/bin/python3",
"args": [
"/Users/suhdude/repos/ragtag-mcp/main.py",
"serve"
]
}
}
}
to your .mcp.json file for your project.
Check install
Open claude an issue /mcp. You should see RAG!
Optional: Tell Claude to use the RAG search to get context
Add something to your CLAUDE.md file to tell it to use RAG to get context
(My project) relies on packages pkg1, pkg2, pkg3. Use the RAG search MCP server to understand how to use packages pkg1, pkg2, pkg3 when planning code changes.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.