Featured

Deploy OpenClaw in 60 seconds β€” 20% off logoDeploy OpenClaw in 60 seconds β€” 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger β†’
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger β†’
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free β†’
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now β†’
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data β€” no proxies, no parsers, no maintenance.

Start building free β†’
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it β€” secured from day one.

Get it set up for you β†’
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free β†’
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here β†’

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

rdanieli/tentra-mcp MCP server](https://glama.ai/mcp/servers/rdanieli/tentra-mcp/badges/score.svg)](https://glama.ai/mcp/servers/rdanieli/tentra-mcp) πŸ“‡ ☁️ 🏠 🍎 πŸͺŸ 🐧 - AI-native architecture platform for engineering teams.

README.md

tentra-mcp

![npm version](https://www.npmjs.com/package/tentra-mcp) ![npm downloads](https://www.npmjs.com/package/tentra-mcp) ![CI](https://github.com/rdanieli/tentra-mcp/actions/workflows/ci.yml) ![License: MIT](LICENSE)

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:

  1. Writes MCP config for Cursor / Claude Code / Codex / Windsurf (whichever are installed)
  2. Installs a git post-commit hook so the code graph auto-refreshes after every commit β€” no manual re-indexing
  3. Auto-derives your repo_id from the git remote and saves it to .tentra/metadata.json

Then grab your API key at trytentra.com/settings, replace YOUR_TENTRA_API_KEY in the generated config, reload your IDE, and ask your agent:

Index this codebase with Tentra and list the god-nodes

From here on, every git commit fires a background re-index. Your agents stay caught up automatically.

Skip the hook: drop --hook β€” just writes IDE configs. Manual stdio install: npx tentra-mcp (opens browser for GitHub device-flow auth on first tool call). API key instead: npx tentra-mcp --key YOUR_API_KEY.

What is Tentra?

Tentra is an AI-native architecture platform for engineering teams. Describe a system β€” get a diagram and 14-framework code exports. Index your repo β€” agents query a structured graph of files, symbols, imports, and call edges instead of re-grepping source every session.

This MCP server gives your AI assistant 36 tools:

Architecture (10 tools)

| Tool | Description | |------|-------------| | create_architecture | Design a new system from a description | | update_architecture | Modify an existing architecture | | get_architecture | Read architecture details | | list_architectures | Browse all saved designs | | analyze_codebase | Scan local code and generate diagram | | lint_architecture | Quality checks (9 rules: orphans, SPOFs, god services) | | sync_architecture | Detect drift between diagram and code | | get_spec_alignment | Mid-implementation drift check β€” changed files in, spec context + drift signals out | | export_architecture | Export to 14 frameworks (Java, Python, Go, Rust, etc.) | | create_flow | Create step-by-step flow visualization |

Code Graph β€” Write (4 tools)

| Tool | Description | |------|-------------| | index_code | Walk a repo, Tree-sitter locally, start a semantic indexing job | | index_code_continue | Resume an in-progress indexing job | | record_semantic_node | Persist an agent-extracted semantic annotation | | get_index_job | Check status of an indexing job |

Code Graph β€” Read (13 tools)

| Tool | Description | |------|-------------| | query_symbols | Fuzzy trigram search across indexed symbols | | find_references | Every resolved caller of a symbol β€” refactor-safety primitive | | safe_rename | Patch plan (definition + every call site) for renaming a symbol | | explain_codebase | Agent-ready narrative walkthrough of a whole repo | | get_symbol_neighbors | BFS traversal in the call/import graph | | get_service_code_graph | Subgraph for a canvas service | | explain_code_path | Shortest path between two symbols with semantic context | | find_similar_code | pgvector cosine ANN over agent-generated embeddings | | record_embedding | Persist an agent-generated embedding vector | | list_god_nodes | Highest fan-in/out symbols (architectural smells) | | get_quality_hotspots | Churn Γ— complexity ranking | | list_snapshots | Time-travel listing of indexed snapshots | | diff_snapshots | Files / symbols / god-nodes added/removed between snapshots |

Enrichment β€” Contracts, Decisions, Ownership, Domains (9 tools)

| Tool | Description | |------|-------------| | set_service_mapping | Link an indexed file or symbol to a canvas service | | set_domain_membership | Assign a service or file to a domain (bounded context) | | record_contract | Store a parsed API contract payload (OpenAPI, GraphQL, Protobuf) | | bind_contract | Link a contract to the symbol that implements it | | record_decision | Create an Architecture Decision Record, optionally linking code | | link_decision | Append a link from an ADR to another symbol, file, or service | | get_ownership | Resolve the owner (team or person) for a file or service | | get_decisions_for | List ADRs linked to a given entity | | get_contracts | List contracts, optionally filtered by kind or service |

Setup

Option 1: SSE (zero install)

Add to your IDE's MCP config β€” no local install needed:

Cursor (Settings > Features > MCP > Add Server): ``json { "tentra": { "type": "sse", "url": "https://trytentra.com/api/mcp?key=YOUR_API_KEY" } } ``

Claude Code (.mcp.json in project root): ``json { "mcpServers": { "tentra": { "type": "sse", "url": "https://trytentra.com/api/mcp?key=YOUR_API_KEY" } } } ``

Option 2: Local install (needed for codebase scanning)

npx tentra-mcp

Authenticates automatically via GitHub on first use. Credentials are saved to ~/.tentra/credentials.

Cursor config for local server: ``json { "tentra": { "command": "npx", "args": ["tentra-mcp"] } } ``

Claude Code (.mcp.json): ``json { "mcpServers": { "tentra": { "command": "npx", "args": ["tentra-mcp"] } } } ``

Usage Examples

Once connected, just talk to your AI:

"Design a payment system with Stripe, Kafka, and PostgreSQL"
β†’ AI calls create_architecture β†’ diagram at trytentra.com/arch/xxx

"Scan this codebase and generate the architecture"
β†’ AI calls analyze_codebase β†’ detects services, DBs, queues

"Export this architecture to Java Spring Boot"
β†’ AI calls export_architecture β†’ downloads zip with project scaffold

"What changed since last time? Is my diagram outdated?"
β†’ AI calls sync_architecture β†’ drift report with accuracy score

Export Formats

Java (Spring Boot), Node.js (Fastify), Python (FastAPI), Go (chi), Rust (Axum), .NET (ASP.NET), Kotlin (Ktor), PHP (Laravel), Ruby (Rails), Elixir (Phoenix), Docker Compose, Mermaid, ADR, Terraform

Links

Development

This repo contains the open-source MCP server. The Tentra API and web app are a separate hosted service at trytentra.com.

npm install --legacy-peer-deps
npm run build      # tsc --noEmit + esbuild bundle β†’ dist/index.js
npm start          # run the bundled server
npm test           # vitest

The published npm package (tentra-mcp) ships only the bundled dist/ β€” source is here for auditability and community contributions.

License

MIT

See related servers & alternatives β†’

Related MCP servers

Browse all β†’

Related guides

Hand-picked reading to help you choose and use Databases servers.