deep-code-reasoning
A Model Context Protocol (MCP) server that provides advanced code analysis and reasoning capabilities powered by Google's Gemini AI
claude mcp add --transport stdio haasonsaas-deep-code-reasoning-mcp node /path/to/deep-code-reasoning-mcp/dist/index.js \ --env GEMINI_API_KEY="your-gemini-api-key"
How to use
This MCP server pairs Claude Code with Google's Gemini AI to provide a dual-model workflow for deep code reasoning. Claude handles local-context tasks, multi-file refactoring, and CLI-driven workflows, while Gemini brings a very large context window and execution capabilities to analyze long traces, logs, and distributed system behavior. The server orchestrates AI-to-AI conversations, escalation of complex analyses, and cross-model hypothesis testing, enabling you to inspect code paths, traces, and failures across services. To use it, configure the MCP server in Claude’s desktop integration or invoke the server directly via the node entrypoint; then leverage the provided tools to start conversations, escalate analyses, and trace execution paths across your codebase.
How to install
Prerequisites:
- Node.js 18 or later
- npm (comes with Node.js)
- Access to Gemini API (Gemini API key)
Step-by-step installation:
- Clone the repository:
git clone https://github.com/Haasonsaas/deep-code-reasoning-mcp.git
cd deep-code-reasoning-mcp
- Install dependencies:
npm install
- Set up your Gemini API key:
cp .env.example .env
# Edit .env and add your GEMINI_API_KEY
- Build the project (if applicable):
npm run build
- Start the MCP server (adjust path to the built index.js if not using dist):
npm run start
- Optional: configure Claude Desktop to connect to the MCP server using the provided command and path, and set GEMINI_API_KEY in the environment for the process.
Additional notes
Tips and notes:
- Ensure GEMINI_API_KEY is available in the environment where the MCP server runs.
- The MCP server is designed to integrate with Claude Desktop configuration; update the path in your Claude config to point to dist/index.js after build.
- If you change deployment paths, update the mcp_config command args accordingly.
- The server supports conversational, traditional, and cross-system analysis tools; refer to the README section on available tools for parameter formats.
- If you encounter connectivity or API quota issues with Gemini, verify your API key scope and ensure network access to Google services.
- For local development, you can simulate calls by using the example payloads shown in the tool documentation sections.
Related MCP Servers
roam-code
Architectural intelligence layer for AI coding agents. Structural graph, architecture governance, multi-agent orchestration, vulnerability mapping. 139 commands, 101 MCP tools, 26 languages, 100% local.
claude-historian
📜 An MCP server for conversation history search and retrieval in Claude Code
mcp-gm
wanna develop an app ❓
forge-orchestrator
Forge Orchestrator: Multi-AI task coordination. File locking, knowledge capture, drift detection. Rust.
CodeMCP
Code intelligence for AI assistants - MCP server, CLI, and HTTP API with symbol navigation, impact analysis, and architecture mapping
godot
GoPeak — The most comprehensive MCP server for Godot Engine. 95+ tools: scene management, GDScript LSP, DAP debugger, screenshot capture, input injection, ClassDB introspection, CC0 asset library. npx gopeak