Install guide · Cursor
Install Postgram for Cursor
Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.
Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "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
| System | Path |
|---|---|
| macOS | ~/.cursor/mcp.json |
| Windows | %USERPROFILE%\.cursor\mcp.json |
| Linux | ~/.cursor/mcp.json |