Nexus RAG MCP Server

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.

Category
Visit Server

README

Nexus RAG MCP Server 🧠

<div align="center">

License Python MCP Test

The "Second Brain" for your AI Assistant.

ConfigurationUsageToolsTroubleshooting

</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:

  1. Recall past conversations and decisions.
  2. Search your local codebase and notes.
  3. 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 ~/.nexus on 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 pandas 2.0 library and use pytest for 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:

  1. We use FastAPI.
  2. The DB is Postgres.
  3. 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:

  1. Source Path: File path (/docs/api.md).
  2. Relevance: Confidence score (0-1).
  3. 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.

System Design Architecture

Built with: Python 3.11 • Qdrant • Sentence-Transformers • RAGAS

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
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
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
VeyraX MCP

VeyraX MCP

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

Official
Featured
Local
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
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
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
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