CodeGPT- Code Graph MCP Server logo

CodeGPT- Code Graph MCP Server

Organization
diffbot

MCP Server for code graph analysis and visualization by CodeGPT

Publisherdiffbot
Repositorymcp-code-graph
LanguageJavaScript
Forks
41
Stars
402
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    CodeGPT- Code Graph MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    402 stars and 41 forks from the linked repository.

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.):

json
{
   "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.):

json
{
   "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

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

For Public Graphs

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

For team sharing, add the -s project flag:

bash
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

bash
# 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:

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

Commit to your project's git:

bash
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):

bash
/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):

bash
/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

bash
/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

Installation

TypingMind
Prerequisites:

Node.js 18+

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

Use CodeGPT- Code Graph MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once CodeGPT- Code Graph MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add CodeGPT- Code Graph MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the CodeGPT- Code Graph MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "judinilabs-mcp-code-graph": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-code-graph"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the CodeGPT- Code Graph MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the CodeGPT- Code Graph MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use CodeGPT- Code Graph MCP Server to help me with this task?
CodeGPT- Code Graph MCP Server
Sure. I read it.
Here is what I found using CodeGPT- Code Graph MCP Server.

Frequently asked questions

What is the CodeGPT- Code Graph MCP Server MCP server used for?

CodeGPT- Code Graph MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use CodeGPT- Code Graph MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use CodeGPT- Code Graph MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use CodeGPT- Code Graph MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With CodeGPT- Code Graph MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect CodeGPT- Code Graph MCP Server MCP to TypingMind?

CodeGPT- Code Graph MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does CodeGPT- Code Graph MCP Server MCP provide in TypingMind?

CodeGPT- Code Graph MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use CodeGPT- Code Graph MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If CodeGPT- Code Graph MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇