Skip to content
Postgram
Install guide · Cursor

Install Postgram for Cursor

Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.

  1. Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.

  2. Paste the JSON config below.

  3. Replace placeholder secrets, then restart the client if it does not reload on its own.

~/.cursor/mcp.json
{  "mcpServers": {    "ivo-toby-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"      }    }  }}

Where the config lives

SystemPath
macOS~/.cursor/mcp.json
Windows%USERPROFILE%\.cursor\mcp.json
Linux~/.cursor/mcp.json