GID MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GID MCP Server What would break if I change UserService?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GID MCP Server
Model Context Protocol server for Graph-Indexed Development
Give AI assistants structural awareness of your codebase. GID represents software systems as typed, directed graphs — so AI can reason about architecture, not just syntax.

Why GID?
AI can generate code, but it can't answer:
"What breaks if I change UserService?"
"Which components implement the auth feature?"
"What's the dependency path from Controller to Database?"
GID fills this gap by providing a graph-based map of your software architecture that AI assistants can query and update.
Two workflows:
Top-down: Describe what you want to build → GID generates the architecture graph → AI implements against it
Bottom-up: Extract a graph from existing code → Use it for impact analysis, safe refactoring, and planning new changes
The graph evolves with your project. Every time you add a feature or refactor, the graph updates — so AI always has the current map.
Dogfooding: GID's own architecture is defined as a GID graph. We used GID to build GID — tracking components, querying impact before refactoring, and planning new features. See the self-referential graph.
Related MCP server: NEAT MCP Server
Tools
Query & Analysis
Tool | Description |
| Analyze what components and features are affected by changing a node |
| Get dependencies or dependents of a node (with depth control) |
| Find shared dependencies between two nodes (useful for debugging) |
| Find dependency path between two nodes |
| Deep analysis of a file (functions, classes, complexity) |
| Structured file analysis for AI summarization |
| Graph health score, validation issues, and improvement suggestions |
| Get the GID graph schema with dynamic relations |
Graph Management
Tool | Description |
| Read graph structure (YAML, JSON, or summary) |
| Initialize a new GID graph in a project |
| Add, update, or delete nodes, edges, and relation types |
| Rename, move, or delete nodes with cascade |
| Version history — list, diff, or restore previous versions |
AI-Assisted
Tool | Description |
| Generate a graph from natural language requirements |
| Extract dependency graph from existing code (TypeScript/JavaScript) |
| Propose semantic upgrades — map files to components, assign layers, detect features |
| Analyze docs to identify gaps and suggest graph additions |
| Generate interactive D3.js HTML visualization |
Resources
Resource | Description |
| Current dependency graph (YAML) |
| Health score and validation results |
| List of all features in the graph |
Installation
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"gid": {
"command": "npx",
"args": ["graph-indexed-development-mcp"]
}
}
}Claude Code
claude mcp add gid -- npx graph-indexed-development-mcpCursor / VS Code
Add to your MCP settings:
{
"gid": {
"command": "npx",
"args": ["graph-indexed-development-mcp"]
}
}Quick Start
Install the MCP server (see above)
Initialize a graph in your project:
You: "Initialize a GID graph for this project"
→ Claude uses gid_initExtract dependencies from your code:
You: "Extract the dependency graph from the codebase"
→ Claude uses gid_extractStart querying:
You: "What would break if I change UserService?"
→ Claude uses gid_query_impact
You: "Design the architecture for a notification feature"
→ Claude uses gid_design
You: "Show me the project health score"
→ Claude uses gid_adviseExample Conversations
Top-Down: Design First, Then Build
You: "Design an e-commerce backend with auth, payments, and order tracking"
Claude uses gid_design →
Created 4 features: UserAuth, Payment, OrderTracking, ProductCatalog
Created 8 components across 4 layers
Created 15 dependency edges
Health score: 95/100
You: "Now implement the AuthService based on the graph"
Claude uses gid_query_deps →
AuthService depends on: UserRepository, TokenManager
Implements: UserAuth feature
Layer: application
Claude generates code that fits the architecture.Bottom-Up: Extract from Existing Code
You: "Extract the dependency graph from this project"
Claude uses gid_extract →
Found 42 files, 156 dependencies
Grouped into 12 components across 4 layers
You: "I need to refactor UserService. What would break?"
Claude uses gid_query_impact →
Direct dependents: AuthController, ProfileController, OrderService
Affected features: UserRegistration, OrderPayment
5 components impacted, 2 features at risk
You: "Why do OrderService and PaymentService keep failing together?"
Claude uses gid_query_common_cause →
Shared dependency: DatabaseService
Both services depend on it — that's likely the root cause.Continuous: Keep the Graph Updated
You: "I just added a NotificationService. Update the graph."
Claude uses gid_edit_graph →
Added node: NotificationService (Component, application layer)
Added edges: depends_on EmailClient, implements Notifications feature
You: "Check the project health"
Claude uses gid_advise →
Health: 87/100
Warning: NotificationService has no tests
Warning: EmailClient has 6 dependents (high coupling)
Suggestion: Consider splitting EmailClient into smaller modulesVisualization
You: "Visualize the current project architecture"
Claude uses gid_visual → Generates an interactive D3.js HTML file
Graph Format
GID uses a YAML-based graph format (.gid/graph.yml):
nodes:
UserAuth:
type: Feature
description: User authentication and authorization
priority: core
status: active
AuthService:
type: Component
layer: application
description: Handles authentication logic
path: src/services/auth.ts
AuthController:
type: Component
layer: interface
path: src/controllers/auth.ts
edges:
- from: AuthService
to: UserAuth
relation: implements
- from: AuthController
to: AuthService
relation: depends_onNode types: Feature, Component, Interface, Data, File, Test, Decision
Relation types: implements, depends_on, calls, reads, writes, tested_by, defined_in, enables, blocks, requires, precedes, refines, validates, related_to, decided_by — plus custom relations you define.
Requirements
Node.js >= 20.0.0
Related
GID Methodology — Specification, examples, and dogfood graph
GID CLI — Command line interface
GID Paper — Formal methodology (Zenodo)
License
AGPL-3.0 — See LICENSE for details.
For commercial licensing, see COMMERCIAL-LICENSE.md.
Author
Toni Tang — @tonioyeme
Available Tools
18 toolsgid_adviseB
Validate graph and get improvement suggestions. Returns health score + issues + suggestions.
Inputs: level, graphPath, threshold.
gid_analyzeC
Analyze file, function, or class. Returns structured JSON for AI consumption.
Inputs: filePath (required), class, function, includePatterns.
gid_completeA
Analyze existing graph and documentation to identify gaps and suggest semantic layer additions. Returns structured context for AI to complete the graph with gid_edit_graph.
Inputs: docsPath, graphPath, docContent.
gid_designB
Generate semantic graph from natural language requirements. Creates Features, Components, layers, and relationships.
Inputs: requirements (required), outputPath.
gid_edit_graphB
Directly add, update, or delete nodes, edges, and relation types in the graph. Supports dynamic relation schema.
Inputs: operations (required), dryRun, graphPath.
gid_extractB
Extract dependency graph from existing code (TypeScript/JavaScript) with optional enrichment
Inputs: group, paths, dryRun, enrich, +5 more.
gid_get_file_summaryC
Get structured file analysis ready for AI to generate a summary description
Inputs: filePath (required), includeContent.
gid_get_schemaA
Get the GID graph schema with dynamic relations. If a graph exists, includes custom/discovered relations from that graph.
Inputs: graphPath, includeExample.
gid_historyB
Manage graph version history (list, diff, restore)
Inputs: force, action, version, graphPath.
gid_initB
Initialize a new GID graph in a project
Inputs: path, force, template.
gid_query_common_causeB
Find shared dependencies between two nodes (useful for debugging)
Inputs: nodeA (required), nodeB (required), graphPath.
gid_query_depsB
Get dependencies or dependents of a node
Inputs: node (required), depth, reverse, graphPath.
gid_query_impactA
Analyze what components and features are affected by changing a node
Inputs: node (required), graphPath.
gid_query_pathB
Find dependency path between two nodes
Inputs: to (required), from (required), graphPath.
gid_readB
Read and return the current graph structure or summary
Inputs: format, graphPath.
gid_refactorC
Preview or apply graph changes to codebase (rename, move, split, merge nodes)
Inputs: nodeId (required), operation (required), dryRun, newName, +2 more.
gid_semantifyA
Propose semantic upgrades: map files to components, assign layers, detect features. Use returnContext: true for AI semantic analysis (reads docs + code names).
Inputs: scope, dryRun, graphPath, returnContext.
gid_visualA
Generate static HTML visualization of the dependency graph. Returns self-contained HTML that can be saved and opened in a browser.
Inputs: graphPath, outputPath.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
The gid_query_* family (impact, deps, common_cause, path) is cleanly distinct, but several 'analyze/improve' tools overlap: gid_semantify, gid_complete, and gid_advise all produce suggestions about graph semantics, and gid_analyze vs gid_get_file_summary vs gid_read all inspect files/graph in subtly different ways. Descriptions help but an agent could easily misselect among the semantic-enrichment and inspection tools.
All tools use a consistent gid_ prefix with snake_case and mostly verb_noun phrasing (query_impact, get_schema, edit_graph). A few deviations like gid_history (noun), gid_visual (adjective), and the terse gid_init break the pure verb_noun pattern but remain readable and predictable.
18 tools sits at the heavy end of the rubric, and the domain is rich enough to justify most of them. However, the presence of three separate suggestion/enrichment tools (semantify, complete, advise) indicates some bloat that could be consolidated.
Coverage is strong across the graph lifecycle: init/design/extract for creation, edit_graph for CRUD, query/analyze for inspection, refactor for mutation, history for versioning, and visual for output. Minor gaps exist around explicit graph deletion/export and there is no dedicated edge/relation query tool, but core workflows are fully supported.
Maintenance
Related MCP Connectors
Codebase knowledge graph — architectural awareness for AI coding agents via MCP
Hosted code graph over MCP: exact callers, dependencies, and cross-repo blast radius for AI agents.
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Repository knowledge graph MCP server for codebase understanding and debugging.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI-powered architecture analysis and visualization of codebases, exposing 17 MCP tools for querying components, dependencies, and generating interactive diagrams.6MIT

NEAT MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceProvides AI agents with a live architecture model of a codebase, enabling queries for root cause analysis, blast radius, and dependency traversal through MCP tools.33Apache 2.0- AlicenseAqualityCmaintenanceEnables AI coding assistants to understand codebase architecture in real time by parsing source code into a relationship graph and exposing call chains, dependencies, class hierarchies, and conventions via MCP tools.144MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to query a codebase as a knowledge graph, providing token-budgeted context, search, and impact analysis via MCP tools.27 PyPIMIT