Self-hosted memory for AI agents with hybrid search, knowledge graphs, tasks, and document sync.
Postgram MCP server is a hosted integration for AI assistants that speak the Model Context Protocol. Self-hosted memory for AI agents with hybrid search, knowledge graphs, tasks, and document sync.
A self-hosted productivity and knowledge backend for humans and AI agents.
Once Postgram is connected, these are the calls the assistant has available:
Server — The Server tool exposed by this serverBeing a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.
You will need 8 environment variables: PGM_API_URL, PGM_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, OLLAMA_BASE_URL, ADMIN_MFA_SECRET_KEY, ADMIN_SETTINGS_ENCRYPTION_KEY, POSTGRES_HOST. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
pgm CLI or local development - a reachable OpenAI or Ollama embedding provider for enrichment and search Optional: - OpenAI API key (for OpenAI embeddings or extraction) - Anthropic API key (for LLM extraction) - Ollama (for local embeddings or LLM extraction) - gpg (for encrypted CLI backups)Plenty of knowledge and memory servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Postgram's toolset — Server — is a fair guide to whether it matches your workflow. It is maintained by ivo-toby; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| Server | The Server tool exposed by this server. |
{
"mcpServers": {
"postgram": {
"command": "npx",
"args": ["-y", "@ivotoby/postgram-cli"],
"env": {
"PGM_API_URL": "your-value",
"PGM_API_KEY": "your-value",
"OPENAI_API_KEY": "your-value",
"ANTHROPIC_API_KEY": "your-value",
"OLLAMA_BASE_URL": "your-value",
"ADMIN_MFA_SECRET_KEY": "your-value",
"ADMIN_SETTINGS_ENCRYPTION_KEY": "your-value",
"POSTGRES_HOST": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
pgm CLI or local development - a reachable OpenAI or Ollama embedding provider for enrichment and search Optional: - OpenAI API key (for OpenAI embeddings or extraction) - Anthropic API key (for LLM extraction) - Ollama (for local embeddings or LLM extraction) - gpg (for encrypted CLI backups)| Variable | Description | Required |
|---|---|---|
| PGM_API_URL | Endpoint or connection string the server talks to. | Yes |
| PGM_API_KEY | Credential the server authenticates with. | Yes |
| OPENAI_API_KEY | Credential the server authenticates with. | Yes |
| ANTHROPIC_API_KEY | Credential the server authenticates with. | Yes |
| OLLAMA_BASE_URL | Endpoint or connection string the server talks to. | Yes |
| ADMIN_MFA_SECRET_KEY | Credential the server authenticates with. | Yes |
| ADMIN_SETTINGS_ENCRYPTION_KEY | Credential the server authenticates with. | Yes |
| POSTGRES_HOST | Endpoint or connection string the server talks to. | Optional |
A knowledge graph your assistant keeps between sessions — entities, relations and observations that persist.
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Your workspace, on speaking terms with AI — search, read and write Notion pages and databases.
A structured scratchpad for hard problems — stepwise reasoning with revisions, branches and visible logic.
Symbol-level code navigation, refactoring and memory for coding agents — the IDE brain your assistant has been missing.
Chat with your second brain — search, read and write vault notes through the Local REST API.