
Tentra — Memory for AI Coding Agents
Tentra gives AI coding agents a persistent code graph so they can query symbols, call edges, and imports instead of re-reading files every session. The server exposes 35 tools split across architecture design (create diagrams, export to 14 frameworks like Spring Boot or FastAPI), code indexing (Tree-sitter parsing, semantic embeddings, snapshot diffing), and enrichment (ADRs, API contracts, ownership mappings). It ships with a git post-commit hook that auto-refreshes the index after every commit. The team benchmarked 99.4% token reduction on "where is X implemented?" queries by routing through query_symbols instead of naive file grep. Use this if you want agents to navigate large codebases without paying to re-index context in every conversation.
- GitHub stars
- 1
- tools
- 36
- auth
- Secret needed
- transport
- STDIO, SSE
- env var
- 1
- last updated
- Apr 20, 2026
Tools
36 toolsPublic tool metadata for what this MCP can expose to an agent.
create_architectureDesign a new system from a description
Design a new system from a description
No parameter schema in public metadata yet.
update_architectureModify an existing architecture
Modify an existing architecture
No parameter schema in public metadata yet.
get_architectureRead architecture details
Read architecture details
No parameter schema in public metadata yet.
list_architecturesBrowse all saved designs
Browse all saved designs
No parameter schema in public metadata yet.
analyze_codebaseScan local code and generate diagram
Scan local code and generate diagram
No parameter schema in public metadata yet.
lint_architectureQuality checks (9 rules: orphans, SPOFs, god services)
Quality checks (9 rules: orphans, SPOFs, god services)
No parameter schema in public metadata yet.
sync_architectureDetect drift between diagram and code
Detect drift between diagram and code
No parameter schema in public metadata yet.
get_spec_alignmentMid-implementation drift check — changed files in, spec context + drift signals out
Mid-implementation drift check — changed files in, spec context + drift signals out
No parameter schema in public metadata yet.
export_architectureExport to 14 frameworks (Java, Python, Go, Rust, etc.)
Export to 14 frameworks (Java, Python, Go, Rust, etc.)
No parameter schema in public metadata yet.
create_flowCreate step-by-step flow visualization
Create step-by-step flow visualization
No parameter schema in public metadata yet.
index_codeWalk a repo, Tree-sitter locally, start a semantic indexing job
Walk a repo, Tree-sitter locally, start a semantic indexing job
No parameter schema in public metadata yet.
index_code_continueResume an in-progress indexing job
Resume an in-progress indexing job
No parameter schema in public metadata yet.
record_semantic_nodePersist an agent-extracted semantic annotation
Persist an agent-extracted semantic annotation
No parameter schema in public metadata yet.
get_index_jobCheck status of an indexing job
Check status of an indexing job
No parameter schema in public metadata yet.
query_symbolsFuzzy trigram search across indexed symbols
Fuzzy trigram search across indexed symbols
No parameter schema in public metadata yet.
find_referencesEvery resolved caller of a symbol — refactor-safety primitive
Every resolved caller of a symbol — refactor-safety primitive
No parameter schema in public metadata yet.
safe_renamePatch plan (definition + every call site) for renaming a symbol
Patch plan (definition + every call site) for renaming a symbol
No parameter schema in public metadata yet.
explain_codebaseAgent-ready narrative walkthrough of a whole repo
Agent-ready narrative walkthrough of a whole repo
No parameter schema in public metadata yet.
get_symbol_neighborsBFS traversal in the call/import graph
BFS traversal in the call/import graph
No parameter schema in public metadata yet.
get_service_code_graphSubgraph for a canvas service
Subgraph for a canvas service
No parameter schema in public metadata yet.
explain_code_pathShortest path between two symbols with semantic context
Shortest path between two symbols with semantic context
No parameter schema in public metadata yet.
find_similar_codepgvector cosine ANN over agent-generated embeddings
pgvector cosine ANN over agent-generated embeddings
No parameter schema in public metadata yet.
record_embeddingPersist an agent-generated embedding vector
Persist an agent-generated embedding vector
No parameter schema in public metadata yet.
list_god_nodesHighest fan-in/out symbols (architectural smells)
Highest fan-in/out symbols (architectural smells)
No parameter schema in public metadata yet.
get_quality_hotspotsChurn × complexity ranking
Churn × complexity ranking
No parameter schema in public metadata yet.
list_snapshotsTime-travel listing of indexed snapshots
Time-travel listing of indexed snapshots
No parameter schema in public metadata yet.
diff_snapshotsFiles / symbols / god-nodes added/removed between snapshots
Files / symbols / god-nodes added/removed between snapshots
No parameter schema in public metadata yet.
set_service_mappingLink an indexed file or symbol to a canvas service
Link an indexed file or symbol to a canvas service
No parameter schema in public metadata yet.
set_domain_membershipAssign a service or file to a domain (bounded context)
Assign a service or file to a domain (bounded context)
No parameter schema in public metadata yet.
record_contractStore a parsed API contract payload (OpenAPI, GraphQL, Protobuf)
Store a parsed API contract payload (OpenAPI, GraphQL, Protobuf)
No parameter schema in public metadata yet.
bind_contractLink a contract to the symbol that implements it
Link a contract to the symbol that implements it
No parameter schema in public metadata yet.
record_decisionCreate an Architecture Decision Record, optionally linking code
Create an Architecture Decision Record, optionally linking code
No parameter schema in public metadata yet.
link_decisionAppend a link from an ADR to another symbol, file, or service
Append a link from an ADR to another symbol, file, or service
No parameter schema in public metadata yet.
get_ownershipResolve the owner (team or person) for a file or service
Resolve the owner (team or person) for a file or service
No parameter schema in public metadata yet.
get_decisions_forList ADRs linked to a given entity
List ADRs linked to a given entity
No parameter schema in public metadata yet.
get_contractsList contracts, optionally filtered by kind or service
List contracts, optionally filtered by kind or service
No parameter schema in public metadata yet.
Sponsors
Configuration
TENTRA_API_KEYsecretTentra API key (optional — device flow auth via GitHub is used by default)
Readme
tentra-mcp
Memory for AI coding agents. Persistent code graph + AI-generated architecture diagrams — MCP-native. Works in Cursor, Claude Code, Codex, and Windsurf.
Dogfood benchmark on our own monorepo: 99.4% token reduction (156.8× ratio) across 8 "where is X implemented?" queries — 114,644 tokens via file re-read vs 731 tokens via query_symbols. Full write-up →
Quick Start (60 seconds)
cd your-repo
npx tentra-mcp init --hook
One command:
Details
- Repository
- github.com/rdanieli/tentra-mcp
- Category
- AI & LLM Tools
- Package
tentra-mcp- Transport
- STDIO, SSE
- Auth
- Required
- Registry
- MCP registry, active