Persistent memory MCP server for Claude Code, Cursor, and GitHub Copilot. Long-term memory via Model Context Protocol with semantic search, Git sync, and team collaboration.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add contextforge --env CONTEXTFORGE_API_KEY='<CONTEXTFORGE_API_KEY>' -- npx -y contextforge-mcp~/.codex/config.toml
[mcp_servers.contextforge]
command = "npx"
args = ["-y", "contextforge-mcp"]
env = { CONTEXTFORGE_API_KEY = "<CONTEXTFORGE_API_KEY>" }
# codex mcp add contextforge --env CONTEXTFORGE_API_KEY='<CONTEXTFORGE_API_KEY>' -- npx -y contextforge-mcp~/.cursor/mcp.json
{
"mcpServers": {
"contextforge": {
"command": "npx",
"args": [
"-y",
"contextforge-mcp"
],
"env": {
"CONTEXTFORGE_API_KEY": "<CONTEXTFORGE_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"contextforge": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"contextforge-mcp"
],
"env": {
"CONTEXTFORGE_API_KEY": "<CONTEXTFORGE_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"contextforge": {
"command": "npx",
"args": [
"-y",
"contextforge-mcp"
],
"env": {
"CONTEXTFORGE_API_KEY": "<CONTEXTFORGE_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"contextforge": {
"command": "npx",
"args": [
"-y",
"contextforge-mcp"
],
"env": {
"CONTEXTFORGE_API_KEY": "<CONTEXTFORGE_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"contextforge": {
"command": "npx",
"args": [
"-y",
"contextforge-mcp"
],
"env": {
"CONTEXTFORGE_API_KEY": "<CONTEXTFORGE_API_KEY>"
}
}
}
}需要的环境变量
CONTEXTFORGE_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。