Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Self-hosted AI memory server. Persistent memory on your hardware, not the cloud.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
STRATA_URL, STRATA_API_KEY你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"strata": {
"command": "npx",
"args": [
"-y",
"strata-mcp-server"
],
"env": {
"STRATA_URL": "your-value",
"STRATA_API_KEY": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add strata --env STRATA_URL=your-value --env STRATA_API_KEY=your-value -- npx -y strata-mcp-server运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"strata": {
"command": "npx",
"args": [
"-y",
"strata-mcp-server"
],
"env": {
"STRATA_URL": "your-value",
"STRATA_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"strata": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"strata-mcp-server"
],
"env": {
"STRATA_URL": "your-value",
"STRATA_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
STRATA_URL envSTRATA_API_KEY env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 agenerationforwordz-tech 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(2.2.0)于7个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
This repository is superseded by [SOLUM](https://github.com/agenerationforwordz-tech/Solum).
SOLUM is the actively developed version of this project: PostgreSQL + pgvector instead of SQLite,
a larger tool set, and numerous fixes not present here. New users should start with SOLUM.
This repository remains available for reference.
Self-hosted AI memory server. Your thoughts, your hardware, your data.
Your AI forgets everything the moment the session ends. Strata fixes that. It gives any MCP-compatible AI a persistent memory that lives on YOUR hardware - not in the cloud, not on someone else's server. Search by meaning, attach real files, and run it all on a Raspberry Pi.
v2.0 taught Strata who's talking. v2.2 teaches it to scale, audit, and remember your past.
read / write / delete / admin / kill permissions. You stop sharing one key across every tool. Manage them from /admin/agents./api/*. Any agent with write or kill permission can pull the brake; only a human admin can flip it back on. Built for the moment a tool goes rogue./constellation. Sacred-geometry layout (Flower of Life background, dodecahedron clusters, Fibonacci sphere distribution), per-agent colors, live activity stream, and a kill-switch indicator that desaturates the whole scene when MCP is offline.strata system user owns the database with mode 600. SSH users can no longer bypass the API by editing the SQLite file directly.STRATA_DEMO_MODE=true and the dashboard accepts blank passwords (the login screen still renders so visitors can see the auth feature exists).New in v2.2:
STRATA_DB_BACKEND=postgresql for production. PostgreSQL handles concurrent multi-agent writes natively (no more write queue), and pgvector does similarity search IN the database with HNSW indexes. Scales to 1 million+ thoughts.data/audit/. Full replay tape: who searched what, which thoughts came back, how long it took. This is the transparency layer — trace exactly how an AI built its understanding of your data. View via GET /api/audit.capture_legacy. These get negative IDs (-1, -2, -3...) and live in the same constellation alongside your current thoughts. Your AI memory doesn't start at install day — it reaches back as far as you want. Click "THOUGHTS" in the constellation viewer to toggle between current and historical views.idea (brainstorms, not yet decided) and observation (patterns noticed, no conclusions drawn). The agent protocol now spells out type selection so every new user's constellation is balanced.strata_status now teaches agents about all 10 types, negative ID history, the audit log, and outcome loop tracking. No CLAUDE.md needed — the protocol IS the onboarding.Plus the v1 features you already know: semantic search, file vault, dedup protection, password+seed-phrase dashboard auth, dark theme, runs on a Pi.
I built this because I got tired of my AI tools forgetting everything between sessions. STRATA gives any MCP-compatible AI (Claude Code, Codex CLI, whatever comes next) a persistent brain that lives on YOUR machine. Not in the cloud. Not on someone else's server. Yours.
It runs on a Raspberry Pi 4B. Seriously. The whole thing - semantic search, file storage, embeddings - runs on a $55 computer with 4GB of RAM.
Regular databases search by keywords. If you stored "switching careers" but search for "new job", you get nothing.
STRATA converts every thought into a 768-dimensional vector that captures what it *means*. Similar ideas land near each other in that vector space. So "switching careers" and "new job" and "career change" all find each other.
The model runs locally through ONNX Runtime (not PyTorch - that thing eats 1.5GB just to import on ARM). Total RAM for the embedding model is about 100-150MB, and it unloads after 5 minutes of idle time.
This is what makes STRATA more than a note-taking app.
You capture a thought about a project. Then you attach the actual source files to it. Later, when you or your AI searches for that topic, you get the thought AND a list of every file attached to it. The AI picks which files it needs and pulls just those - it doesn't load your whole drive into memory.
Files are organized on disk like this:
data/vault/
my-laptop/ 2026-03/ 42/ server.py config.py my-desktop/ 2026-03/ 55/ training_data.csv
Organized by device and month. You can browse it manually if you want. Files up to 1GB, text files capped at 5MB when returned to AI (so it doesn't blow up the context window).
Your AI memory doesn't have to start at install day. Import your past:
# Via MCP tool
capture_legacy( content="Decided to self-host everything after the cloud bill hit $400/mo", thought_type="decision", tags=["infrastructure", "self-hosting"], original_date="2024-06-15", source="pre-strata" )
Legacy thoughts get negative IDs (-1, -2, -3...) while live thoughts use positive IDs. Both are fully searchable — they live in the same vector space. The constellation viewer has a toggle: click "THOUGHTS" to dim current stars and highlight your history.
Every agent interaction is logged to daily CSV files in data/audit/:
data/audit/
audit_2026-04-19.csv audit_2026-04-20.csv ...
Each row records:
Query today's log via REST: GET /api/audit?limit=50
Override the directory: STRATA_AUDIT_DIR=/your/path Disable entirely: STRATA_AUDIT_ENABLED=false
SQLite works great for getting started and single-user setups. For production with multiple agents hitting Strata simultaneously, switch to PostgreSQL:
# Install PostgreSQL 17 + pgvector
sudo apt install postgresql-17 postgresql-17-pgvector
sudo -u postgres createuser strata sudo -u postgres createdb strata_db -O strata sudo -u postgres psql -c "ALTER USER strata PASSWORD 'your-password-here';"
sudo -u postgres psql -d strata_db -f strata_pg_schema.sql
export STRATA_DB_BACKEND=postgresql export STRATA_PG_PASSWORD=your-password-here
python server.py
If you already have thoughts in SQLite:
python migrate_to_pg.py
This migrates all thoughts, embeddings, history, agent keys, and profiles. Your SQLite database is preserved as a backup.
| Feature | SQLite | PostgreSQL |
|---|---|---|
| Concurrent writers | 1 (write queue) | Unlimited |
| Similarity search | numpy in Python | pgvector HNSW in-database |
| Full-text search | FTS5 | tsvector (weighted) |
| Scale target | < 10K thoughts | 1M+ thoughts |
| Setup complexity | Zero | Moderate |
The repo ships with a pre-populated demo database: 666 curated thoughts about Strata itself, 3 sample agents with palette colors, ready to explore. No mining, no seed data hunt, no thinking about what to capture first — just clone, drop the demo DB into place, and see the constellation populated.
git clone https://github.com/agenerationforwordz-tech/strata.git
cd strata
python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate pip install -r requirements.txt
mkdir -p data cp demo/strata.db data/strata.db
STRATA_DEMO_MODE=true python server.py
⏱️ First install takes 5–15 minutes.
pip install -r requirements.txtdownloads about 700 MB of binary wheels for the embedding model runtime (fastembed,onnxruntime,numpy,transformerstokenizer support). Don't kill the install if it appears stuck — it's downloading binaries in the background. Subsequent installs reuse the venv and take seconds. Run withpip install -r requirements.txt --progress-bar onif you want to watch the byte count tick up.
Open these in your browser:
| URL | What you see |
|---|---|
http://localhost:4320/dashboard | Web dashboard — login with blank password (demo mode) |
http://localhost:4320/constellation | 3D constellation viewer with all 666 thoughts laid out in sacred-geometry clusters |
http://localhost:4320/admin/agents | Per-agent key management with the 3 sample agents (all disabled by default — enable one or create your own to start using Strata) |
See demo/README.md for the full demo dataset details, including how to regenerate your own.
A few Windows-specific gotchas worth knowing about:
D:\ or any non-system drive, Git may refuse to operate on the repo with fatal: detected dubious ownership in repository. Fix: git config --global --add safe.directory 'D:/Claude Code Projects/strata'
(Replace the path with wherever you cloned.)
只显示了开头部分;其余内容请在仓库中阅读