Deep Graph MCP server
Memungkinkan AI client untuk berinteraksi dengan code knowledge graph untuk semantic search, analisis dependensi, dan visualisasi arsitektur.
Juga dikenal sebagai diffbot/mcp-code-graph
- Stars
- 401
- Tools
- 7
- Unduhan, 30 hari
- —
- Versi terbaru
- —
- Commit terakhir
- 25 Nov 2025
- Lisensi
- MIT
Apa itu Deep Graph MCP?
Deep Graph adalah MCP server. Memungkinkan AI client untuk berinteraksi dengan code knowledge graph untuk semantic search, analisis dependensi, dan visualisasi arsitektur. Server ini menyediakan 7 tool, seperti list-graphs, get-code, find-direct-connections.
Ringkasan dibuat dari README proyek
Tentang Deep Graph MCP server
Navigasi codebase yang kompleks melalui semantic search dan analisis dependensi adalah hal yang dapat dilakukan developer menggunakan MCP server ini. Tool ini menghubungkan AI client ke code knowledge graphs, memungkinkan eksplorasi arsitektur yang mendalam dan pemetaan relasi. Anda dapat berinteraksi dengan public repository graphs dari DeepGraph tanpa akun, atau mengakses private graphs yang tersimpan di akun CodeGPT dengan menyediakan API key, organization ID, dan graph ID.
Server ini bekerja dengan berbagai MCP host termasuk Claude Desktop, Cursor, Windsurf, dan Gemini CLI. Server ini menyediakan tool spesifik seperti nodes-semantic-search untuk query bahasa natural, get-usage-dependency-links untuk melihat bagaimana perubahan memengaruhi entitas kode, dan find-direct-connections untuk mengeksplorasi relasi. Server ini juga menyertakan fungsionalitas untuk mengambil source code lengkap via get-code dan melihat struktur folder melalui folder-tree-structure.
Dengan mengintegrasikan server ini, developer dapat melakukan tugas tingkat lanjut seperti pembuatan overview arsitektur dan audit keamanan. Setup dikelola melalui npx, sehingga memudahkan Anda untuk menambahkannya ke lingkungan pengembangan yang sudah ada, baik untuk data repositori publik maupun privat.
Apa yang bisa Anda lakukan dengannya
- 1Semantic code discoveryTemukan fungsionalitas spesifik di dalam repositori menggunakan deskripsi bahasa natural.
- 2Impact analysis for changesIdentifikasi bagian mana dari codebase yang akan terdampak oleh modifikasi pada entitas tertentu.
- 3Architectural overview generationMinta analisis lengkap mengenai arsitektur proyek melalui command kustom.
- 4Documentation searchingTemukan informasi di dalam dokumentasi repositori menggunakan semantic search.
Ditulis berdasarkan README proyek. Setiap use case diperiksa terhadap kutipan dari README tersebut.
Tool Deep Graph MCP 7
Terdeteksi dari READMElist-graphsget-codefind-direct-connectionsnodes-semantic-searchdocs-semantic-searchget-usage-dependency-linksfolder-tree-structure
| list-graphs | — | |
| get-code | — | |
| find-direct-connections | — | |
| nodes-semantic-search | — | |
| docs-semantic-search | — | |
| get-usage-dependency-links | — | |
| folder-tree-structure | — |
README
Lihat di GitHubDeep 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)
Before using the CodeGPT MCP Server with private graphs, ensure you have:
- A CodeGPT account (sign up at app.codegpt.co)
- Uploaded a repository to Code Graph
- Get your API Key from CodeGPT API Keys page (required).
- 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
Support
For support and feedback:
- Email: support@codegpt.co
- Website: app.codegpt.co
License
Pertanyaan tentang Deep Graph MCP
Tool apa yang disediakan Deep Graph MCP?
Server ini menyediakan 7 tool, termasuk list-graphs, get-code, find-direct-connections, nodes-semantic-search, docs-semantic-search.
Bagaimana cara membuat graph dari repositori GitHub?
Anda dapat membuat graph dengan mengubah URL GitHub menjadi URL DeepGraph. Sebagai contoh, ubah github.com/username/repo menjadi deepgraph.co/username/repo.
Apakah saya perlu akun untuk menggunakan public code graphs?
Tidak, Anda dapat berinteraksi dengan public graphs dari DeepGraph tanpa akun dengan menggunakan referensi repositori.