Amnesic
@SurajKGoyal
Amnesic について
Persistent semantic memory for SQL databases (Postgres, MySQL, MSSQL, SQLite). Annotate once, remember forever.
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"amnesic": {
"command": "uvx",
"args": [
"--from",
"amnesic[all]",
"amnesic"
]
}
}
}ツール
9List configured connections (no secrets)
All known tables with descriptions
BM25 search over table/column knowledge
Column schema merged with saved annotations
Execute a read-only SELECT
Persist semantic annotations (enum meanings, FKs)
Copy annotations between connections (staging → prod)
Discover all FK relationships from the live DB
Navigate the FK graph for JOIN planning
概要
What is Amnesic?
Amnesic is an MCP server that provides persistent semantic memory for SQL databases, allowing AI sessions to retain knowledge about table schemas, enum meanings, and foreign key relationships across sessions. It is intended for developers and data professionals who want to avoid re-explaining database context when interacting with AI tools.
How to use Amnesic?
Install with pipx install amnesic and run amnesic init to set up connections. The server exposes nine MCP tools for listing connections, querying schemas, executing read‑only SELECT queries, annotating database semantics, and managing knowledge across connections.
Key features of Amnesic
- Persistent SQLite knowledge store per database
- Read‑only by design with two independent safety layers
- Supports PostgreSQL, MySQL/MariaDB, SQL Server, and SQLite
- Credentials never appear in tool responses
- Nine MCP tools for schema, query, and annotation management
Use cases of Amnesic
- Annotating enum values once so every future AI session sees the labels
- Sharing database context across multiple AI tools or sessions
- Copying semantic annotations from staging to production synchronously
- Discovering foreign key relationships for automated JOIN planning
FAQ from Amnesic
How does Amnesic ensure queries are safe for production?
It uses 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.
What databases does Amnesic support?
PostgreSQL, MySQL/MariaDB, Microsoft SQL Server, and SQLite.
Do credentials ever appear in tool responses?
No, credentials are never exposed in tool responses.
Can I copy annotations between environments?
Yes, the db_sync_knowledge tool copies annotations between connections (e.g., from staging to production).
Where is the semantic knowledge stored?
In a local SQLite knowledge store, one per database, that persists across sessions.
「データベース」の他のコンテンツ
Multi Database MCP Server
FreePeakA powerful multi-database server implementing the Model Context Protocol (MCP) to provide AI assistants with structured access to databases.

PostgreSQL
modelcontextprotocolModel Context Protocol Servers
Elasticsearch MCP Server
elasticMCP Server for Milvus
zilliztechModel Context Protocol Servers for Milvus
MCP Alchemy
runekaagaardA MCP (model context protocol) server that gives the LLM access to and knowledge about relational databases like SQLite, Postgresql, MySQL & MariaDB, Oracle, and MS-SQL.
コメント