X-ray vision for your codebase — semantic knowledge graph & MCP server with 16 tools that saves AI coding agents 30%+ tokens. TF-IDF search, call graphs, impact analysis, dead code detection. Works with Claude Code, Cursor & Windsurf.
# CodeXRay [](https://www.npmjs.com/package/codexray) [](https://opensource.org/licenses/MIT) [](https://nodejs.org/) [](https://www.typescriptlang.org/) [](https://modelcontextprotocol.io/) [](https://github.com/NeuralRays/codexray) [](https://github.com/NeuralRays/codexray/pulls) [](https://github.com/NeuralRays/codexray/commits/main) [](https://github.com/NeuralRays/codexray) **X-ray vision for your codebase** — semantic knowledge graph that saves AI coding agents **30%+ tokens** and **25%+ tool calls**. Zero config, zero API keys, 100% local. > **One `codexray_context` call replaces 5-10 file reads.** Your AI agent queries a pre-built knowledge graph instead of scanning files one by one. <details> <summary><b>See the token savings in action</b></summary> ### Without CodeXRay (typical Claude Code session) ``` You: "Fix the authentication bug in the login flow" Claude Code: 1. grep "auth" across codebase → 800 tokens 2. Read auth/middleware.ts → 1,200 tokens 3. Read auth/service.ts
Agent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.
Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.
Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.
Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.
Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.
Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.