code-knowledge
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@code-knowledgefind callers of handleSubmit"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
code-knowledge
Drop the Serena + CodeGraph code-intelligence MCP layer into Claude Code — in any repo,
in seconds. Two local, zero-egress servers (no API keys, nothing leaves the machine), configured
to auto-track @latest and auto-start everywhere.
Serena — LSP: symbols, definitions, references, rename-safe edits. Live language server, so it's always fresh (no stored index). Needs
uvon PATH.CodeGraph — tree-sitter → SQLite call/import graph + symbol search. Returns verbatim source with callers + blast-radius. Self-syncing — a file watcher re-indexes on every save.
Self-contained: zero dependencies, plain Node ≥20, runs from any working directory.
Two ways to install (use both)
1. Personal — every repo, automatically (user scope)
Registers both servers at Claude Code user scope, so they auto-start in every project you
open — no per-repo config. Run once per machine. Also adds .codegraph/ + .serena/ to your
global gitignore so no repo needs its own entry.
node code-knowledge.js global2. Team-shareable — per repo (checked-in .mcp.json)
Run inside a repo. Writes/merges .mcp.json (preserving any other servers), gitignores the index
dirs, pre-builds the CodeGraph index, and appends a short "query these before grep" note to
CLAUDE.md. Commit .mcp.json + CLAUDE.md and your teammates inherit it on clone.
cd /path/to/other-repo
node /path/to/code-knowledge.js repo # flags: --no-index, --no-claude-mdBoth at once
node code-knowledge.js bothCheck your environment
node code-knowledge.js doctorAfter any install: RESTART Claude Code, then run
/mcp. MCP servers attach on restart, not mid-session. Project scope (.mcp.json) also prompts once to trust the repo's servers; user scope is trusted once.
Related MCP server: MCP Research Tools
Reuse it from anywhere
Published at https://github.com/bhanutejaI4E/code-knowledge — run from any repo, no clone:
npx -y github:bhanutejaI4E/code-knowledge doctor # check environment
npx -y github:bhanutejaI4E/code-knowledge repo # set up the current repo
npx -y github:bhanutejaI4E/code-knowledge global # user scope (once per machine)Or copy this folder next to your projects and call it by path (examples above). Forking it? Swap the handle for your own GitHub username.
The @latest policy (and its cost)
Both servers deliberately track the newest release:
CodeGraph →
@colbymchenry/codegraph@latest— npx re-checks npm on each start.Serena →
uvx --refresh …— uvx re-resolves the git source on each start.
Trade-off: each launch does a quick upstream check (a little startup latency + needs network), and
an occasional CodeGraph version bump may want a fresh init if its index schema changes. If a bad
release ever lands, pin a server to an exact version in lib/servers.js (e.g.
@colbymchenry/codegraph@1.1.6, or a Serena git tag) and re-run the installer.
Files
File | Role |
CLI entry / command dispatch | |
Single source of truth for both server definitions | |
User-scope registration + global gitignore | |
Per-repo | |
Prerequisite + registration report | |
Shared helpers | |
The CLAUDE.md guidance block |
This server cannot be deployed
Maintenance
Related MCP Connectors
No-data MCP handoff for local Claude Code to Codex harness moves. $49 lifetime.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Work on your own computers from Claude or ChatGPT: run commands, edit and search files.
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Related MCP Servers
- AlicenseAqualityBmaintenanceCode intelligence MCP server for Claude Code providing multi-project code graph, semantic search, session history, knowledge base, and web search.154MIT
- AlicenseNot gradedqualityDmaintenanceLocal-first MCP server that gives Claude Code web search, page reading, video transcription, and image analysis — without paid API keys. Runs SearXNG + whisper.cpp natively on Apple Silicon for zero-cost, low-latency research workflows.1MIT
- AlicenseNot gradedqualityBmaintenanceLocal MCP servers that give Claude Code access to other tools mid-session.GPL 3.0
- AlicenseNot gradedqualityBmaintenanceAn MCP server that indexes local code repositories, extracting symbols and call graphs to give Claude precise, structural answers with real file paths and line numbers. Runs entirely locally with no network requests, for privacy-focused code understanding.4,927 npmMIT