project-graph-mcp
Provides framework-specific rulesets for Express, enabling code quality analysis and compact code mode for Express projects.
Provides framework-specific rulesets for NestJS, enabling code quality analysis and compact code mode for NestJS projects.
Provides framework-specific rulesets for Next.js, enabling code quality analysis and compact code mode for Next.js projects.
Provides framework-specific rulesets for Node.js, enabling code quality analysis and compact code mode for Node.js projects.
Provides framework-specific rulesets for React, enabling code quality analysis and compact code mode for React projects.
Provides framework-specific rulesets for TypeScript, enabling code quality analysis and compact code mode for TypeScript projects.
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., "@project-graph-mcp find unused code and complexity in src/"
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.
project-graph-mcp
Maximize your AI agent's context window. An MCP server that lets agents read and edit your codebase in compact mode — minified source with all variable names preserved. .ctx documentation is injected only in the focus zone, so agents can start with structure and request implementation detail when needed.


19 MCP tools, zero config. Add one line to your MCP config and the server downloads itself on the next IDE restart.
Features
Project Skeleton — compact AST-based JSON graph of files, symbols, and relationships
Compact Code Mode — project-wide
compact/beautify; agents read and edit minified source while names remain available for restorationAI Context Layer — one call loads skeleton + docs + compressed files; progressive loading (Overview → Focus)
Code Quality Analysis — dead code, complexity, duplicates, large files, legacy patterns, JSDoc consistency, Health Score (0-100)
Multi-Language Parsers — JavaScript (AST/Acorn), TypeScript, Python, Go (regex-based)
Doc Dialect — auto-generated
.ctxdocumentation with AST signatures, staleness detection, self-enriching@enrichmarkersDatabase Analysis — schema extraction from SQL migrations, table usage, dead tables
Test Checklists — persistent test state in
.ctx.mdfiles, agent-drivenmark_test_passedMonorepo Support — auto-discovery of sub-projects in
packages/,apps/,services/Framework Rules — 11 rulesets (86 rules) for React, Vue, Next.js, Express, NestJS, TypeScript, Node.js, Symbiote.js
Security — path traversal protection on all operations
Related MCP server: Smart Context MCP
Quick Start
Generate the MCP config for your IDE (with correct paths):
npx -y project-graph-mcp configCopy the output JSON into your IDE's MCP config file, then restart.
IDE | Config path |
Antigravity |
|
Gemini CLI |
|
Cursor |
|
Windsurf |
|
Claude Code | Run: |
See CONFIGURATION.md for all supported IDEs.
git clone --recursive https://github.com/rnd-pro/project-graph-mcp
cd project-graph-mcp
npm installNote: The source checkout no longer needs the former
vendor/symbiote-nodesubmodule.
CLI
npx project-graph-mcp skeleton src/ # Project skeleton
npx project-graph-mcp expand SN # Expand minified symbol
npx project-graph-mcp deps SNG # Get dependencies
npx project-graph-mcp deadcode src/ # Find unused code
npx project-graph-mcp complexity src/ # Cyclomatic complexity
npx project-graph-mcp analyze src/ # Full health analysis
npx project-graph-mcp compress src/f.js # Compress file for AI
npx project-graph-mcp docs src/ # Project docs (doc-dialect)
npx project-graph-mcp generate-ctx src/ # Generate .context/ docs
npx project-graph-mcp compact src/ --dry-run # Compact all files
npx project-graph-mcp mode . # Show current editing mode
npx project-graph-mcp help # All commandsWeb Dashboard
project-graph-mcp is a pure stdio MCP server — it does not include a web server. For the visual UI (file tree, code viewer, dependency graph, live monitoring, marketplace), install mcp-agent-portal: npx mcp-agent-portal.
MCP Ecosystem
Best used as part of mcp-agent-portal — a unified MCP aggregator that combines all RND-PRO servers behind a single config entry:
{
"mcpServers": {
"agent-portal": {
"command": "npx",
"args": ["-y", "mcp-agent-portal"]
}
}
}The Portal runs asingleton backend to prevent resource exhaustion when you open multiple IDE windows. It transparently spawns project-graph-mcp as a public child tool server and keeps agent-pool-mcp as its internal execution runtime. One mcp-agent-portal entry replaces separate public configs for child servers.
Also works standalone when you need only project graph tools:
# Generate a config with the correct path for this server:
npx -y project-graph-mcp config
# Or use mcp-agent-portal as the unified orchestration gateway.Agent workers launched by Agent Portal can use their ownproject-graph-mcp instance to navigate the codebase independently without blocking the primary orchestrator.
Documentation
CONFIGURATION.md — Setup for all supported IDEs
GUIDE.md — Comprehensive usage guide with all tools
ARCHITECTURE.md — Source code structure
AGENT_ROLE.md — Full system prompt for agents
Related Projects
mcp-agent-portal — Unified MCP aggregator + web dashboard + AI agent runtime
agent-pool-mcp — Internal execution runtime used by Agent Portal orchestration
Symbiote.js — Isomorphic Reactive Web Components framework
JSDA-Kit — SSG/SSR toolkit for modern web applications
License
MIT © RND-PRO.com
Made with ❤️ by the RND-PRO team
Available Tools
19 toolsanalyzeC
Code quality analysis. Actions: dead_code|similar_functions|complexity|large_files|outdated_patterns|full_analysis|analysis_summary|undocumented
Inputs: path (required), action (required), level, codeOnly, +5 more.
check_custom_rulesB
Run custom rules analysis on a directory. Returns violations found.
Inputs: path (required), ruleSet, severity.
compactD
Compact code operations. Actions: compact_file|edit|compact_all|beautify|expand_file|expand_project|validate_pipeline|get_mode|set_mode
Inputs: action (required), fix, code, mode, +8 more.
dbC
Database analysis. Actions: schema|table_usage|dead_tables
Inputs: path (required), action (required), table.
docsC
Documentation (.ctx) management. Actions: get|generate|check_stale|validate_contracts
Inputs: path (required), action (required), file, scope, +2 more.
filtersC
Filter configuration. Actions: get|set|add_excludes|remove_excludes|reset
Inputs: action (required), dirs, excludeDirs, useGitignore, +2 more.
get_agent_instructionsA
Get coding guidelines, architectural standards, and JSDoc rules for this project.
Inputs: no named parameters.
get_ai_contextA
Boot AI agent context. Two modes:
Default: returns skeleton + docs (2-3k tokens) for structure overview.
includeFiles: ['']: returns ALL compressed source code without skeleton/docs (pure code dump). Filters vendored files via .contextignore (auto-created on first call). Call FIRST when starting work. Use [''] for small/medium projects that fit in context.
Inputs: path (required), includeDocs, includeFiles, includeSkeleton.
get_custom_rulesA
List all custom code analysis rules. Rules are stored in JSON files in rules/ directory.
Inputs: no named parameters.
get_focus_zoneB
Get enriched context for recently modified files. Auto-detects from git or accepts explicit file list.
Inputs: path, useGitDiff, recentFiles.
get_framework_referenceA
Get framework-specific AI reference documentation. Auto-detects framework from project or accepts explicit name. Returns full API reference, patterns, and common mistakes as agent context.
Inputs: path, framework.
get_skeletonA
Get compact minified project overview (10-50x smaller than source). Returns legend, stats, node summaries, file imports, and W web component summaries when present.
Inputs: path (required).
get_usage_guideA
Get the comprehensive usage guide for project-graph with examples and best practices. Call this FIRST when planning how to analyze, navigate, or audit a codebase. Returns practical examples and recommended workflow for each feature area.
Available topics: navigation, analysis, testing, documentation, rules, workflow. Omit topic to get the full guide.
Inputs: topic.
graph_metadataC
Read and validate project-local graph metadata sidecar. Actions: get|validate
Inputs: path (required), action (required), metadata.
invalidate_cacheA
Invalidate the cached graph. Use after making code changes.
Inputs: no named parameters.
jsdocC
JSDoc operations. Actions: check_consistency|check_types|generate
Inputs: path (required), action (required), name, files, +1 more.
set_custom_ruleA
Add or update a custom code analysis rule. Creates ruleset if it does not exist.
Inputs: rule (required), ruleSet (required).
testingC
Test checklist management. Actions: pending|pass|fail|summary|reset
Inputs: action (required), path, reason, testId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Each tool targets a distinct functional area: context provision, navigation, analysis, documentation, custom rules, testing, and caching. Even similar tools like get_skeleton and get_ai_context have clearly differentiated purposes (skeleton-only vs. full context), eliminating ambiguity.
Tool names mix single-word domain identifiers (docs, compact, db, jsdoc, navigate, analyze, testing, filters) with snake_case verb phrases (get_focus_zone, invalidate_cache, set_custom_rule). While descriptive, the lack of a uniform verb_noun or noun_verb pattern across all tools makes naming slightly inconsistent.
The 19 tools are slightly above the ideal 3-15 range, but the server's broad scope (code graph navigation, analysis, documentation, testing, custom rules, AI context) justifies the count. Each tool serves a clear purpose, and no tool feels redundant.
The tool set provides comprehensive coverage of codebase analysis and AI assistance: navigation, quality analysis, test tracking, documentation management, custom rules, and context generation. Minor gaps like a missing delete_custom_rule are workable and do not create dead ends.
Maintenance
Related MCP Connectors
Compress coding-agent context ~64%. Hosted Neural Keep MCP for Cursor/Claude/Codex.
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Code-map tools for AI agents: see a repo's structure first, then edit only what matters.
Cuts coding agent token burn up to 72% continuously via contradiction-free memory & verification.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnables AI assistants to surgically extract and analyze code, reducing token usage and costs by up to 200x compared to reading entire files.10 PyPI18MIT- AlicenseNot gradedqualityBmaintenanceReduces token consumption for AI coding agents by 50-70% through intelligent code context filtering, Git delta tracking, and local SQLite/Tree-sitter indexing.167 npmMIT
- AlicenseAqualityBmaintenanceEnables AI coding agents to reduce token usage by condensing source code into AST skeletons, extracting specific symbols, compressing logs, and estimating token budgets.4MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to quickly find relevant code, focus reads on important parts of large files, and pick relevant items from long lists, reducing token usage and search time.7MIT