Skip to content
plugmcp
DirectorySkillsCategoriesBlog
EN/δΈ­ζ–‡
Sign inSign up
Home/Servers/Polymnemo

Polymnemo

by io.github.PCBZ

Shared cross-LLM long-term memory over MCP: semantic recall, sessions, and media (pgvector).

Power your agent

Add this server

The publisher's own URL. Not a PlugMCP endpoint.

Server URL
https://polymnemo.purpleground-26f6d744.westus2.azurecontainerapps.io/mcp
Provider
Add in Claude

Claude opens with the name and URL filled in. You still confirm it there.

Claude Code
claude mcp add --transport http io.github.pcbz-polymnemo https://polymnemo.purpleground-26f6d744.westus2.azurecontainerapps.io/mcp

Run in a terminal.

Claude Desktop
{
  "mcpServers": {
    "io.github.pcbz-polymnemo": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://polymnemo.purpleground-26f6d744.westus2.azurecontainerapps.io/mcp"
      ]
    }
  }
}

claude_desktop_config.json

Step-by-step: add this in Claude

Remote URL or a command on your machine? How the two installs differ

Run on PlugMCP

Host a copy with our keys and logs.

A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.

Launch

Related MCP

View more
  • FirecrawlπŸ”₯ Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
  • N
    NotionToken-auth Notion MCP: pages, databases, blocks, comments, files. Runs headless in CI and agents.
  • Context7Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

Related skills

View all
  • reaReverse engineer anything with agents, from app behavior down to native binaries.
  • rea-changelog-updatePrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.
  • rea-tool-designDesign or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.

Questions

How do I install Polymnemo?
Copy the http config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
Does Polymnemo need an API key?
No required environment variable is listed on this record.
What transport does Polymnemo use?
Polymnemo is reached over HTTP.
When was Polymnemo last checked?
Last checked 2026-10-16. Shared cross-LLM long-term memory over MCP: semantic recall, sessions, and media (pgvector).

Shared cross-LLM long-term memory over MCP: semantic recall, sessions, and media (pgvector).

polymnemo

A shared long-term memory across any LLM, over MCP.

Point Claude Desktop, an MCP-capable IDE, or any MCP client at one polymnemo endpoint and they share the same memories β€” stored in your own Postgres. Store a fact with one assistant, recall it from another; save whole sessions and reload them; even attach files, images, or video. Embeddings run locally (no embedding API key), and the server makes no generative-LLM calls.

Status: active development. Semantic memory + pgvector store, session save/reload, and multimedia memories all work; deployable to Azure Container Apps (or Cloud Run) via Terraform. Wiki Β· Issues

Features

  • πŸ”— Cross-LLM shared β€” point any MCP client at one endpoint; they share the same memory.
  • 🧠 Semantic recall β€” vector search over Postgres + pgvector, not keyword matching.
  • πŸ’¬ Sessions β€” save a full transcript and reload it verbatim, or recall across it.
  • πŸ–ΌοΈ Multimedia β€” attach files, images, or video; bytes go to object storage, only a searchable description is embedded.
  • πŸ”’ Local & private β€” embeddings run locally (ONNX): no embedding API key, and no generative-LLM calls, ever.
  • πŸ‘₯ Namespaces β€” "born-shared" collections readable by everyone, vs. private-to-owner; writes are always owner-scoped.
  • 🧩 Pluggable layers β€” store, embedder, auth, retriever, blob store, and rate limiter are all swappable Protocols.
  • ☁️ Multi-cloud deploy β€” one Terraform stack to Azure Container Apps or Cloud Run, scale-to-zero.
  • 🚦 Rate limiting β€” optional global token bucket.

How it works

flowchart LR
    Clients["MCP clients<br/>(Claude Desktop, IDEs, …)"] -->|"/mcp Β· Bearer key"| P["polymnemo<br/>(MCP server)"]
    P --> DB[("Postgres + pgvector<br/>text + pointers")]
    P -. "large files<br/>(presigned URLs)" .-> OS[("Object storage<br/>S3 / R2")]

A request carries a bearer key (which resolves to a user_id); the tool passes the rate-limit gate, then delegates to a MemoryService that chunks + embeds text and stores the vectors in pgvector β€” large files go to object storage via presigned URLs, with only a searchable description embedded.

Every layer is a typing.Protocol, wired together by a composition root (context.py), so you can swap an implementation without touching the tools:

LayerDefaultSwap for
StorePostgresStore (pgvector)InMemoryStore (dev/tests)
Embedderfastembed (local ONNX)StubEmbedder (offline)
AuthGitHub OAuth + API tokensstatic bearer keys (dev)
RetrieverVectorRetrieveryour own ranker
BlobStoreS3 / R2off
RateLimiterglobal token bucketoff

The ping tool returns the active layers, so you can see how a running server is wired.

Quickstart

Requires Python 3.11+.

1. Install

python -m venv .venv
source .venv/bin/activate            # Windows: .venv\Scripts\activate
pip install -e .                     # add ".[dev]" for the test + lint tooling

2. Provision Postgres (pgvector)

The durable store is Postgres + pgvector; the easiest hosted option is Neon (use the pooled connection string). Apply the schema once:

psql "<your-connection-string>" -f scripts/schema.sql

3. Configure

Copy .env.example to .env and set the database URL and at least one API key:

POLYMNEMO_DATABASE_URL=postgresql://user:pass@host/db?sslmode=require
POLYMNEMO_API_KEYS=sk-alice-secret:alice,sk-bob-secret:bob   # "key:user_id" pairs

Each key maps a bearer token to a user_id; writes are scoped to that user.

4. Run

polymnemo                            # Streamable HTTP at http://127.0.0.1:8000/mcp

Or with Docker:

docker build -t polymnemo .
docker run -e POLYMNEMO_DATABASE_URL="..." -e POLYMNEMO_API_KEYS="sk-alice-secret:alice" \
           -e PORT=8080 -p 8080:8080 polymnemo

5. Connect an MCP client

Any client that supports remote (HTTP) MCP servers with custom headers needs two things:

  • Endpoint: http://<host>:<port>/mcp
  • Header: Authorization: Bearer <your-key>

For clients that read an mcpServers config:

{
  "mcpServers": {
    "polymnemo": {
      "url": "http://127.0.0.1:8000/mcp",
      "headers": { "Authorization": "Bearer sk-alice-secret" }
    }
  }
}

Or verify with the inspector:

npx @modelcontextprotocol/inspector
# Transport: Streamable HTTP Β· URL: http://127.0.0.1:8000/mcp
# Header:    Authorization: Bearer sk-alice-secret  β†’ call ping / remember / recall

Concepts

  • Users & keys β€” sign in with GitHub, or present a bearer token. Either way the request resolves to a user_id, and writes are owner-scoped (you can only edit or delete your own memories).
  • Headless clients β€” CI, cron jobs and server-side agents can't complete a browser sign-in, so they use an API token instead. Sign in with GitHub at <server>/tokens to create, list and revoke them; a new token is shown once and stored only as a SHA-256 hash. Deliberately not MCP tools β€” a secret must never travel an LLM channel.
  • Namespaces β€” memories live in namespaces. A shared namespace (default shared) is readable by everyone ("born shared"); everything else is private to its owner. Sessions and media default to private namespaces.
  • Chunking β€” long content is split into chunks on write (one vector each), so remember may return several ids and recall returns the closest chunks.
  • Secret scanning β€” optional, off unless configured. When on, the text of a memory is scanned before it is embedded or stored, so a refused write was never written rather than deleted afterwards. It covers remember, save_session, update and a media memory's description. The contents of uploaded files are not scanned and are stored as you sent them: the bytes go straight to object storage under a presigned URL and never pass through this server. A file's description is scanned; the file is not.

Tools

polymnemo exposes MCP tools for storing, searching, and managing memories:

  • Memory β€” remember, recall, list_memories, get_memory, update, forget
  • Sessions β€” save_session, load_session
  • Media β€” create_upload, confirm_upload, get_download_url

Plus a ping health check and a memory://{namespace} resource for auto-injecting a collection. Media bytes go to object storage via presigned URLs β€” never through the MCP channel β€” with only a searchable description embedded (needs the blob extra).

Full arguments and return shapes live in the dedicated MCP tools reference (coming soon). See Concepts for how keys, namespaces, and chunking work.

Configuration

POLYMNEMO_* environment variables (or .env) β€” full list in .env.example. The essentials:

VariableDefaultPurpose
POLYMNEMO_DATABASE_URL(unset)Postgres+pgvector DSN. Required in production; unset β†’ in-memory (dev/tests).
POLYMNEMO_API_KEYS(empty)"key1:alice,key2:bob" β€” required for bearer auth.
POLYMNEMO_SHARED_NAMESPACESsharedNamespaces readable by every user.
POLYMNEMO_HOST / POLYMNEMO_PORT / POLYMNEMO_MCP_PATH127.0.0.1 / 8000 / /mcpTransport.
POLYMNEMO_RATELIMIT_ENABLED / _PER_MINfalse / 600Optional global rate limit (ops per minute).
POLYMNEMO_BLOB_BACKEND (+ _BUCKET / _ENDPOINT_URL / _ACCESS_KEY_ID / _SECRET_ACCESS_KEY)noneObject storage for media memories; s3 = Cloudflare R2 / S3-compatible.

Development

pip install -e ".[dev]"
pytest                               # fast, offline (stub embedder, in-memory store)
ruff check . && ruff format --check .   # lint + format (enforced in CI)

Postgres tests run when TEST_DATABASE_URL points at a pgvector Postgres. CI (.github/workflows/ci.yml) runs lint + the suite with coverage and posts a pass/fail/coverage table to each run's summary.

Deploy

polymnemo is stateless (all state in Neon + object storage), so it runs on Azure Container Apps (primary) or Google Cloud Run with scale-to-zero. Everything is Terraform in deploy/terraform/: shared neon/ (Postgres) and r2/ (media bucket) roots own the durable state, and a compute root deploys a service that reads both β€” so memories and media are shared across clouds.

The Azure path deploys from CI in one click: set the GitHub secrets (scripts/setup-github-secrets.sh), bootstrap the state backend (scripts/bootstrap-tfstate-azure.sh), then run the deploy (azure) workflow (neon β†’ schema β†’ r2 β†’ build β†’ app). GCP is a manual failover. Full walkthrough in docs/deploy.md.

License

MIT β€” see LICENSE.

How do I install Polymnemo?
Copy the http config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
Does Polymnemo need an API key?
No required environment variable is listed on this record.
What transport does Polymnemo use?
Polymnemo is reached over HTTP.
When was Polymnemo last checked?
Last checked 2026-10-16. Shared cross-LLM long-term memory over MCP: semantic recall, sessions, and media (pgvector).

No tool list yet. Remote servers get one after the first health check.

plugmcp

Plug any tool into any agent. MCP servers for people who do not write servers. Gateway for volume, n8n for apps.

  • github.com/TODO
  • x.com/TODO
  • linkedin.com/company/TODO

PlugMCP, 2026

Product
  • Browse
  • Install
  • Host your own
  • Pricing
  • Voice mode
  • Browser
Directory
  • All MCP servers
  • MCP Apps
  • Tools
  • Agent skills
  • Categories
  • New
  • Voice
  • Submit a server
Developers
  • Docs
  • Blog
  • Club
  • Work with us
  • What is MCP
  • What is WebMCP
  • Status
Company
  • About
  • Contact
  • Terms
  • Privacy
  • DPA