Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 76
  • 1 stars
  • 1k a week
  • MIT
  • Updated

Install Codebase Pkg

Built from the published package, never by AI.

claude mcp add codebase-pkg -- npx -y @sylphie-labs/codebase-pkg

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Codebase Pkg in Claude Code

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

A

No 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 →

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.

Codebase Pkg Install

Add to stack

Loading.