npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

graph-indexed-development-mcp

v1.0.0

Published

GID MCP Server - Model Context Protocol server for Graph-Indexed Development

Downloads

124

Readme

GID MCP Server

Model Context Protocol server for Graph-Indexed Development

License: AGPL-3.0 npm

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.


Tools

Query & Analysis

| Tool | Description | |------|-------------| | gid_query_impact | Analyze what components and features are affected by changing a node | | gid_query_deps | Get dependencies or dependents of a node (with depth control) | | gid_query_common_cause | Find shared dependencies between two nodes (useful for debugging) | | gid_query_path | Find dependency path between two nodes | | gid_analyze | Deep analysis of a file (functions, classes, complexity) | | gid_get_file_summary | Structured file analysis for AI summarization | | gid_advise | Graph health score, validation issues, and improvement suggestions | | gid_get_schema | Get the GID graph schema with dynamic relations |

Graph Management

| Tool | Description | |------|-------------| | gid_read | Read graph structure (YAML, JSON, or summary) | | gid_init | Initialize a new GID graph in a project | | gid_edit_graph | Add, update, or delete nodes, edges, and relation types | | gid_refactor | Rename, move, or delete nodes with cascade | | gid_history | Version history — list, diff, or restore previous versions |

AI-Assisted

| Tool | Description | |------|-------------| | gid_design | Generate a graph from natural language requirements | | gid_extract | Extract dependency graph from existing code (TypeScript/JavaScript) | | gid_semantify | Propose semantic upgrades — map files to components, assign layers, detect features | | gid_complete | Analyze docs to identify gaps and suggest graph additions | | gid_visual | Generate interactive D3.js HTML visualization |

Resources

| Resource | Description | |----------|-------------| | gid://graph | Current dependency graph (YAML) | | gid://health | Health score and validation results | | gid://features | 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": ["gid-mcp"]
    }
  }
}

Claude Code

claude mcp add gid -- npx gid-mcp

Cursor / VS Code

Add to your MCP settings:

{
  "gid": {
    "command": "npx",
    "args": ["gid-mcp"]
  }
}

Quick Start

  1. Install the MCP server (see above)
  2. Initialize a graph in your project:
You: "Initialize a GID graph for this project"
→ Claude uses gid_init
  1. Extract dependencies from your code:
You: "Extract the dependency graph from the codebase"
→ Claude uses gid_extract
  1. Start 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_advise

Example Conversations

Impact Analysis

You: "What would be affected if I change the UserService?"

Claude uses gid_query_impact"Changing UserService affects 5 components across 2 features. AuthController and ProfileController depend on it directly..."

Debugging Shared Failures

You: "OrderService and PaymentService keep failing together. Why?"

Claude uses gid_query_common_cause"Both depend on DatabaseService — that's likely the root cause."

Architecture from Requirements

You: "Design an e-commerce backend with auth, payments, and order tracking"

Claude uses gid_design → Generates a complete graph with features, components, layers, and relationships.

Graph Visualization

You: "Visualize the current project architecture"

Claude uses gid_visual → Generates an interactive D3.js HTML file with color-coded nodes, health score, and search.


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_on

Node 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


License

AGPL-3.0 — See LICENSE for details.

For commercial licensing, see COMMERCIAL-LICENSE.md.


Author

Toni Tang@tonioyeme