Skip to main content

MCP server wrapping pgmnemo ingest and recall for AI agent memory

Project description

pgmnemo-mcp

MCP server for pgmnemo — provenance-gated agent memory in PostgreSQL.

PyPI License Python

pgmnemo-mcp is an MCP server that exposes pgmnemo's ingest and recall capabilities as tool calls for AI agents and LLM hosts (Claude Desktop, Cursor, Zed, etc.).

Requirements

  • Python ≥ 3.11
  • A PostgreSQL database with pgmnemo extension installed (CREATE EXTENSION pgmnemo CASCADE;)
  • pgmnemo ≥ 0.5.0 (install guide)

Install

pip install pgmnemo-mcp

Quick start

# Set the database URL
export DATABASE_URL="postgresql://user:pass@localhost/mydb"

# Start the MCP server (stdio transport)
pgmnemo-mcp

Add to Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "pgmnemo": {
      "command": "pgmnemo-mcp",
      "env": {
        "DATABASE_URL": "postgresql://user:pass@localhost/mydb"
      }
    }
  }
}

Configuration

Variable Default Description
DATABASE_URL postgresql://localhost/pgmnemo libpq connection string
MCP_PORT 8765 Port for HTTP/SSE transport (optional)

Tools exposed

Tool Arguments Description
pgmnemo.ingest text: str, metadata?: dict Store a lesson in agent memory
pgmnemo.recall query: str, top_k?: int Retrieve relevant lessons

metadata keys for pgmnemo.ingest: role, topic, importance (1–5), commit_sha.

Usage

# Smoke test — verify DB connectivity
DATABASE_URL=postgresql://user:pass@host/db python -m pgmnemo_mcp --smoke

# SSE transport (for web-based MCP hosts)
MCP_PORT=8765 pgmnemo-mcp

MCP Registry

Field Value
Server name pgmnemo
Entry point pgmnemo-mcp
Transport stdio (default) · SSE (MCP_PORT)

Links

License

Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pgmnemo_mcp-0.7.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pgmnemo_mcp-0.7.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pgmnemo_mcp-0.7.1.tar.gz.

File metadata

  • Download URL: pgmnemo_mcp-0.7.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pgmnemo_mcp-0.7.1.tar.gz
Algorithm Hash digest
SHA256 4ca767591dcc1ffa8d32a09be19733aa58a73dfdc5d9d705ff789dbd3f59d3f9
MD5 49075ec26f286281f1e4cb17d6b95301
BLAKE2b-256 fae74af88bce18e9a43e92070d8dd1d0f2b0c959feeec701d336879a4197f620

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgmnemo_mcp-0.7.1.tar.gz:

Publisher: release.yml on pgmnemo/pgmnemo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgmnemo_mcp-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: pgmnemo_mcp-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pgmnemo_mcp-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2132a58a7030984024022229d06726845ea0594040f6bed24b54b92bb8e91d0
MD5 a476684926c55c119cfbbefbeb1333eb
BLAKE2b-256 aa49b23e64d76110d5f9bcbe66de24b23e4155bc88ece53b1e46add924f77cc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgmnemo_mcp-0.7.1-py3-none-any.whl:

Publisher: release.yml on pgmnemo/pgmnemo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page