Nexus RAG MCP Server
Enables AI agents with long-term memory and retrieval-augmented generation (RAG) capabilities, allowing them to recall past conversations, search local files, and learn user preferences.
README
Nexus RAG MCP Server 🧠
<div align="center">
The "Second Brain" for your AI Assistant.
Configuration • Usage • Tools • Troubleshooting
</div>
🚀 Overview
Nexus is a local Model Context Protocol (MCP) server that gives your AI agents (like Claude Desktop, Cursor, etc.) Long-Term Memory and RAG (Retrieval-Augmented Generation) capabilities.
It runs on your local machine, indexes your files, and allows your AI to:
- Recall past conversations and decisions.
- Search your local codebase and notes.
- Learn your preferences over time.
⚙️ Configuration (Zero-Setup)
You don't need to manually install Nexus. Just use uvx to run it directly from the repository.
1. Claude Desktop App
To use Nexus with Claude, add the following to your config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"nexus": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/kaushikkumarkr/RAG-MCP",
"nexus",
"serve"
]
}
}
}
Note: This requires uv to be installed. Nexus will automatically initialize its database at
~/.nexuson the first run.
2. Cursor / Windsurf / Other IDEs
Go to Settings > Features > MCP and add a new server:
- Name:
nexus - Type:
stdio - Command:
uvx --from git+https://github.com/kaushikkumarkr/RAG-MCP nexus serve
💬 Usage Examples
Once connected, you can talk to your AI naturally. Nexus will automatically trigger the right tools.
🧠 Memory (Long-Term Storage)
User: "Remember that for the 'Financial Dashboard' project, we depend on the
pandas2.0 library and usepytestfor testing."AI: "Understood. I've saved that context for the Financial Dashboard project." (Tool used:
remember)
🔍 Retrieval (RAG)
User: "How do we handle authentication in this codebase?"
AI: "According to
docs/auth_flow.md, we use JWT tokens via Auth0..." (Tool used:search_knowledge)
⚡ Context Injection
User: "I'm starting work on the backend API. Get me up to speed."
AI: "Checking project context... Okay, for the backend API:
- We use FastAPI.
- The DB is Postgres.
- Warning: Migration scripts are in
/alembic." (Tool used:get_project_context)
🛠️ Available Tools
| Tool | Description | Arguments |
|---|---|---|
search_knowledge |
Search your local documents. | query (str), limit (int) |
remember |
Store a fact or memory. | content (str), project (str), tags (list) |
recall |
Retrieve memories. | query (str) |
get_project_context |
Get full overview of a project. | project (str) |
get_user_preferences |
Get learned user habits. | None |
ingest_content |
Save content from other MCPs. | content (str), source (str) |
add_note |
Create a markdown note. | filename (str), content (str) |
list_sources |
List indexed files. | None |
🛡️ Citations & Grounding
Nexus citations are precise. Every answer includes:
- Source Path: File path (
/docs/api.md). - Relevance: Confidence score (0-1).
- Quote: Exact text chunk used.
❓ Troubleshooting
Server not starting?
Run the built-in status check to verify your database and config:
nexus status
"Tool not found" error?
Ensure you have restarted your client (Claude/Cursor) after editing the config file.
How do I see what's happening?
Nexus logs to stderr. In Claude Desktop, you can open the Developer Console to see the MCP logs in real-time.
🏗️ System Architecture
Nexus uses a Dual-Layer Cognitive Architecture that separates fast retrieval from deep understanding.

Built with: Python 3.11 • Qdrant • Sentence-Transformers • RAGAS
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.