Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Local-first AI PKM memory for coding conversations.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
CHATCRYSTAL_BASE_URL, CHATCRYSTAL_API_TOKEN标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"chatcrystal": {
"command": "npx",
"args": [
"-y",
"chatcrystal",
"mcp"
],
"env": {
"CHATCRYSTAL_BASE_URL": "your-value",
"CHATCRYSTAL_API_TOKEN": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add chatcrystal --env CHATCRYSTAL_BASE_URL=your-value --env CHATCRYSTAL_API_TOKEN=your-value -- npx -y chatcrystal mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"chatcrystal": {
"command": "npx",
"args": [
"-y",
"chatcrystal",
"mcp"
],
"env": {
"CHATCRYSTAL_BASE_URL": "your-value",
"CHATCRYSTAL_API_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"chatcrystal": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"chatcrystal",
"mcp"
],
"env": {
"CHATCRYSTAL_BASE_URL": "your-value",
"CHATCRYSTAL_API_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
CHATCRYSTAL_BASE_URL env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 ZengLiangYi 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:CHATCRYSTAL_API_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.6.2)于15天前进入注册中心。
支持 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、图片和脚本已被移除。链接会离开本站。
Crystallize knowledge from your AI conversations
ChatCrystal collects conversations from AI coding tools (Claude Code, Cursor, Codex CLI, Trae, GitHub Copilot), uses LLM to distill them into searchable structured notes, and builds your personal knowledge base.
npm install -g chatcrystal
Requires Node.js >= 20 and an LLM service (Ollama, OpenAI, OrcaRouter, Anthropic, Google AI, or any OpenAI-compatible API).
crystal import # Scan and import AI conversations
crystal summarize --all # Batch summarize into notes crystal search "React state" # Semantic search your knowledge
The server auto-launches in background on first command. No manual setup needed.
For a Docker cloud instance, save the shared token once:
crystal connect https://chatcrystal.example.com --token "your-long-token"
crystal import --yes
crystal import still scans and parses histories on the local device, then uploads normalized conversations to the cloud instance. The cloud server does not scan your local filesystem. crystal mcp reuses the same saved connection and token.
HTTPS is recommended for cloud connections, but HTTP works when that is the deployment you choose.
To manage a Docker cloud token:
# Rotate when you still know the current token.
crystal --base-url https://chatcrystal.example.com token rotate "new-long-token-at-least-16-chars" --current "old-token"
docker compose exec chatcrystal crystal token reset --yes docker compose exec chatcrystal cat /data/setup-code
If CHATCRYSTAL_API_TOKEN is set in the deployment environment, change that environment variable and recreate the container instead of using token reset.
# Knowledge retrieval
crystal search [--limit 10] # Semantic search crystal notes list [--tag X] # Browse notes crystal notes get # View note detail crystal notes relations # View note relations crystal tags # List tags with counts
crystal import [--source claude-code] # Import conversations crystal summarize # Summarize one conversation crystal summarize --all # Batch summarize crystal summarize --retry-errors # Retry failed summaries crystal status # Server status and DB stats
crystal config get # View config crystal config set llm.provider openai # Update config crystal config test # Test LLM connection
crystal serve # Start server (foreground) crystal serve -d # Start server (daemon) crystal serve stop # Stop daemon crystal serve status # Check if running
Global options: --base-url (server address), --token (cloud API token), --json (force JSON output), --version
Output: TTY-aware — colored tables in terminal, JSON when piped.
Integrate with AI coding tools so they can retrieve knowledge from your conversation history during coding.
crystal mcp # Start MCP stdio server
Add to settings.json:
{
"mcpServers": { "chatcrystal": { "command": "crystal", "args": ["mcp"] } } }
| Tool | Description |
|---|---|
search_knowledge | Semantic search across notes when you need relevance-ranked matches |
get_note | Get full note content (summary, conclusions, code snippets) |
list_notes | Browse paginated note summaries by tag or title/summary keyword |
get_relations | Get related notes with relationship types |
recall_for_task | Read-only task recall that loads project memories first, then optional global lessons |
validate_task_memory | Dry-run validation before writing a task memory; returns acceptance, reasons, warnings, and note fields |
write_task_memory | Persist reusable task memories after meaningful work |
Runtime configuration is stored in config.json under the active data directory. CLI, MCP, repo/dev checkouts, npm global installs, and Electron default to ~/.chatcrystal/data. Use crystal config set for persistent config. .env remains available only as an optional local override layer.
# LLM (ollama/openai/orcarouter/anthropic/google/azure/custom)
crystal config set llm.provider openai crystal config set llm.model gpt-4o crystal config set llm.apiKey sk-...
crystal config set embedding.provider ollama crystal config set embedding.model nomic-embed-text
OrcaRouter uses ChatCrystal's built-in https://api.orcarouter.ai/v1 Base URL. Set llm.provider to orcarouter, provide an API Key, and select a discovered model in the Web UI; no llm.baseURL is required. Get an OrcaRouter API Key.
Automatically detects and imports from:
| Source | Path |
|---|---|
| Claude Code | ~/.claude/projects/**/*.jsonl |
| Codex CLI | ~/.codex/sessions/**/*.jsonl |
| Cursor | Platform-specific state.vscdb |
| Trae | Platform-specific state.vscdb |
| GitHub Copilot | VS Code chatSessions/*.jsonl / *.json |
ChatCrystal also has a web UI and Electron desktop app. See the GitHub repository for details.