Postgram

io.github.ivo-toby/postgram

Self-hosted memory for AI agents with hybrid search, knowledge graphs, tasks, and document sync.

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "postgram": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/ivo-toby/postgram@sha256:29b61fb302bd52862b8eba43305ee2aa4fc072d5f9188652f1fe6324f49d5391"
      ],
      "env": {
        "DATABASE_URL": "<your DATABASE_URL>",
        "OPENAI_API_KEY": "<your OPENAI_API_KEY>",
        "EMBEDDING_PROVIDER": "ollama",
        "EMBEDDING_BASE_URL": "http://host.docker.internal:11434",
        "ADMIN_MFA_SECRET_KEY": "<your ADMIN_MFA_SECRET_KEY>",
        "ADMIN_SETTINGS_ENCRYPTION_KEY": "<your ADMIN_SETTINGS_ENCRYPTION_KEY>"
      }
    }
  }
}
Environment variables
  • DATABASE_URLrequiredsecretPostgreSQL connection URL for a database with the pgvector extension enabled.
  • OPENAI_API_KEYsecretRequired only when OpenAI is selected for embeddings or extraction.
  • EMBEDDING_PROVIDEREmbedding provider: openai or ollama.
  • EMBEDDING_BASE_URLOllama embedding endpoint when EMBEDDING_PROVIDER is ollama.
  • ADMIN_MFA_SECRET_KEYrequiredsecretStable random value of at least 32 characters used to protect admin MFA seeds.
  • ADMIN_SETTINGS_ENCRYPTION_KEYrequiredsecretStable 32-byte base64url key used to encrypt provider secrets saved in the admin UI.

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
0.1.3
Registry
active
Published
7/12/2026
Browse all Developer Tools →

Add the badge to your site

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

Postgram — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-ivo-toby-postgram?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="Postgram — 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

[![Postgram — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-ivo-toby-postgram?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.