# Janadasroor/pg-mnemosyne-mcp [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/Janadasroor/pg-mnemosyne-mcp  
**GitHub Stars:** 4  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/janadasroor-pg-mnemosyne-mcp

## Description
A PostgreSQL Model Context Protocol (MCP) server acting as a robust persistent super memory, task tracker, and multi-agent coordination hub for AI assistants.

## Tools
Capabilities this server exposes over MCP:

- **records**
- **tasks**
- **agent_sessions**

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "pg-mnemosyne-mcp": {
    "command": "uvx",
    "args": ["pg-mnemosyne-mcp"],
    "env": {
      "PG_BASE_DSN": ""
    }
  }
}
```

**Requires environment variables:** `PG_BASE_DSN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/janadasroor-pg-mnemosyne-mcp/readme_

