Treant
● Activeio.github.ashkmb/treant-memory
Self-hosted graph memory for AI coding agents: Postgres + pgvector, isolated workspaces.
Connect this server
One click to install, or copy the config below. Suits: Claude Desktop · Cursor.
Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):
{
"mcpServers": {
"treant-memory": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/ashkmb/treant-memory:0.1.1"
],
"env": {
"TREANT_DATABASE_URL": "<your TREANT_DATABASE_URL>",
"TREANT_EMBED_URL": "<your TREANT_EMBED_URL>",
"TREANT_EMBED_MODEL": "embeddinggemma-300m",
"TREANT_EMBED_DIMS": "768",
"TREANT_BIND": "0.0.0.0:8000"
}
}
}
}claude mcp add --env TREANT_DATABASE_URL='<your TREANT_DATABASE_URL>' --env TREANT_EMBED_URL='<your TREANT_EMBED_URL>' --env TREANT_EMBED_MODEL=embeddinggemma-300m --env TREANT_EMBED_DIMS=768 --env TREANT_BIND=0.0.0.0:8000 --transport stdio treant-memory -- docker run -i --rm ghcr.io/ashkmb/treant-memory:0.1.1codex mcp add treant-memory --env TREANT_DATABASE_URL='<your TREANT_DATABASE_URL>' --env TREANT_EMBED_URL='<your TREANT_EMBED_URL>' --env TREANT_EMBED_MODEL=embeddinggemma-300m --env TREANT_EMBED_DIMS=768 --env TREANT_BIND=0.0.0.0:8000 -- docker run -i --rm ghcr.io/ashkmb/treant-memory:0.1.1code --add-mcp '{"name":"treant-memory","type":"stdio","command":"docker","args":["run","-i","--rm","ghcr.io/ashkmb/treant-memory:0.1.1"],"env":{"TREANT_DATABASE_URL":"<your TREANT_DATABASE_URL>","TREANT_EMBED_URL":"<your TREANT_EMBED_URL>","TREANT_EMBED_MODEL":"embeddinggemma-300m","TREANT_EMBED_DIMS":"768","TREANT_BIND":"0.0.0.0:8000"}}'Syntax from each client's docs (Claude Code: claude mcp add; Codex: codex mcp add; VS Code: code --add-mcp). Placeholders in angle brackets are values you fill in.
- TREANT_DATABASE_URLrequiredsecretPostgres 17 with pgvector (the quick start's docker compose runs one)
- TREANT_EMBED_URLrequiredOpenAI-compatible embedding service (the quick start runs one)
- TREANT_EMBED_MODELEmbedding model name
- TREANT_EMBED_DIMSEmbedding dimensions
- TREANT_BINDListen address inside the container
A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.
Is it safe? Is it maintained?
Serverdex check: Nov 29, 2026Mostly fine: Treant is maintained.
- Maintained
- Active
- Last commit 8 days ago (Nov 26, 2026), 1 open issues.
- Official registry
- Active
- Published as io.github.ashkmb/treant-memory in the official MCP registry, version 0.1.1.
- Source
- Licence not recognised
- A licence file is present, but GitHub does not recognise it as a standard open-source licence, 0 stars — it may be proprietary or custom. Read the licence and the README before shipping it in a product.
- Runs
- On your machine
- A local Docker package started by your client; it can reach whatever your user account can.
- Credentials
- 2 required
- Declared environment variables: TREANT_DATABASE_URL, TREANT_EMBED_URL. They stay on your machine; the config on this page shows where each goes.
- Owner
- Unclaimed
- Nobody has claimed this page yet; the data above comes from the registry, GitHub and the live check.
Facts only: last commit and licence from GitHub, the entry's status from the official registry, credentials from the live check. Not a code audit — run the security scan on the endpoint yourself.
Report Card
How the grade works →Grade B · Well-maintained
Maintenance & production-readiness — 65/100 from the six repository signals below. A comparable rollup, not a code audit.
- Recent commits+30/30
Last commit 8 days ago.
- Open licence0/15
GitHub reports no recognised licence (Other).
- Documentation+15/15
The repository ships a README.
- Adoption0/20
0 GitHub stars.
- Registry status+12/12
Active in the official MCP registry.
- Product surface+8/8
Has a homepage or a published package/endpoint.
Own this server? Add the grade badge — it links back here
<a href="https://serverdex.io/server/io-github-ashkmb-treant-memory?utm_source=report-badge"><img src="https://serverdex.io/server/io-github-ashkmb-treant-memory/report-badge.svg" alt="Treant — Serverdex Report Card B" height="22"></a>Compare every server's grade on best-maintained MCP servers.
On GitHub
read Nov 27, 2026Pythonai-agentsclaude-codeknowledge-graphmcpmemorymodel-context-protocolpgvectorpostgres
From the README
Quick start · Features · How it works · Screenshots · Deploy · Licence Overview Treant is a self-hosted MCP server that gives Claude Code, Kiro and any other MCP client a memory that outlives the session. What an agent learns is scrubbed, saved and distilled into a knowledge graph that the next session can search. • Remembers across sessions: a brief at session start and hybrid search over vectors and graph, so agents stop re-learning the same things. • Keeps contexts apart: each workspace (personal, acme, startup) is its own Postgres schema and role, and a token reaches exactly one. • Shares only what is safe: know-how reaches the common general schema only through a gate of rules and two independent judges. A real run against the quick start, with distillation on a local 7B model. The agent's MCP calls come from docs/demo/demo.py ; docs/demo/demo.tape re-records it. Status: source-available, early (0.1.1). The Python package and the CLI are called treant. Why Treant Seen from a coding agent's side of the terminal, four things go wrong without it: • Every session starts from zero. The agent rediscovers the repository layout, the build quirk and the approach it already ruled out last week, and spends tokens doing it. Treant hands it a brief at session start (warnings, open threads, what memory holds about the repository) and a hybrid search over vectors and a graph of everything saved before. • Context bleeds between clients.…
Read the full README on GitHub →Alternatives to Treant
All Treant alternatives →Best Databases servers →Compare side by side →The most-starred Databases servers in the index, with their live-check result.
| Server | Stars | Last push | Live check |
|---|---|---|---|
| Dbx | 31,377 | Nov 2026 | Local / not checked |
| MCP Toolbox for Databases | 17,062 | Dec 2026 | Local / not checked |
| MCP Toolbox for Databases | 17,062 | Dec 2026 | Local / not checked |
| Finance Database | 9,702 | Nov 2026 | Working |
| DBHub | 4,064 | Dec 2026 | Local / not checked |
Treant: questions people ask
- Is Treant a remote or a local MCP server?
- According to its entry in the official MCP registry, Treant ships as a local package (Docker) that your client starts on your machine.
- Does Treant need an API key?
- Its registry entry declares 2 required environment variables: TREANT_DATABASE_URL, TREANT_EMBED_URL. The config on this page shows where each goes.
- Is Treant safe to use?
- Mostly fine: Treant is maintained. In detail — maintained: Active; official registry: Active; source: Licence not recognised; runs: On your machine; credentials: 2 required. Serverdex check of Nov 29, 2026. This is a reading of the repository, the registry entry and the live check, not a code audit; run the Serverdex security scan on the endpoint before trusting it with real data.
- Is Treant still maintained?
- Active: the repository's last commit 8 days ago. Last push Nov 26, 2026, 0 GitHub stars, Other licence. Read from GitHub on Nov 27, 2026.
- How do I add Treant to Claude, Cursor or VS Code?
- Copy the config in "Connect this server" into your client's MCP config file (claude_desktop_config.json, ~/.cursor/mcp.json or .vscode/mcp.json), or use the one-click Add to Cursor / Add to VS Code buttons and the one-line commands for Claude Code and Codex; then restart the client.
More Databases servers
Browse all Databases →cfgit
Production-ready
Git-style history, diffs, drift checks and rollback for live MongoDB and Postgres config records.
Qdrant MCP
Production-ready
The full Qdrant API as 58 MCP tools: plain-text semantic/BM25/hybrid search and a search advisor.
Lancelot
Well-maintained
An MCP server for search and retrieval over a local LanceDB database
DB Explorer
Production-ready
Read-only SQL for PostgreSQL, MySQL and SQLite: schema, safe SELECTs, EXPLAIN, index advice
pgwarden
Production-ready
Give AI assistants access to Postgres with per-user permissions and human approval for writes.
JSON Schema Tools
Production-ready
Validate JSON against a schema with Ajv, infer a schema from samples and diff two schemas.
Add the badge to your site
Show visitors that Treant is listed here — it’s also the link we check for a free listing.
HTML — for your website
<a href="https://serverdex.io/server/io-github-ashkmb-treant-memory?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="Treant — listed on Serverdex" width="123" height="40" loading="lazy"></a>Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.
Markdown — for your README
[](https://serverdex.io/server/io-github-ashkmb-treant-memory?utm_source=badge)Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.
Install buttons — for your README
[](https://serverdex.io/install/cursor/io-github-ashkmb-treant-memory) [](https://serverdex.io/install/vscode/io-github-ashkmb-treant-memory) [](https://serverdex.io/install/claude-code/io-github-ashkmb-treant-memory)One click opens Cursor or VS Code with this server's config prefilled; the Claude Code button lands on the one-line command. The links point at Serverdex, so when your config changes the buttons keep working.
Install buttons — HTML for your docs
<a href="https://serverdex.io/install/cursor/io-github-ashkmb-treant-memory"><img src="https://serverdex.io/brand/install-cursor.svg" alt="Add to Cursor — via Serverdex" width="140" height="28"></a>
<a href="https://serverdex.io/install/vscode/io-github-ashkmb-treant-memory"><img src="https://serverdex.io/brand/install-vscode.svg" alt="Add to VS Code — via Serverdex" width="147" height="28"></a>
<a href="https://serverdex.io/install/claude-code/io-github-ashkmb-treant-memory"><img src="https://serverdex.io/brand/install-claude-code.svg" alt="Open in Claude Code — via Serverdex" width="180" height="28"></a>Same buttons as plain links for a docs page or website.
Prefer a live badge with the score, stars and live check? Score badge (links to a page that explains the number and back to this listing).