Skip to content
MCP server
RegistryRemote

polymnemo MCP Server

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

polymnemo scores 63 (Good), licensed MIT and written in Python. It can be reached as a remote MCP endpoint. It does not declare tools yet. Filed under AI and memory. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by pcbzMITPython0 stars
Trust score
63Good
Trust score 63 of 100, Good

Good trust

63 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 63 comes from

22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Remote auth: API key required. Get a key or token from the provider first, then add it as a header in your client config. How remote auth works

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "pcbz-polymnemo": {      "url": "https://polymnemo.purpleground-26f6d744.westus2.azurecontainerapps.io/mcp"    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

polymnemo

CI codecov License: MIT

Python MCP Postgres Neon SQLAlchemy Pydantic Cloudflare R2 Azure Cloud Run Terraform Docker pytest Ruff

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 by default, with exact-text and fused (RRF) modes when you need to find an ID or a name.
  • ๐Ÿ’ฌ 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, and off unless you turn it on: set POLYMNEMO_RSP_CONFIG to a scanner config (the image ships one at /app/plugins/rsp.toml). Unset, every write goes through a no-op guard and nothing is scanned. 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

recall takes a mode:

modefindsgood fornot for
similarity (default)by meaning, across languages"what do I know about coffee?"exact IDs, names, error strings
keywordrows containing every word, case-insensitivelyorder 88312, a project codename, an error messagesynonyms; may return fewer than limit or nothing
rrfboth, fused by rankwhen you are unsure which kind of query it isโ€”

keyword is an exact substring match. rrf fuses the top 50 candidates from each leg, so paging through it reaches at most about 100 results. score is only comparable within one mode, and total is the size of the namespace searched, not the number of matches.

  • 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.
POLYMNEMO_RSP_CONFIG(unset)Path to a scanner config; unset means no scanning. The image ships one at /app/plugins/rsp.toml.

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.

Frequently asked questions

What is polymnemo MCP Server?

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

How do I install polymnemo MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. polymnemo MCP Server connects to the remote endpoint https://polymnemo.purpleground-26f6d744.westus2.azurecontainerapps.io/mcp, so there is nothing to install locally.

Is polymnemo MCP Server free and open source?

Yes. polymnemo MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does polymnemo MCP Server support remote (HTTP) connections?

Yes. polymnemo MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.

How is polymnemo MCP Server's trust score calculated?

polymnemo MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

โ€”Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server