Codebase Pkg
MCP server by Sylphie-Labs Verified · npm:@sylphie-labs
Codebase Pkg parses TypeScript, Python and Rust source into a Neo4j knowledge graph and exposes it to Claude Code over MCP. The agent can query the graph instead of re-reading files each session. It is for developers who use Claude Code on their own repositories.
Install Codebase Pkg
Built from the published package, never by AI.
claude mcp add codebase-pkg -- npx -y @sylphie-labs/codebase-pkgRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"codebase-pkg": {
"args": [
"-y",
"@sylphie-labs/codebase-pkg"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"codebase-pkg": {
"args": [
"-y",
"@sylphie-labs/codebase-pkg"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"codebase-pkg": {
"args": [
"-y",
"@sylphie-labs/codebase-pkg"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add codebase-pkg -- npx -y @sylphie-labs/codebase-pkg{
"mcpServers": {
"codebase-pkg": {
"args": [
"-y",
"@sylphie-labs/codebase-pkg"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add codebase-pkg npx -y @sylphie-labs/codebase-pkgGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the codebase-pkg block.
About
Codebase Pkg parses your TypeScript/TSX, Python, and Rust source tree into a Neo4j graph of functions, types, imports, call chains, constraints, and change history. It exposes that graph to Claude Code over MCP, so the agent can query it instead of re-grepping and re-reading files every session.
TypeScript is parsed in-process with ts-morph, Python through the stdlib ast module using a local python3 runtime, and Rust with bundled tree-sitter. A sync command updates only the changes since the last synced commit, using SHA-256 content hashes per entity. The project is a 0.x early release aimed at developers who use Claude Code on their codebase, including teams that want version-pinned installs.
Written from the project's README and checked against it.
Tools it gives your assistant
getModuleContextReturns functions, types, files and constraints in a feature area.getFunctionDetailReturns the full body, signature, JSDoc and recent changes for one function.getDataFlowTraverses the graph upstream or downstream from a node, default depth 3, max 6.getRecentChangesCross-references a concept with git history.getConstraintsReturns architectural invariants from constraints.json and the graph.getLogContextQueries log files on disk, filtered by query, service, severity or time.searchContentStructured grep that returns code-entity context, not just byte offsets.judgeConformityCompares working-tree code with the codebase's existing patterns and novelty.
What you need
- A Neo4j instance, or Docker to run one with init --docker
- Claude Code
- npm for installation
- Python 3.9+ on PATH, only to index .py files
Try asking
- Which functions call processOrder, and what depends on them?
- Show recent changes related to the billing module.
- Check whether my working-tree code fits the existing patterns.
Good to know
- Early 0.x release.
- Rust has no macro expansion and no type or trait resolution.
- Sync is a manual command unless you wire it into a hook or CI step.
- Python files are skipped with a warning if no Python runtime is found.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Codebase Pkg
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Codebase Pkg: common questions
Does Codebase Pkg require Docker?
No. The source says you can use an existing Neo4j instance instead, and init --docker is an option for running one per repo.
Which languages can Codebase Pkg index?
It indexes TypeScript and TSX, Python, and Rust. Python support needs a python3 or python runtime version 3.9 or newer.
How does Codebase Pkg keep the graph current?
After the initial seed, sync updates only the deltas since the last synced commit, using SHA-256 hashes per entity. It is a manual command unless you add it to a pre-push hook or CI step.
How do I install Codebase Pkg?
In Claude Code run claude mcp add codebase-pkg -- npx -y @sylphie-labs/codebase-pkg. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Codebase Pkg the official server?
Codebase Pkg is published by npm:@sylphie-labs from its verified domain in the official MCP Registry.
Is Codebase Pkg free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Codebase Pkg safe to use?
It scores 76 of 100. Grades: maintenance B, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Codebase Pkg?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Codebase Pkg work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
