Pg Mnemosyne MCP logo

Pg Mnemosyne MCP

by Janadasroor

PostgreSQL-backed MCP server for persistent records, task tracking, dynamic schemas, and shared agent session coordination.

Install Pg Mnemosyne MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "janadasroor-pg-mnemosyne-mcp": {
      "command": "uvx",
      "args": [
        "pg-mnemosyne-mcp"
      ],
      "env": {
        "PG_BASE_DSN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

Janadasroor/pg-mnemosyne-mcp MCP server connects AI assistants to PostgreSQL for persistent records, task tracking, and agent coordination. It runs over standard input/output, uses a PostgreSQL DSN, and provides MCP operations for project databases, schemas, records, tasks, sessions, and SQL. Use it when agents need shared state across conversations or visibility into concurrent work. The package also includes a CLI for installation, initialization, direct record management, and standalone execution.

Use cases

  • Store project memory in PostgreSQL
  • Track tasks with statuses and deadlines
  • Coordinate multiple agents editing one project
  • Query or modify project databases with SQL

Key features

  • Persistent tagged records
  • Task tracking with priorities and deadlines
  • Shared agent session coordination
  • Dynamic database and schema management
  • Arbitrary SQL execution
  • CLI-based client initialization

Tools3

What Pg Mnemosyne MCP lets your agent do. Expand a tool for its parameters.

Self-reported~7 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

27/27 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · pg-mnemosyne-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
Last commit6mo agoMost recent push to the default branch.
Tools exposed3Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Pg Mnemosyne MCP works

What Janadasroor/pg-mnemosyne-mcp MCP server does

Janadasroor/pg-mnemosyne-mcp MCP server gives AI assistants a PostgreSQL-backed place to store durable information and coordinate work. Its base records schema supports typed entries with content and tags. Separate schemas support structured tasks and active agent sessions, allowing multiple assistants to share task status, editing files, and current subtasks.

The server can create isolated project databases and initialize the tables needed for records, tasks, or coordination. It also supports schema changes through column additions and exposes arbitrary SQL execution for queries, inserts, and DDL operations. These capabilities make it suitable for assistants that need state beyond a single chat session, provided they have access to the configured PostgreSQL instance.

How it works

The package is installed as the pg-mnemosyne command and communicates with MCP clients through standard input/output. A client starts the command with the PG_BASE_DSN environment variable, which contains a PostgreSQL connection string such as postgresql://user:password@host:5432/database.

Operations receive a target database name where applicable. Agents can create a project database, initialize its base records table, and optionally add the task or agent-session schema. Record operations can add, retrieve, partially update, or delete entries. Coordination operations update an agent's session and list active sessions. The implementation uses an asynchronous connection pool through asyncpg, according to the project documentation.

Setup and configuration

Install the package with pip install pg-mnemosyne-mcp on Windows, or with pipx install pg-mnemosyne-mcp on macOS and Linux. The command pg-mnemosyne init --dsn "..." can configure supported agent clients automatically. To run the server directly, use pg-mnemosyne run.

Janadasroor/pg-mnemosyne-mcp MCP server requires the PG_BASE_DSN environment variable when configured in an MCP client. PostgreSQL credentials, host, port, and default database belong in the DSN, so access permissions and database availability must be handled in PostgreSQL.

The CLI also provides add and list commands for direct record management, plus init-todo and init-coordination commands for preparing the task and coordination tables in a project database.

Tools and capabilities

Janadasroor/pg-mnemosyne-mcp MCP server exposes operations for:

  • Creating project databases and initializing records, tasks, or agent-session schemas.
  • Adding, listing, updating, and deleting tagged records.
  • Adding columns to existing tables.
  • Updating an agent's active task, file, and status, then listing active sessions.
  • Running arbitrary SQL, including SELECT, INSERT, and DDL statements.

Task records support documented status values of backlog, todo, in_progress, blocked, and done, along with low, medium, high, and critical priorities, tags, and deadlines.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Pg Mnemosyne MCP

Janadasroor/pg-mnemosyne-mcp is an MCP server that connects AI assistants to PostgreSQL. Its main tools manage persistent records, task schemas, and shared agent sessions, while also supporting project database creation, schema initialization, column changes, and arbitrary SQL execution through the configured database connection.

Install it with `pip install pg-mnemosyne-mcp` on Windows or `pipx install pg-mnemosyne-mcp` on macOS and Linux. You can then run `pg-mnemosyne init --dsn "..."` to configure supported clients, or use `pg-mnemosyne run` to start the stdio server.

Set the `PG_BASE_DSN` environment variable to a PostgreSQL connection string such as `postgresql://user:password@host:5432/database`. The MCP client configuration passes this variable to the `pg-mnemosyne` command, which uses it to connect to PostgreSQL.

Yes, Cursor is documented as a supported client. Add the server in Cursor's MCP settings or project `.cursor/mcp.json`, using the `pg-mnemosyne` command and a `PG_BASE_DSN` environment variable containing the PostgreSQL connection string.

It coordinates agents through the `agent_sessions` table and the `update_agent_session` and `get_active_sessions` tools. Initialize the table with `pg-mnemosyne init-coordination my_project_db`, then agents can publish their active task, file, and status for shared visibility.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPg Mnemosyne MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/janadasroor-pg-mnemosyne-mcp?style=directory)](https://allmcps.com/mcp/janadasroor-pg-mnemosyne-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/janadasroor-pg-mnemosyne-mcp"><img src="https://allmcps.com/api/badge/janadasroor-pg-mnemosyne-mcp?style=directory" alt="Pg Mnemosyne MCP on AllMCPs" /></a>