Code Graph MCP Server

Repository knowledge graphs enable semantic search and dependency analysis for AI models.

Data last scanned today · Reviewed today

347 tools402JavaScriptMIT

Overview

This MCP server provides an interface to interact with repository knowledge graphs stored within DeepGraph or CodeGPT accounts. By transforming standard GitHub repository structures into graph data, it allows developers to query complex code relationships directly through their AI-assisted development environments.

Our verdict

With a security score of 34/100, this server is currently classified as high-risk. This rating stems from the fact that it is a community-maintained project rather than an official vendor release, coupled with the lack of an editorial review and no documentation regarding its authentication or read-only protocols. Users should exercise caution and review the codebase before integration, as it is not suitable for environments requiring vetted or actively maintained software.

  • Supports semantic searching of repository code and documentation
  • Provides automated analysis of code functionality dependencies
  • Includes only 3 direct dependencies reducing supply-chain surface
  • Compatible with multiple MCP hosts including Claude and Cursor
  • High-risk security profile due to lack of official maintenance
  • Last repository commit occurred over 240 days ago
  • Authentication and read-only implementation details remain unreviewed
  • Small contributor base of only 2 individuals

Setup

Claude Desktop
{
  "mcpServers": {
    "mcp-code-graph": {
      "args": [
        "-y",
        "mcp-code-graph"
      ],
      "command": "npx"
    }
  }
}

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop. Some servers require API keys or tokens as environment variables — check the project's README and add an "env" object if needed.

  • No read-only mode — running this grants full read/write access.
  • No built-in authentication — anyone with access to this config can invoke every tool it exposes.

Tools

ToolDescriptionRisk
list-graphsLists available repository graphs with basic information.low
get-codeRetrieves the complete source code for a specific functionality from the graph.low
find-direct-connectionsExplores the direct relationships of a functionality within the code graph.low
nodes-semantic-searchSemantically searches for code functionalities using natural language.low
docs-semantic-searchSemantically searches repository documentation.low
get-usage-dependency-linksAnalyzes and lists functionalities affected by changes to a code entity.low
folder-tree-structureRetrieves the tree structure of a folder in the repository.low

Compatibility

ClientLocalDockerRemoteRead-only
ChatGPT
Claude Desktop
Cursor
VS Code
Windsurf

Frequently asked questions

Do I need a CodeGPT account to use this server?

A CodeGPT account is only required if you intend to access private code graphs. You can access public graphs from DeepGraph without needing an account.

What information is needed for private graph access?

To access private graphs, you must provide your CodeGPT API key. Providing an organization ID and a graph ID is optional.

How do I reference a public repository for use with this server?

You can reference a public repository by using its username/repository-name format. You can also generate a DeepGraph URL by replacing 'github.com' with 'deepgraph.co' in the repository's web address.

Can I use multiple repositories with a single server configuration?

Yes, you can specify multiple repository identifiers within the arguments list of your MCP configuration file.

What specific tools does this server provide for code analysis?

The server provides tools for listing graphs, retrieving source code, performing semantic searches for code and documentation, finding direct connections, analyzing usage dependency links, and viewing folder structures.

Changelog

Badge

Code Graph MCP Server security score, rated on RepoAI

Maintain this server? Add the live badge to your README.