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.
Setup
Choose your client, copy the config, then fill in any required environment variables.
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>"
}
}
}
}Environment variables
CONTEXTFORGE_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.