Skip to content
Grok

Treant for Grok

io.github.ashkmb/treant-memory

Self-hosted graph memory for AI coding agents: Postgres + pgvector, isolated workspaces.

client:Grok transport:stdio runtime:oci

Install Treant in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "treant-memory": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/ashkmb/treant-memory:0.1.1"
      ],
      "env": {
        "TREANT_DATABASE_URL": "<TREANT_DATABASE_URL>",
        "TREANT_EMBED_URL": "<TREANT_EMBED_URL>",
        "TREANT_EMBED_MODEL": "<TREANT_EMBED_MODEL>",
        "TREANT_EMBED_DIMS": "<TREANT_EMBED_DIMS>",
        "TREANT_BIND": "<TREANT_BIND>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Treant in other clients