
diffbot/mcp-code-graph
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
CodeGPTによるコードグラフ解析および可視化のためのMCPサーバー
概要
コードグラフとのシームレスなやり取りを可能にするモデルコンテキストプロトコルサーバーです。 このMCPは、CodeGPTアカウント内の知識グラフやDeepGraphの公開グラフとインタラクションできます。 任意のGitHubリポジトリからグラフを作成するには、URLを github.com から deepgraph.co に変更するだけです。例:- GitHubリポジトリ: https://github.com/username/repo - DeepGraph URL: https://deepgraph.co/username/repo これらの高度なグラフベースのクエリは、ChatGPT、Cursor、Windsurf、CodeGPT Extension、GitHub Copilot、Claude Desktop、Claude Code、Gemini CLIなど、さまざまなMCPホストで利用できます。 - リストグラフ:基本情報を含む利用可能なリポジトリグラフを一覧化します。 - get-code:特定の機能の完全なソースコードをグラフから取得します。 - find-direct-connections:コードグラフ内の機能の直接的な関係を探ります。
概要(AI 翻訳)
コードグラフとのシームレスなやり取りを可能にするモデルコンテキストプロトコルサーバーです。
これがどうやって動くのか
このMCPは、CodeGPTアカウント内の知識グラフやDeepGraphの公開グラフとインタラクションできます。
任意のGitHubリポジトリからグラフを作成するには、URLをgithub.comからdeepgraph.coに変更するだけです。例えば:
- GitHubリポジトリ:
https://github.com/username/repo - DeepGraph URL:
https://deepgraph.co/username/repo
これらの高度なグラフベースのクエリは、ChatGPT、Cursor、Windsurf、CodeGPT Extension、GitHub Copilot、Claude Desktop、Claude Code、Gemini CLIなど、さまざまなMCPホストで利用できます。
利用可能なツール
-
list-graphs:基本情報を含む利用可能なリポジトリグラフを一覧化します。 -
get-code:特定の機能の完全なソースコードをグラフから取得します。 -
find-direct-connections:コードグラフ内の機能の直接的な関係を探ります。 -
nodes-semantic-search:自然言語を用いて意味的にコード関数を検索します。 -
docs-semantic-search:リポジトリドキュメントを意味的に検索します。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
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:
- Find any public repository on deepgraph.co
- 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)
インストール
npx -y mcp-code-graph@latest username/repository-name // DeepGraph repository URL
"username2/repository-name2" // Add more repositories if needed設定
{
"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
]
}
}
}