1. Conduid
  2. Developer Tools
  3. RAG Code MCP
MCP server · Developer Tools

RAG Code MCP

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.

67Good

Scored 9 hours ago · breakdown

About RAG Code MCP

RAG Code MCP is an MCP server published by doITmagic in the Developer Tools category: 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.

The repository has 55 stars and 7 forks, with the last commit yesterday. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/doITmagic/rag-code-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (9)

find_implementationsAll usages and callers

Parameters not published.

find_type_definitionType/class with fields and methods

Parameters not published.

get_code_contextCode snippet with context

Parameters not published.

get_function_detailsComplete function source code

Parameters not published.

hybrid_searchKeyword + semantic for exact matches

Parameters not published.

index_workspaceReindex codebase

Parameters not published.

list_package_exportsAll exported symbols

Parameters not published.

search_codeSemantic search by meaning

Parameters not published.

search_docsSearch Markdown documentation

Parameters not published.

Ask AI

✦

Ask AI about RAG Code MCP

Powered by Claude · Grounded in docs

I know everything about RAG Code MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 9 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

1 check has not been run yet.

Releases

v1.1.21rag-code-mcp v1.1.21 · 1 Feb 2026Changelog 1d39d25755fdc6a5d441d4fe04ac8fe917183b8b feat(python): implement comprehensive Python analyzer (Dependency graph, Metaclass detection, Exact search) c284199e3a57a0afa44c961794eb174c0e6a833b feat: add community standards,…
v1.1.19rag-code-mcp v1.1.19 · 27 Jan 2026Changelog 2324a51c33677177632ae82049d7c5356b47b6b4 fix: lint errors (errcheck in tests and empty branch in detector)
v1.1.18rag-code-mcp v1.1.18 · 27 Jan 2026Changelog 4b24f6881b6689905cdbafd2a6b9f02528fb8e35 Add configurable workspace security via CLI flags for IDE configuration 99ed15cc7c14b0dd2fbfe757a86021a493b82796 Add security tests for Home directory rejection…
v1.1.17rag-code-mcp v1.1.17 · 26 Nov 2025Changelog
v1.1.16rag-code-mcp v1.1.16 · 26 Nov 2025Changelog

README

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)

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)

# 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)

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:

    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

Section Description
🔒 Privacy & Security 100% local, zero cloud dependencies
🚀 Why RagCode? Performance benefits, comparisons
🛠️ MCP Tools All 9 tools explained
🌐 Supported Languages Go, PHP, Python support
💻 IDE Integration Windsurf, Cursor, VS Code, Claude
⚙️ Configuration Advanced settings, models, env vars
🐛 Troubleshooting Common issues and solutions
📚 Documentation All 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

Task Without RagCode With RagCode Speedup
Find authentication logic 30-60s (read 10+ files) 2-3s (semantic search) 10-20x
Understand function signature 15-30s (grep + read) 1-2s (direct lookup) 15x
Find all API endpoints 60-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

Feature RagCode (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

Aspect Generic RAG RagCode
Chunking Arbitrary text splits Semantic units (functions, classes)
Metadata Filename only Name, type, params, dependencies, lines
Results May return partial code Always complete, runnable code

🛠️ 9 Powerful MCP Tools

Tool Description Use When
search_code Semantic search by meaning First choice for exploration
hybrid_search Keyword + semantic for exact matches Need exact identifiers
get_function_details Complete function source code Know exact function name
find_type_definition Type/class with fields and methods Understand data models
find_implementations All usages and callers Before refactoring
list_package_exports All exported symbols Explore unfamiliar packages
search_docs Search Markdown documentation Setup, architecture info
get_code_context Code snippet with context Have file:line reference
index_workspace Reindex codebase After major changes

📖 Full Tool Reference →


🌐 Multi-Language Code Intelligence

Language Support Level Features Docs
Go ✅ Full Functions, types, interfaces, methods, AST analysis 📖 Go Analyzer
PHP ✅ Full Classes, methods, interfaces, traits, PHPDoc 📖 PHP Analyzer
PHP + Laravel ✅ Full Eloquent models, routes, controllers, middleware 📖 Laravel Analyzer
Python ✅ Full Classes, functions, decorators, type hints, mixins 📖 Python Analyzer
JavaScript/TypeScript 🔜 Planned Coming 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:

IDE Status Setup
Windsurf ✅ Auto-configured Just install
Cursor ✅ Auto-configured Just install
VS Code + Copilot ✅ Auto-configured Requires VS Code 1.95+
Claude Desktop ✅ Auto-configured Just install
Antigravity ✅ Auto-configured Just install

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


📦 System Requirements

Minimum Requirements

Component Requirement Notes
CPU 4 cores For running Ollama models
RAM 16 GB 8 GB for phi3:medium, 4 GB for mxbai-embed-large, 4 GB system
Disk 10 GB free ~8 GB for models + 2 GB for data
OS Linux, macOS, Windows Docker required for Qdrant

Recommended (for better performance)

Component Requirement Notes
CPU 8+ cores Better concurrent operations
RAM 32 GB Comfortable multi-workspace indexing
GPU NVIDIA 8GB+ VRAM Significantly speeds up Ollama (optional)
Disk 20 GB SSD Faster 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

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

README fetched from the repository 9 hours ago. The original is authoritative.

Questions

About RAG Code MCP

How do I install RAG Code MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is RAG Code MCP safe to use with an AI agent?

Its trust score is 67 out of 100 (good). It passes 4 of the 5 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is RAG Code MCP still maintained?

Yes — the last commit was yesterday. The repository has 55 stars and 7 forks and 6 open issues.