Code Index MCP — The AI Agent's Coding Knowledge Engine.
Install the Code Index MCP and give your agent real-time access to thousands of high-quality, AI-vetted resources, code snippets, and architecture patterns, powered by a blazing-fast full-text search engine.
With context-aware search, your agent becomes sharper, more efficient, and generates clean, working code in fewer attempts.
Why we built this
Modern AI agents are powerful, but they often miss the context needed to produce reliable code. By giving them direct access to a specialized knowledge base of patterns and documentation, we close that gap—enabling faster, more accurate coding. No more guessing. No more hallucinations.
Installation
- Install the CIDX CLI globally:
npm install -g cidx
Copied! - Initialize and configure CIDX:
cidx init
Copied!- This will open a browser window. Log in or register with GitHub (if you are already registered, just log in).
- Authorize CLI integration when prompted.
- Once complete, close the browser window and return to your terminal.
- The CLI will automatically set up your account keys.
- Connect CIDX to the MCP installation window:Copy and paste the output into the MCP installation window to complete setup.
cidx --mcp
Copied!
That's it! Your CIDX CLI is now configured and ready to use with MCP integrations.
MCP function reference
searchDocumentation
Allows the agent to query across indexed documentation sources. Returns relevant sections with high-precision scoring.
searchCodeSnippets
Find implementation examples, patterns, and code solutions that match your search query across all libraries.
searchArchitecturePatterns
Search for recommended project structures, design patterns, and architecture recommendations for web and game development.
getArchitecturePatternById
Retrieve the complete details of a specific architecture pattern, including full markdown content and implementation guidance.
getSnippetByDocumentationId
Retrieve code snippets specifically associated with a documentation entry. This allows precise access to the implementation examples for a particular documentation resource.