1. Conduid
  2. AI
  3. Code Graph
MCP server · AI

Code Graph

MCP Server for code graph analysis and visualization by CodeGPT

Unclaimed MIT last commit 11 months ago ai
52Fair

Scored 5 days ago · breakdown

About Code Graph

Code Graph is an MCP server published by diffbot in the AI category: mCP Server for code graph analysis and visualization by CodeGPT.

The repository has 403 stars and 41 forks, with the last commit 11 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/diffbot/mcp-code-graph

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (7)

docs-semantic-searchSemantically searches repository documentation.

Parameters not published.

find-direct-connectionsExplores the direct relationships of a functionality within the code graph.

Parameters not published.

folder-tree-structureRetrieves the tree structure of a folder in the repository.

Parameters not published.

get-codeRetrieves the complete source code for a specific functionality from the graph.

Parameters not published.

get-usage-dependency-linksAnalyzes and lists functionalities affected by changes to a code entity.

Parameters not published.

list-graphsLists available repository graphs with basic information.

Parameters not published.

nodes-semantic-searchSemantically searches for code functionalities using natural language.

Parameters not published.

Ask AI

✦

Ask AI about Code Graph

Powered by Claude · Grounded in docs

I know everything about Code Graph. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.

1 check has not been run yet.

Releases

v1.1.1Release v1.1.1 · 25 Jun 2025feat: extract repository information from URL and update tool descriptions (fdcf93a) Refactor code structure for improved readability and maintainability (11e281e) feat: add settings.json configuration for Gemini CLI and update README.md…
v1.1.0Release v1.1.0 · 25 Jun 2025add npm-publish-release.yml and update package.json version to 1.0.16 (64fc1b0) Add GitHub Action for automated releases with manual trigger (f83f19b) Fix GitHub Packages scope to match organization (871bec0) Fix jq installation and…
v1.0.16Release v1.0.16 · 21 Jun 2025add npm-publish-release.yml and update package.json version to 1.0.16 (64fc1b0) Add GitHub Action for automated releases with manual trigger (f83f19b) Full Changelog: https://github.com/JudiniLabs/mcp-code-graph/commits/v1.0.16

README

Open in DeepGraph GitHub stars GitHub pull requests

Deep Graph MCP Server by CodeGPT

A Model Context Protocol server that enables seamless interaction with Code Graphs.

How this works

This MCP allows you to interact with knowledge graphs available in your CodeGPT account or with public graphs from DeepGraph.

To create a graph from any GitHub repository, simply change the URL from github.com to deepgraph.co. For example:

  • GitHub repo: https://github.com/username/repo
  • DeepGraph URL: https://deepgraph.co/username/repo

You'll be able to use these advanced graph-based queries across different MCP Hosts such as ChatGPT, Cursor, Windsurf, CodeGPT Extension, GitHub Copilot, Claude Desktop, Claude Code, Gemini CLI, and others.

Available Tools

  • list-graphs: Lists available repository graphs with basic information.

  • get-code: Retrieves the complete source code for a specific functionality from the graph.

  • find-direct-connections: Explores the direct relationships of a functionality within the code graph.

  • nodes-semantic-search: Semantically searches for code functionalities using natural language.

  • docs-semantic-search: Semantically searches repository documentation.

  • get-usage-dependency-links: Analyzes and lists functionalities affected by changes to a code entity.

  • folder-tree-structure: Retrieves the tree structure of a folder in the repository.

For Public Code Graphs (No Account Required)

You can interact with public graphs from DeepGraph:

  1. Find any public repository on deepgraph.co
  2. Use the repository reference (e.g., username/repository-name)

Installation using npx

Add the following configuration to your MCP client (CodeGPT Extension, Cursor, Copilot, Claude Desktop, Windsurf, etc.):

{
   "mcpServers": {
      "Deep Graph MCP": {
         "command": "npx",
         "args": ["-y" , "mcp-code-graph@latest", 
         "username/repository-name",  // DeepGraph repository URL
         "username2/repository-name2" // Add more repositories if needed
        ]
      }
   }
}

For Private Graphs (CodeGPT Account Required)

Before using the CodeGPT MCP Server with private graphs, ensure you have:

  1. A CodeGPT account (sign up at app.codegpt.co)
  2. Uploaded a repository to Code Graph
  3. Get your API Key from CodeGPT API Keys page (required).
  4. Get your Organization ID (optional) and Graph ID (optional).

Installation with npx

Add the following configuration to your MCP client (CodeGPT Extension, Cursor, Copilot, Claude Desktop, Windsurf, etc.):

{
   "mcpServers": {
      "Deep Graph MCP": {
         "command": "npx",
         "args": ["-y" , "mcp-code-graph@latest", 
         "CODEGPT_API_KEY",
         "CODEGPT_ORG_ID",
         "CODEGPT_GRAPH_ID"
        ]
      }
   }
}

CLI Providers

Adding to Gemini CLI

Add the JSON configuration to your settings.json file:

Gemini CLI uses settings.json files for persistent configuration. There are two locations for these files:

  • User settings file: Location: ~/.gemini/settings.json (where ~ is your home directory). Scope: Applies to all Gemini CLI sessions for the current user.

  • Project settings file: Location: .gemini/settings.json within your project's root directory. Scope: Applies only when running Gemini CLI from that specific project. Project settings override user settings.

Adding to Claude Code

Follow these steps to integrate Deep Graph MCP Server with Claude Code.

Quick Setup

For Private Graphs

claude mcp add "Deep Graph MCP" npx -- -y mcp-code-graph@latest CODEGPT_API_KEY CODEGPT_ORG_ID CODEGPT_GRAPH_ID

For Public Graphs

claude mcp add "Deep Graph MCP" npx -- -y mcp-code-graph@latest username/repository-name

For team sharing, add the -s project flag:

claude mcp add -s project "Deep Graph MCP" npx -- -y mcp-code-graph@latest CODEGPT_API_KEY CODEGPT_ORG_ID CODEGPT_GRAPH_ID
# or for public graphs
claude mcp add -s project "Deep Graph MCP" npx -- -y mcp-code-graph@latest username/repository-name username2/repository-name

Verification

# Verify installation
claude mcp list

# Get server details
claude mcp get "Deep Graph MCP"

Advanced Workflows with Claude Code Custom Commands

Claude Code supports custom slash commands that combine multiple MCP Code Graph tools for comprehensive analysis workflows.

Setup

Copy the commands directory from this repository to your project root:

cp -r .claude/ /path/to/your/project/

Commit to your project's git:

git add .claude/commands/
git commit -m "Add custom Claude Code commands for Deep Graph MCP"

Available Commands

Repository-wide analysis commands (no parameters needed):

/project:analyze-architecture          # Complete architectural overview
/project:security-audit               # Comprehensive security analysis
/project:test-coverage-analyzer       # Test coverage and quality analysis
/project:technical-debt-analyzer      # Technical debt assessment
/project:api-ecosystem-analyzer       # Complete API ecosystem analysis
/project:repository-onboarding        # Full repository onboarding guide

Component-specific commands (require parameters):

/project:migration-planner [component/technology]     # Smart migration planning
/project:performance-optimizer [component/function]   # Performance optimization
/project:component-onboarding [component/feature]     # Component-specific training

Usage Examples

/project:analyze-architecture
/project:migration-planner React to Vue.js
/project:performance-optimizer DatabaseService.getUserData
/project:component-onboarding authentication system

📈 Star History

Star History Chart

Support

For support and feedback:

License

MIT License

README fetched from the repository 5 days ago. The original is authoritative.

Questions

About Code Graph

How do I install Code Graph?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Code Graph safe to use with an AI agent?

Its trust score is 52 out of 100 (fair). It passes 4 of the 5 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Code Graph still maintained?

The last commit was 11 months ago and 3 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.