Treant

● Active

io.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.

Add to Cursor Add to VS CodeClaude Desktop / Claude Code: paste the config below.

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"
      }
    }
  }
}
One line, from the terminal
Claude Code
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.1
OpenAI Codex CLI
codex 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.1
VS Code
code --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.

Environment variables
  • 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.

Category
Databases
Version
0.1.1
Registry
active
Published
Nov 26, 2026
Listed in:Official MCP registry ↗how this is checked

Is it safe? Is it maintained?

Serverdex check: Nov 29, 2026

Mostly 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.

B

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, 2026
Stars
0
Forks
0
Last push
Nov 26, 2026
License
Other

Pythonai-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 →

The most-starred Databases servers in the index, with their live-check result.

ServerStarsLast pushLive check
Dbx31,377Nov 2026Local / not checked
MCP Toolbox for Databases17,062Dec 2026Local / not checked
MCP Toolbox for Databases17,062Dec 2026Local / not checked
Finance Database9,702Nov 2026Working
DBHub4,064Dec 2026Local / 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.
Browse all Databases →

Add the badge to your site

Show visitors that Treant is listed here — it’s also the link we check for a free listing.

Treant — listed on Serverdex

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

[![Treant — listed on Serverdex](https://serverdex.io/brand/badge.svg)](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.

Add to CursorAdd to VS CodeOpen in Claude Code

Install buttons — for your README

[![Add to Cursor](https://serverdex.io/brand/install-cursor.svg)](https://serverdex.io/install/cursor/io-github-ashkmb-treant-memory) [![Add to VS Code](https://serverdex.io/brand/install-vscode.svg)](https://serverdex.io/install/vscode/io-github-ashkmb-treant-memory) [![Open in Claude Code](https://serverdex.io/brand/install-claude-code.svg)](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).