Amnesic

Created By
SurajKGoyal4 days ago
Persistent semantic memory for SQL databases (Postgres, MySQL, MSSQL, SQLite). Annotate once, remember forever.
Overview

amnesic

Persistent semantic memory for your SQL databases. The name is ironic — it remembers everything.

Every session with an AI starts cold: you re-explain what tables exist, what a status value of 3 means, which foreign key connects orders to users. amnesic fixes this with a local SQLite knowledge store — one per database — that survives across sessions. Annotate an enum once; every future session sees those labels automatically.

🔒 Read-only by design

Safe to point at production. Two independent layers: static SQL analysis rejects any write/DDL statement before connecting, and every query runs inside a transaction that is immediately rolled back. Credentials never appear in tool responses.

Supported databases

PostgreSQL · MySQL / MariaDB · Microsoft SQL Server · SQLite

Tools

ToolDescription
db_list_connectionsList configured connections (no secrets)
db_list_tablesAll known tables with descriptions
db_searchBM25 search over table/column knowledge
db_get_schemaColumn schema merged with saved annotations
db_queryExecute a read-only SELECT
db_annotatePersist semantic annotations (enum meanings, FKs)
db_sync_knowledgeCopy annotations between connections (staging → prod)
db_discover_relationshipsDiscover all FK relationships from the live DB
db_get_relationshipsNavigate the FK graph for JOIN planning

Install

pipx install amnesic
amnesic init        # interactive setup wizard

Server Config

{
  "mcpServers": {
    "amnesic": {
      "command": "amnesic"
    }
  }
}
Project Info
Created At
4 days ago
Updated At
3 days ago
Author Name
SurajKGoyal
Star
-
Language
-
License
-
Category

Recommend Servers

View All