Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Universal memory runtime for AI agents — episodic, semantic, and procedural memory.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"pensyve": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/major7apps/pensyve-mcp:5.0.0"
]
}
}
}在终端中运行这条命令
claude mcp add pensyve -- docker run -i --rm ghcr.io/major7apps/pensyve-mcp:5.0.0粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"pensyve": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/major7apps/pensyve-mcp:5.0.0"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"pensyve": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/major7apps/pensyve-mcp:5.0.0"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 major7apps 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(5.0.0)于37天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。
同一分类中有: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、图片和脚本已被移除。链接会离开本站。
Pensyve is an open-source runtime for persistent AI agent memory. It stores facts, conversations, observations, and action outcomes so an agent can retrieve them in later sessions. You can use it through Python, a Model Context Protocol (MCP) server, a command-line tool, or a REST API.
The Rust engine uses SQLite for local storage and runs embedding models locally to search by meaning. TypeScript and Go clients connect to a gateway you run yourself. Local use does not require a Pensyve account or API key. Your application or client integration calls Pensyve to save and retrieve memories.
| Use case | Start here |
|---|---|
| Add persistent memory to a Python agent | Python quick start |
| Give Claude Code, Cursor, or Codex access to memory tools | MCP server and client setup guides |
| Share a memory store through TypeScript, Go, or REST | HTTP gateway |
| Use a LangChain or LangGraph adapter | Python integration or TypeScript integration |
Pensyve Cloud closed on October 1, 2026. The open-source project continues in this repository under the Apache 2.0 license, with the engine, SDKs, integrations, and documentation available here.
Pensyve is in maintenance mode. Releases cover security fixes and dependency updates, with no new features planned. See the maintenance policy for contribution and support expectations. If you have a saved Cloud export, the self-hosting guide explains how to use it with your own gateway.
Embedding models may download when first loaded unless they are already cached. Running without network access requires preparing the model files first. See the model setup and deployment guide.
Pensyve stores memory outside the language model. Your application saves facts or conversations, searches for relevant records, and adds the results to a later prompt. Reusing the same storage path and namespace lets the agent retrieve information across processes and sessions. Saving a memory does not train the language model or change its weights.
The store holds four kinds of records: facts (semantic memory), conversations (episodic memory), action outcomes (procedural memory), and observations. Your integration decides what to record and when to retrieve it. Recording a conversation does not automatically turn it into a successful procedure. See how storage and retrieval work and the usage recipes for the APIs and their limits.
Python 3.10 or newer is required.
pip install pensyve
Create a local store, save a fact, and retrieve it:
import pensyve
p = pensyve.Pensyve(path="./memories", namespace="my-agent") user = p.entity("user", kind="user")
p.remember( entity=user, fact="Prefers dark mode and vim keybindings", confidence=0.95, )
for memory in p.recall("editor preferences", entity=user): print(memory.content)
Reuse the same path and namespace in a later process to retrieve saved memories. The Python SDK runs the engine in your process and does not need the HTTP gateway.
You can also record a conversation with the same p and user:
with p.episode(user) as episode:
episode.message("user", "Use dark mode in my editor") episode.message("agent", "I updated the editor settings") episode.outcome("success")
groups = p.recall_grouped("editor settings", limit=10) for group in groups: for memory in group.memories: print(memory.content)
recall_grouped() groups results by source session for use in an agent's prompt. See the Python SDK guide and recipes for more examples.
Pensyve's local MCP memory server lets clients such as Claude Code, Codex, and Cursor store and retrieve memories across sessions. From a checkout of this repository, install the server with Rust 1.94 or newer:
git clone https://github.com/major7apps/pensyve.git
cd pensyve cargo install --path pensyve-mcp --locked
Make sure Cargo's binary directory is on your client's PATH, then add a stdio server entry to its MCP configuration:
{
"mcpServers": { "pensyve": { "command": "pensyve-mcp", "args": ["--stdio"], "env": { "PENSYVE_NAMESPACE": "my-project" } } } }
The server provides tools such as pensyve_remember, pensyve_recall, pensyve_observe, and pensyve_inspect. It stores data locally and needs no API key. The configuration file location depends on your client. See the MCP setup guide and integration guides.
Run the gateway to access Pensyve over REST or MCP HTTP, including from the TypeScript and Go SDKs. From the repository root, start a local instance:
HOST=127.0.0.1 PENSYVE_API_KEYS=psy_local_example \
cargo run --release -p pensyve-mcp-gateway
In another terminal, save and recall a fact:
curl http://localhost:3000/v1/remember \
-H "Authorization: Bearer psy_local_example" \ -H "Content-Type: application/json" \ -d '{"entity":"user","fact":"Prefers Python","confidence":0.95}'
curl http://localhost:3000/v1/recall \ -H "Authorization: Bearer psy_local_example" \ -H "Content-Type: application/json" \ -d '{"query":"programming language","entity":"user"}'
The MCP HTTP endpoint is http://localhost:3000/mcp. Use the same API key in your client's Authorization: Bearer header.
The example key is for local testing. For a deployment, choose your own key with the required psy_ prefix and configure HTTPS and allowed hosts. See the self-hosting guide, gateway configuration, and security documentation.
The TypeScript and Go SDKs require a running gateway. Configure its URL and, when authentication is enabled, an API key from that gateway.
| Interface | Installation or guide |
|---|---|
| Python | pip install pensyve, SDK guide |
| TypeScript | npm install @pensyve/sdk, SDK guide |
| Go | go get github.com/major7apps/pensyve/pensyve-go/v5@latest, SDK guide |
| Claude Code | Plugin setup |
| Cursor | MCP setup and rules |
| Codex | Plugin setup |
| LangChain and LangGraph | Python adapter, TypeScript adapter |
| Other clients and frameworks | Integration index |
From the repository root, install the CLI and inspect its commands:
cargo install --path pensyve-cli --locked
pensyve --help pensyve status pensyve recall "editor preferences" --entity user
The binary is named pensyve. Its default output is JSON, and --format text selects text output. The CLI uses its own default local storage location; it does not automatically open the ./memories directory from the Python example. See the CLI source and command definitions for storage and namespace options.
| Guide | Contents |
|---|---|
| Documentation index | Choose a setup, find API guides, and identify historical plans |
| Getting started | Setup by client or SDK |
| Self-hosting | Gateway deployment, model files, backups, and saved Cloud exports |
| Recipes | Recall, facts, episodes, observations, and other API examples |
| Architecture | Storage, retrieval, and component boundaries |
| Security | Authentication, namespace isolation, and execution limits |
| Reliability | Tests and runtime guarantees |
| Changelog | Release history and breaking changes |
Start with CONTRIBUTING.md for prerequisites and setup. From the repository root:
uv sync --extra dev
make build make check
make build compiles Rust and builds the Python extension. make check runs the Rust and Python lint and test commands. TypeScript and Go have separate checks documented in the contribution guide.
Issues and pull requests follow the maintenance policy. Report security issues through private vulnerability reporting.
Pensyve is licensed under Apache 2.0.