Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Self-hosted Markdown memory for AI agents: notes you can read and edit, with hybrid search.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
KYBASE_DATA_DIR, EMBEDDING_PROVIDER, OLLAMA_URL, OLLAMA_MODEL, GOOGLE_API_KEY, OPENAI_API_KEY, DATABASE_URL标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"kybase": {
"command": "npx",
"args": [
"-y",
"kybase-mcp"
],
"env": {
"KYBASE_DATA_DIR": "your-value",
"EMBEDDING_PROVIDER": "your-value",
"OLLAMA_URL": "your-value",
"OLLAMA_MODEL": "your-value",
"GOOGLE_API_KEY": "your-value",
"OPENAI_API_KEY": "your-value",
"DATABASE_URL": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add kybase --env KYBASE_DATA_DIR=your-value --env EMBEDDING_PROVIDER=your-value --env OLLAMA_URL=your-value --env OLLAMA_MODEL=your-value --env GOOGLE_API_KEY=your-value --env OPENAI_API_KEY=your-value --env DATABASE_URL=your-value -- npx -y kybase-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"kybase": {
"command": "npx",
"args": [
"-y",
"kybase-mcp"
],
"env": {
"KYBASE_DATA_DIR": "your-value",
"EMBEDDING_PROVIDER": "your-value",
"OLLAMA_URL": "your-value",
"OLLAMA_MODEL": "your-value",
"GOOGLE_API_KEY": "your-value",
"OPENAI_API_KEY": "your-value",
"DATABASE_URL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"kybase": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"kybase-mcp"
],
"env": {
"KYBASE_DATA_DIR": "your-value",
"EMBEDDING_PROVIDER": "your-value",
"OLLAMA_URL": "your-value",
"OLLAMA_MODEL": "your-value",
"GOOGLE_API_KEY": "your-value",
"OPENAI_API_KEY": "your-value",
"DATABASE_URL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
KYBASE_DATA_DIR envEMBEDDING_PROVIDER envOLLAMA_URL envOLLAMA_MODEL env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 Kyrzin 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:GOOGLE_API_KEY, OPENAI_API_KEY, DATABASE_URL
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.2.4)于8天前进入注册中心。
支持 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、图片和脚本已被移除。链接会离开本站。
Persistent memory for AI agents, as a single command:
npx kybase-mcp
No Docker, no database to install, no server to run. The first start creates a local knowledge base under ~/.kybase and speaks MCP over stdio. Your notes are plain Markdown in Postgres — running on your machine, leaving it only if you choose a cloud embedding provider.
This is the same MCP server the full Kybase app exposes over HTTP. Use this package when you want memory for a local agent; use the full app when you also want the web UI, the knowledge graph view, sharing, and access for several agents at once.
Claude Code — .mcp.json in your project, or claude mcp add:
{
"mcpServers": { "kybase": { "command": "npx", "args": ["-y", "kybase-mcp"] } } }
Claude Desktop — the same block in claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json).
Cursor — the same block in .cursor/mcp.json or ~/.cursor/mcp.json.
Several clients on one machine can use it at once: the first process to start owns the database, and the others connect to that process.
Restart the client and ask it to remember something. It gets 18 tools for reading, searching, writing, and linking notes.
Claude Desktop, one click — download kybase-mcp- .mcpb from Releases and open it; the data folder and embedding provider are set in the extension's settings.
The server is listed in the official MCP Registry as io.github.Kyrzin/kybase.
Full-text search works immediately, in English and Russian, accent- and case-insensitive.
Semantic search — finding a note by meaning when it shares no words with your question — needs an embedding provider. The local option is Ollama:
ollama pull embeddinggemma
OLLAMA_URL=http://localhost:11434 npx kybase-mcp
Existing notes are embedded in the background as soon as a provider is available; indexing_status reports progress. Without one, nothing breaks — semantic search simply stays idle.
The embedded database is not a folder of .md files, so this writes the whole vault out as one:
kybase-mcp export vault.zip
Plain Markdown with frontmatter, folders as directories, [[wikilinks]] intact — open it in any editor. It is also exactly the archive the full Kybase app accepts under Settings → Import .zip, so starting here and moving to the web UI later costs one command in each direction.
Every variable is optional.
| Variable | Default | What it does |
|---|---|---|
KYBASE_DATA_DIR | ~/.kybase | Where the database and instance secret live. |
DATABASE_URL | *(unset)* | Point at an existing Kybase Postgres instead of the embedded one. In this mode the package does not run migrations — the app that owns the schema does. |
EMBEDDING_PROVIDER | ollama | ollama, google, or openai. |
OLLAMA_URL | *(unset)* | e.g. http://localhost:11434. Enables semantic search. |
OLLAMA_MODEL | embeddinggemma | Multilingual by default; nomic-embed-text is smaller and English-leaning. |
GOOGLE_API_KEY / OPENAI_API_KEY | *(unset)* | Cloud embedding providers. Picking one sends your note text to that provider. |
The package bundles code from the main repository, so build it from a checkout rather than from this directory alone:
git clone https://github.com/Kyrzin/kybase.git
cd kybase/packages/kybase-mcp npm install # also builds, via the prepare script npm install -g . # puts kybase-mcp on your PATH
Everything is under KYBASE_DATA_DIR:
pgdata/ — the database itself (Postgres compiled to WebAssembly, with pgvector). Copy the directory to back it up.secret — generated on first run, 0600. It encrypts any embedding provider API keys you store. Keep it with the data.run/ — the unix socket the database listens on, in a 0700 directory. It has no password, so file permissions are the access control. Windows cannot listen on a socket path, so there the database binds an unused loopback port instead — reachable by other processes running as you, and never from another machine. KYBASE_EMBEDDED_TCP=1 forces that mode on Unix too, for a data directory on a filesystem that cannot host a socket.Expect the process to hold a few hundred MB of memory while it runs: the embedded database is a full Postgres, and it lives inside it. Pointing DATABASE_URL at a Postgres you already run avoids that entirely.
Note content is plain Markdown and every note is readable through the MCP tools, so an agent can always read the whole vault back out, and kybase-mcp export writes it out as files — see Reading your notes.