HydraGraph MCP
Click on "Install 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., "@HydraGraph MCPShow me the impact of changing analyzeWithAI."
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.
HydraGraph MCP
HydraGraph turns a TypeScript codebase into an explicit structural graph and serves graph-native code questions to any MCP client. It uses tree-sitter for AST extraction and self-hosted HydraDB for graph storage and OpenCypher traversal.
Status: early hackathon MVP. TypeScript/TSX is the deliberately narrow first-language scope.
Why the implementation differs from the hosted Hydra docs
The self-hosted hydra-db/hydradb repository does not expose the hosted knowledge SDK methods (upload.knowledge, full_recall, or graph_relations_by_source_id). Its documented public interfaces are Neo4j-compatible Bolt and:
POST /v1/graphs/{graph_id}/queryHydraGraph therefore inserts AST-derived vertices and edges with batched, parameterized OpenCypher UNWIND queries. CALLS, IMPORTS, and CONTAINS edges are explicit and deterministic; no LLM relationship inference is involved.
Related MCP server: arcscope
MCP tools
find_callers: direct reverse traversal overCALLSedges.impact_of_change: bounded transitive reverse traversal for a symbol's blast radius.explain_context: accepts a natural-language question, matches it to a HydraDB symbol, and returns structured callers, callees, call-site evidence, and two-hop impact for the MCP client's own model to reason over.
Quickstart
Requirements: Node.js 20+, npm, Docker Desktop, and PowerShell for the bundled Windows HydraDB startup script.
npm install
Copy-Item .env.example .env
npm run hydradb:start
$env:HYDRADB_TOKEN = "local-development-token-32-bytes"The development script binds Bolt, HTTP, and admin ports to 127.0.0.1 only. It must not be used as a public deployment configuration.
Clone the real validation target next to this repository:
git clone https://github.com/sayan365/docwise ../target-docwise
npm run index -- ../target-docwise --dry-run
npm run index -- ../target-docwise
npm run hydradb:validate
npm run mcp:smokemcp:smoke verifies the tool schemas and makes live graph-backed impact_of_change and natural-language explain_context calls. No external LLM API key is required; the calling MCP client performs the reasoning.
The index command replaces HydraGraph's generated CodeNode data and its three relationship types. The MVP intentionally stores one repository per configured HydraDB graph.
Build and run the stdio MCP server:
npm run build
node dist/src/server.jsReal validation scenario
The target is sayan365/docwise, Sayan's TypeScript/React document-analysis application. HydraGraph extracts 27 source files, 86 nodes, and 155 resolved relationships. It verifies this real call chain from the checked-out source:
ScanView event handlers
-> scanSample / scanDocumentText / scanDocumentFile
-> analyzeWithAI
-> getLanguageThat makes the headline question concrete: changing src.context.DocumentContext.DocumentProvider.analyzeWithAI affects all three scan entry points and their upstream UI handlers. External and ambiguous calls remain unresolved instead of being guessed; the current dry run reports 449 such calls.
What HydraDB contributes
Without HydraDB, this project is an AST dump plus in-process maps. HydraDB persists the structural model and answers traversal queries: callers are incoming CALLS edges, and impact is a bounded breadth-first traversal over HydraDB results. The database is load-bearing, not an optional storage swap.
Verification
npm run check
npm test
npm run hydradb:validate
npm run mcp:smokeAttribution
HydraDB, AGPL-3.0, used as the external graph database.
tree-sitter and
tree-sitter-typescript, MIT, used for TypeScript/TSX parsing.Model Context Protocol TypeScript SDK, MIT, used for MCP transport and tool definitions.
Docwise, used as the real-world validation target and not redistributed here.
License
MIT. See LICENSE. Project requirements and milestone evidence are tracked in docs/PRD.md.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityAmaintenanceA high-performance code knowledge graph server implementing MCP, indexing codebases into a structured AST knowledge graph with semantic search, call graph traversal, and HTTP route tracing.3,01061MIT
- Alicense-qualityAmaintenanceA local MCP server that gives AI coding agents symbol definitions, dependency graphs, and a live architecture vocabulary for TypeScript/JavaScript repos, with no network or embeddings.12MIT
- Alicense-qualityCmaintenanceAn MCP server that indexes your codebase using tree-sitter AST parsing and gives AI tools instant access to structural intelligence like dependency graphs, call trees, and dead code detection from a local SQLite database.MIT
- AlicenseAqualityCmaintenanceAn MCP server that indexes TypeScript/JavaScript codebases into precise call and import graphs using the TypeScript compiler API, allowing Claude or any MCP client to query definitions, callers, callees, and perform impact analysis.7MIT
Related MCP Connectors
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
An MCP server that gives your AI access to the source code and docs of all public github repos
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sayan365/hydragraph-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server