Supabase
MCP server for interacting with the Supabase platform
作者提供的说明(英文原文)
A fact store for AI agents, on Postgres: registered attributes, every write citing its evidence.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
FACTSTORE_DSN, FACTSTORE_EXCISE_DSN标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"factstore": {
"command": "uvx",
"args": [
"factstore",
"mcp"
],
"env": {
"FACTSTORE_DSN": "your-value",
"FACTSTORE_EXCISE_DSN": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add factstore --env FACTSTORE_DSN=your-value --env FACTSTORE_EXCISE_DSN=your-value -- uvx factstore mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"factstore": {
"command": "uvx",
"args": [
"factstore",
"mcp"
],
"env": {
"FACTSTORE_DSN": "your-value",
"FACTSTORE_EXCISE_DSN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"factstore": {
"type": "stdio",
"command": "uvx",
"args": [
"factstore",
"mcp"
],
"env": {
"FACTSTORE_DSN": "your-value",
"FACTSTORE_EXCISE_DSN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 Victor-EU 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:FACTSTORE_DSN, FACTSTORE_EXCISE_DSN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.0)于34天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Supabase, MongoDB MCP Server, Elasticsearch MCP Server
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP server for interacting with the Supabase platform
MongoDB Model Context Protocol Server
MCP server for interacting with Elasticsearch
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A fact store for AI agents, on Postgres. Agents record what a company's systems and documents say as facts: a value for a registered attribute, in a transaction stamped with who wrote it and the document it came from. Nothing is overwritten, so the store can say what it knew on any date. Agents use it through an MCP server, and scripts through a Python SDK.
It comes with skills, procedures an agent follows: one indexes a company's systems from their exports, and one reads documents and mail into facts. The design says why it is built this way, and the evals what it was tested on. MIT-licensed.
You need Postgres 16 or later, Python 3.12 or later, and uv for uvx.
1. Postgres. Use your own, or start one. factstore init needs a superuser.
docker run -d --name factstore-pg -e POSTGRES_PASSWORD=postgres -p 5432:5432 --shm-size=1g postgres:17
2. A store, and a credential for your agent.
pip install factstore
export FACTSTORE_ADMIN_DSN=postgresql://postgres:postgres@localhost:5432/postgres factstore init acme # a store, with factstore-core factstore install acme factstore-skills # the vocabulary the skills use factstore actor acme "ingest agent" # prints the actor's ID and its credential
3. Connect your agent. In Claude Code, the plugin brings the MCP server and the skills, and asks for the credential:
/plugin marketplace add Victor-EU/factstore
/plugin install factstore@factstore
Any other MCP client runs the server with the credential in its environment:
{"mcpServers": {"factstore": {"command": "uvx", "args": ["factstore", "mcp"],
"env": {"FACTSTORE_DSN": " "}}}}
factstore skills DIR copies the skills into your agent's skills directory, such as .claude/skills. The catalogue and ingestion skills also write in bulk with the SDK, so the agent's shell needs pip install factstore.
4. Ask. "Read the invoices in ./invoices into the store" uses factstore-ingest. "Index our Shopify and QuickBooks exports" uses factstore-catalogue. "What kinds of thing does the store hold?" uses factstore-ontology.
factstore install STORE NAME installs a package by name, with the packages it depends on.
| Package | What |
|---|---|
factstore-core | Evidence, documents, confidence, currency, merges and domain time. init installs it. |
factstore-skills | The catalogue, ontology and ingestion skills, and the vocabulary the ontology skill names shapes with. |
factstore-ecom-ops | The supply side of a brand that makes in China and sells online: suppliers, SKUs, purchase orders, inspections, shipments and customs entries. Its skill reads supplier PDFs, chats and shipping emails. |
factstore-ecom-index | The IDs and join keys of what Shopify, Amazon, the 3PL and QuickBooks own, for the catalogue skill. |
Personal data. The server's rules keep people's names, addresses and phone numbers out of the store: they stay in the documents. A business that wants an attribute to hold them allows it with core/personal.
git clone https://github.com/Victor-EU/factstore && cd factstore
docker compose up -d # Postgres 17 on port 54329 cd factstore python3 -m venv .venv && .venv/bin/pip install -e ".[dev]" .venv/bin/pytest
The tests create and drop a store per test. From a source checkout, factstore install also takes a package's directory, such as ../packages/ecom-ops. packages/ describes the package format and the packages. A new version of a package registers what it adds. It may also make an attribute many or identity, the two changes the kernel allows. factstore-skills/ holds the skills.
import factstore
store = factstore.connect(" ") store.register_attribute({"ident": "shopify/order_id", "type": "string", "cardinality": "one", "unique": "identity", "doc": "Shopify's ID for an order."}) store.transact([{"e": ["shopify/order_id", "1234"], "a": "shopify/order_id", "v": "1234"}]) store.query('select e, v from "shopify/order_id"').rows
With FACTSTORE_DSN set, the same calls work at module level: factstore.transact([...]), factstore.query(...).
factstore mcp, or factstore-mcp, serves the calls as tools over stdio. The credential comes from its environment (FACTSTORE_DSN), never from a tool call. excise is listed only when FACTSTORE_EXCISE_DSN holds an excision credential as well. The tool descriptions in tools.py are the documentation models read.
| File | What |
|---|---|
schema.sql | Tables, roles, and the triggers that enforce the invariants in Postgres |
kernel.py | The writer lock, schema loading, allocation, and applying changes to the log and derived tables |
store.py | The calls: transact, query, stats, register_attribute, search_attributes, excise |
read.py | Running one read safely: read-only, rolled back, one statement, a timeout, a row cap |
stats.py | Attribute usage, signatures and ref connectivity |
server.py | The MCP server |
admin.py, cli.py | Creating stores, actors and credentials; installing packages |
packages.py | Package manifests, the packages a release carries, and the order to install them in |
tools.py | MCP tool descriptions and input schemas: the model-facing documentation |
fs.py | The kernel's own fs/ attributes |
tests/reference.py | The reference reader: a naive fold over the log, used as the test oracle |
Postgres enforces them, not just the Python code:
INSERT and SELECT on the fact table, and nothing else. Triggers refuse UPDATE, TRUNCATE, and any DELETE outside fs_excise(), even from the owner.session_user and its time from the clock, overwriting anything the client sends. Only the kernel's own functions can write fs/actor, fs/at and fs/excised_* facts.query takes one SQL statement over views (design open question 1, decided by the spike):
"po/status"(e, v, tx) in schema current, and history."po/status"(e, v, tx, op) over the whole log.factstore.as_of, which every view honours.A model writes the SQL, so read.py runs it on a separate connection:
READ ONLY transaction that is always rolled back, which undoes anything the statement changes, SET ROLE included;Advisory locks survive a rollback, so they are released after every read; a query can never hold the writer lock.
stats groups entities by signature, the exact set of attributes each one carries, and counts refs between signatures. That is co-occurrence in the form the ontology skill needs: a kind of thing is usually one signature, or a few that differ by optional attributes.
v = 'x' on any view can use.init installs factstore-core, but the kernel's tests pass core=False: the kernel knows no names, so its tests shouldn't depend on core's. The packages have their own tests.store.py; tests/test_register.py records the cases they were checked against. The "attributes registered" measure in M5 is what tunes them.