Skip to main content
MCP server CX Codex

Postgram — Claude Code MCP server: setup

A self-hosted knowledge and memory backend for AI agents, with tasks, documents, graph links, and hybrid retrieval.

Open on GitHub

What Postgram does

Postgram stores typed records such as memory, person, project, task, interaction, and document. Agents can use the same corpus through MCP, the REST API, or the pgm CLI, while people use its browser UI and command line. Retrieval combines keyword matching with vectors, and a knowledge graph connects entities through directed relationships.

The service is deployed with Docker Compose. Embeddings can come from Ollama using bge-m3 or from OpenAI via OPENAI_API_KEY; relationship extraction through an LLM starts disabled. Node.js 22+ is only needed for local development or installing the CLI, while gpg is used for encrypted CLI backups.

This is a local or single-VM deployment for one person or a small trusted team, not a hosted multi-tenant SaaS service. If the embedding provider cannot be reached, writes still work, but enrichment and search do not.

What it helps with

  • store durable agent memory
  • search notes and documents with hybrid retrieval
  • connect projects, people, and tasks in a knowledge graph
  • sync local Markdown repositories
  • keep session context separate from durable memory

Example prompts for the agent

  • Save this decision to Postgram as durable memory.
  • Search Postgram for tasks and documents related to this project.
  • Create a personal task in Postgram and tag it quickstart.

How to install Postgram

Install

The MCP registry has no launch command for it: see the repository README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Postgram

How do I install Postgram in Claude Code?

Clone the repository, enter postgram, prepare Ollama with ollama pull bge-m3, and start the stack using docker compose up -d --build. Read the bootstrap token from docker compose logs mcp-server, open http://127.0.0.1:3000/admin, create the first admin, enroll MFA, and generate an API key.

What does Postgram do?

It stores typed memories, documents, tasks, and related records, then exposes them through MCP, REST, or pgm. Search combines text and vector retrieval, with graph links available for related context.

What happens when the embedding provider is unavailable?

The service can still start and accept writes, but enrichment and search remain unavailable until the provider works again.

Similar MCP servers

MCP servers catalog →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor