Logo di Rag Code MCP

Rag Code MCP

Community
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.

AutoredoITmagic
Repositoryrag-code-mcp
LinguaGo
Fork
7
Stelle
55
Strumenti disponibili
0
Tipo di trasportostdio
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Rag Code MCP mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    55 stelle e 7 fork nel repository collegato.

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

Usa MCP Rag Code MCP con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Rag Code MCP, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Rag Code MCP come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Rag Code MCP.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "rag-code-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Rag Code MCP, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Rag Code MCP.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Rag Code MCP per aiutarmi con questa attività?
Rag Code MCP
Certo. Ho letto.
Ecco cosa ho trovato con Rag Code MCP.

Domande frequenti

A cosa serve il server MCP Rag Code MCP?

Rag Code MCP è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare Rag Code MCP MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Rag Code MCP con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Rag Code MCP con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Rag Code MCP, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego Rag Code MCP MCP a TypingMind?

Rag Code MCP funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre Rag Code MCP MCP in TypingMind?

Rag Code MCP mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare Rag Code MCP MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Rag Code MCP richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇