Logo vun Rag Code MCP

Rag Code MCP

Communautéit
doITmagic

Privacy-first semantic code navigation MCP server using RAG. Features deep AST multi-language support (Go, PHP/Laravel/WP, JS/TS/React, Python), 100% local LLMs (Ollama), and vector search (Qdrant) for AI IDEs like Antigravity, Cursor, Windsurf, Copilot, and Claude.

EditeurdoITmagic
Repositoryrag-code-mcp
SproochGo
Forks
7
Stären
55
Disponibel Tools
0
Transporttypstdio
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Rag Code MCP stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    55 Stären an 7 Forks aus dem verlinkte Repository.

RagCode MCP - Make Your Codebase AI-Ready

The privacy-first MCP server that transforms any repository into an AI-ready codebase with semantic search and RAG.

RagCode is a Model Context Protocol (MCP) server that instantly makes your project AI-ready. It enables AI assistants like GitHub Copilot, Cursor, Windsurf, and Claude to understand your entire codebase through semantic vector search, bridging the gap between your code and Large Language Models (LLMs).

Built with the official Model Context Protocol Go SDK, RagCode provides 9 powerful tools to index, search, and analyze code, making it the ultimate solution for AI-ready software development.

⚡ One-Command Installation

No Go, no build tools, no configuration needed. Just Docker.

Linux (amd64)

bash
curl -fsSL https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_linux_amd64.tar.gz | tar xz && ./ragcode-installer -ollama=docker -qdrant=docker

macOS (Apple Silicon / Intel)

bash
# Apple Silicon (M1/M2/M3)
curl -fsSL https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_darwin_arm64.tar.gz | tar xz && ./ragcode-installer -ollama=docker -qdrant=docker

# Intel Macs
curl -fsSL https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_darwin_amd64.tar.gz | tar xz && ./ragcode-installer -ollama=docker -qdrant=docker

Windows (PowerShell)

powershell
Invoke-WebRequest -Uri "https://github.com/doITmagic/rag-code-mcp/releases/latest/download/rag-code-mcp_windows_amd64.zip" -OutFile "ragcode.zip"; Expand-Archive ragcode.zip -DestinationPath . -Force; .\ragcode-installer.exe -ollama=docker -qdrant=docker

That's it! The installer automatically:

  • ✅ Downloads and installs the rag-code-mcp binary
  • ✅ Sets up Ollama and Qdrant in Docker containers
  • ✅ Downloads required AI models (phi3:medium, mxbai-embed-large)
  • ✅ Configures your IDE (VS Code, Cursor, Windsurf, Claude Desktop)
  • ✅ Adds binaries to your PATH

🔄 Keep Updated

The auto-update feature is available starting with v1.1.18.

How to Upgrade:

  1. If you are on an older version (< v1.1.18): Your version does not know the update command. You must re-run the installation command (the curl command above) one last time. (Don't worry, your indexes and configuration will be preserved).

  2. If you are on v1.1.18 or newer: Simply run:

    bash
    rag-code-mcp --update

For new installations: The update system is built-in. Use the installer once, then simply run rag-code-mcp --update anytime to get the latest features.

📖 Full Installation Guide → | Windows WSL Setup →


🎯 Zero-Config Usage

Once installed, you don't need to configure anything:

  1. Open your project in your IDE (VS Code, Cursor, Windsurf)
  2. Ask your AI assistant a question about your code
  3. That's it! RagCode automatically indexes and answers
💬 "How does the authentication system work?"
💬 "Find all API endpoints in this codebase"
💬 "Show me the User model and its relationships"

First query triggers background indexing. Subsequent queries are instant.


📋 Table of Contents

SectionDescription
🔒 Privacy & Security100% local, zero cloud dependencies
🚀 Why RagCode?Performance benefits, comparisons
🛠️ MCP ToolsAll 9 tools explained
🌐 Supported LanguagesGo, PHP, Python support
💻 IDE IntegrationWindsurf, Cursor, VS Code, Claude
⚙️ ConfigurationAdvanced settings, models, env vars
🐛 TroubleshootingCommon issues and solutions
📚 DocumentationAll guides and references

🔒 Privacy-First: 100% Local AI

Your code never leaves your machine. RagCode runs entirely on your local infrastructure:

  • ✅ Local AI Models - Uses Ollama for LLM and embeddings (runs on your hardware)
  • ✅ Local Vector Database - Qdrant runs in Docker on your machine
  • ✅ Zero Cloud Dependencies - No external API calls, no data transmission
  • ✅ No API Costs - Free forever, no usage limits or subscriptions
  • ✅ Offline Capable - Works without internet (after initial model download)

Perfect for: Enterprise codebases, proprietary projects, security-conscious teams.


🚀 Why RagCode? Performance Benefits

5-10x Faster Code Understanding

TaskWithout RagCodeWith RagCodeSpeedup
Find authentication logic30-60s (read 10+ files)2-3s (semantic search)10-20x
Understand function signature15-30s (grep + read)1-2s (direct lookup)15x
Find all API endpoints60-120s (manual search)3-5s (hybrid search)20-40x

98% Token Savings

  • Without RagCode: AI reads 5-10 files (~15,000 tokens) to find a function
  • With RagCode: AI gets exact function + context (~200 tokens)

RagCode vs Cloud-Based Solutions

FeatureRagCode (Local)Cloud AI Search
Privacy✅ 100% local❌ Code sent to cloud
Cost✅ $0 forever❌ $20-100+/month
Offline✅ Works offline❌ Requires internet
Data Control✅ You own everything❌ Vendor controls data

RagCode vs Generic RAG

AspectGeneric RAGRagCode
ChunkingArbitrary text splitsSemantic units (functions, classes)
MetadataFilename onlyName, type, params, dependencies, lines
ResultsMay return partial codeAlways complete, runnable code

🛠️ 9 Powerful MCP Tools

ToolDescriptionUse When
search_codeSemantic search by meaningFirst choice for exploration
hybrid_searchKeyword + semantic for exact matchesNeed exact identifiers
get_function_detailsComplete function source codeKnow exact function name
find_type_definitionType/class with fields and methodsUnderstand data models
find_implementationsAll usages and callersBefore refactoring
list_package_exportsAll exported symbolsExplore unfamiliar packages
search_docsSearch Markdown documentationSetup, architecture info
get_code_contextCode snippet with contextHave file:line reference
index_workspaceReindex codebaseAfter major changes

📖 Full Tool Reference →


🌐 Multi-Language Code Intelligence

LanguageSupport LevelFeaturesDocs
Go✅ FullFunctions, types, interfaces, methods, AST analysis📖 Go Analyzer
PHP✅ FullClasses, methods, interfaces, traits, PHPDoc📖 PHP Analyzer
PHP + Laravel✅ FullEloquent models, routes, controllers, middleware📖 Laravel Analyzer
Python✅ FullClasses, functions, decorators, type hints, mixins📖 Python Analyzer
JavaScript/TypeScript🔜 PlannedComing soon (tree-sitter based)-

Multi-Workspace Support

RagCode automatically detects and manages multiple workspaces with isolated indexes.

📖 Workspace Detection → - Auto-detection, stable IDs, caching


💻 IDE Integration

RagCode works with all major AI-powered IDEs:

IDEStatusSetup
Windsurf✅ Auto-configuredJust install
Cursor✅ Auto-configuredJust install
VS Code + Copilot✅ Auto-configuredRequires VS Code 1.95+
Claude Desktop✅ Auto-configuredJust install
Antigravity✅ Auto-configuredJust install

📖 Manual IDE Setup → | VS Code + Copilot Guide →


📦 System Requirements

Minimum Requirements

ComponentRequirementNotes
CPU4 coresFor running Ollama models
RAM16 GB8 GB for phi3:medium, 4 GB for mxbai-embed-large, 4 GB system
Disk10 GB free~8 GB for models + 2 GB for data
OSLinux, macOS, WindowsDocker required for Qdrant

Recommended (for better performance)

ComponentRequirementNotes
CPU8+ coresBetter concurrent operations
RAM32 GBComfortable multi-workspace indexing
GPUNVIDIA 8GB+ VRAMSignificantly speeds up Ollama (optional)
Disk20 GB SSDFaster indexing and search

📖 Full Requirements →


📚 Documentation

Getting Started

Configuration & Operations

Language Analyzers

Technical Reference

External Resources


🤝 Contributing

We welcome contributions! Here's how you can help:

  • 🐛 Report Bugs
  • 💡 Request Features - Share ideas for new tools or languages
  • 🔧 Submit PRs - Improve code, docs, or add features
  • ⭐ Star the Project - Show your support

Development Setup

bash
git clone https://github.com/doITmagic/rag-code-mcp.git
cd rag-code-mcp
go mod download
go run ./cmd/rag-code-mcp

📄 License

RagCode MCP is open source software licensed under the MIT License.


🏷️ Keywords & Topics

semantic-code-search rag retrieval-augmented-generation mcp-server model-context-protocol ai-code-assistant vector-search code-navigation ollama qdrant github-copilot cursor-ai windsurf go php laravel python django flask fastapi code-intelligence ast-analysis embeddings llm-tools local-ai privacy-first offline-ai self-hosted on-premise zero-cost no-cloud private-code-search enterprise-ai secure-coding-assistant


Built with ❤️ for developers who want smarter AI code assistants

⭐ Star us on GitHub if RagCode helps your workflow!

Built and maintained by DO IT MAGIC SOFTWARE, custom software and applied AI from Pitești, Romania.

Questions? Open an Issue • Read the Docs • Join Discussions

Rag Code MCP MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Rag Code MCP verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Rag Code MCP als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Rag Code MCP an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "rag-code-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Rag Code MCP. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Rag Code MCP.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Rag Code MCP?
Rag Code MCP
Jo. Ech hunn et gelies.
Dat hunn ech mat Rag Code MCP fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Rag Code MCP benotzt?

Rag Code MCP ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Rag Code MCP MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Rag Code MCP mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Rag Code MCP MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Rag Code MCP verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Rag Code MCP MCP mat TypingMind?

Rag Code MCP leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Rag Code MCP MCP an TypingMind zur Verfügung?

Rag Code MCP stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Rag Code MCP MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Rag Code MCP eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇