← Back to directory
C

Codegraph MCP Server

Community
Give AI agents a structural map of the codebase before they edit.
Category
Dev Tools #178 of 751
Stars
★ 107 Popular
Runtime
Node.js 22.12.0+
Credentials
No credential needed
License
Apache-2.0
Last commit
56FMRS · C

The README describes broad local code graph analysis and CI integration, and says no API keys are required. The server manifest is not cached, so the available material does not verify the MCP tool list, transport, client compatibility, or installation configuration.

Strongest · Security and permissions 15/20 Weakest · Reliability 8/20

Reliability
8/20
Security and permissions
15/20
Maintenance
10/20
Documentation
12/20
Setup experience
11/20
Why each score
Reliability 8/20
The README describes 34 MCP tools, a single-repository default scope, and local query capabilities. It also discloses that incremental builds skip some analysis data and recommends periodic full rebuilds. The server manifest is unavailable, and the supplied material contains no verifiable CI workflow or tests covering key server paths, so the initialization handshake, tool-list implementation, and error handling cannot be confirmed. The score is conservative under the static-review cap.
Security and permissions 15/20
The material says the default server accesses only the local graph database, requires no API key, makes no network calls, and requires explicit opt-in for multi-repository access. These claims suggest a defined data scope. Optional semantic search can use a remote embedding endpoint, and the README discusses credential configuration, but no source evidence verifies data flows, permission boundaries, or confirmation for dangerous operations. No red-line evidence is present.
Maintenance 10/20
The repository is listed as unarchived and Apache-2.0 licensed. The README mentions releases and CI benchmarks, which are signs of maintenance. The supplied material does not verify recent commits, issue response, dependency updates, or a security response channel; the open-issue count is also high, so the score remains moderate.
Documentation 12/20
The README provides extensive commands, feature and language descriptions, configuration guidance, and incremental-build limitations. It also describes optional remote embedding services. However, the supplied content does not fully show per-tool parameters, concrete mainstream-client connection configuration, troubleshooting, or permission and data-flow details. Some claims cannot be checked against a manifest or source files, which lowers the score.
Setup experience 11/20
The README gives a short path to install globally with npm, build the graph database, and start the MCP server, and specifies Node.js 22.12.0 or later. It describes single-repository and multi-repository modes, but does not provide a concrete configuration example for a mainstream MCP client, and the target project must first have a built graph database. With no verifiable CI or test evidence in the supplied material, the static score is conservative.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesConnects to a database

Best for

  • Development teams that want AI agents to query local code structure.
  • Projects that want to check change impact, complexity, or architecture rules before CI or code review.
  • Codebases in one of the README's 34 listed languages that need function-level dependency analysis.

Not for

  • Teams needing dedicated security vulnerability detection or SAST scanning; the README explicitly places vulnerability detection outside the tool's scope.
  • Users who need verified MCP client compatibility, transport protocol, or tool inventory from the available information.

Required permissions

  • Needs to read the source code of the project being analyzed to build and query its graph.
  • Git co-change and diff analysis need access to repository history and change data.
  • Builds and queries use local files and a SQLite database; the README says the tool requires no network calls, and semantic search can use a local model.

Risks and side effects

  • The graph and call resolution may be incomplete; the README reports a self-measured 70.3% resolution recall, with substantial variation across languages.
  • The README says some directory metrics, advisory checks, drift detection, and metadata are skipped during small incremental builds; consider a full rebuild after large refactors or when a complete refresh is needed.
  • The tool provides structural understanding, not vulnerability detection, and should not be treated as a SAST replacement.
  • The README describes optional remote embedding or LLM providers; when configured, code may be sent to the service the user chooses.

Setup

Before you start

Runtime:Node.js 22.12.0+

The README's basic flow is to install @optave/codegraph, enter a project directory, and run codegraph build, then run codegraph mcp to start the MCP server. The README does not provide a specific MCP client configuration example. The server manifest is not cached, so tool identifiers, transport, and client installation configuration cannot be confirmed.

Check that it works

Run `codegraph build` to build the project graph, then start `codegraph mcp`. Confirm Codegraph tools appear in the client’s tool list and query a symbol to verify the connection.

Troubleshooting

  1. If query results are missing or appear stale, run `codegraph build`; use `codegraph build --no-incremental` when a full rebuild is needed.
  2. Confirm that `.codegraph/graph.db` has been built in the target project and start the MCP server from the corresponding project.
  3. If MCP tools or client connection details are unclear, consult the documentation for the installed version; the supplied material does not include the manifest or transport details.
  4. Run `codegraph embed` before semantic search; set search mode to `keyword` to use keyword search only.

Things to try

Once connected, you can ask your AI assistant things like:

  • Find the callers of parseConfig and explain what might be affected by changing it.
  • Analyze the impact of the currently staged Git changes.
  • Search for functions related to authentication.

Use cases

Query callers and dependencies before changing a function to assess the change's impact.
Analyze Git diffs and historical co-changes to identify potentially affected files.
Check complexity, dependency cycles, and architecture boundaries, and configure CI quality gates.
Find code with keyword and semantic hybrid search.

Overview

Codegraph is a local code intelligence tool that builds a function-level dependency graph across 34 languages and exposes queries to AI agents through an MCP server. It also supports impact analysis, complexity metrics, architecture boundary checks, CI quality gates, Git change impact and co-change analysis, and hybrid BM25 and semantic search. The graph is stored in SQLite; the README says the tool runs locally and requires no API keys.

Similar servers

Source revision 427c96f6da08 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/ops-codegraph-tool.svg)](https://followmcp.com/en/servers/ops-codegraph-tool)