Skip to main content
Glama

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}/query

HydraGraph 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 over CALLS edges.

  • 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:smoke

mcp: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.js

Real 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
  -> getLanguage

That 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:smoke

Attribution

License

MIT. See LICENSE. Project requirements and milestone evidence are tracked in docs/PRD.md.

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    -
    quality
    A
    maintenance
    A 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,010
    61
    MIT
  • A
    license
    -
    quality
    A
    maintenance
    A 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.
    12
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    An 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
  • A
    license
    A
    quality
    C
    maintenance
    An 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.
    7
    MIT

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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