contextforge-mcp

v0.14.1
io.github.alfredoizdev/contextforge-mcp Checked 1 day ago Published 7 hours ago

Persistent memory MCP server for Claude Code, Cursor, and GitHub Copilot.

Values you need

VariableWhat it is
CONTEXTFORGE_API_KEYrequired secret Your API key from the ContextForge dashboard at contextforge.dev
CONTEXTFORGE_API_URLoptional API endpoint URL (defaults to production) Default: https://api.contextforge.dev

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add contextforge-mcp -e 'CONTEXTFORGE_API_KEY=<CONTEXTFORGE_API_KEY>' -- npx -y contextforge-mcp@0.14.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "contextforge-mcp": {
      "args": [
        "-y",
        "contextforge-mcp@0.14.0"
      ],
      "command": "npx",
      "env": {
        "CONTEXTFORGE_API_KEY": "<CONTEXTFORGE_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "contextforge-mcp": {
      "args": [
        "-y",
        "contextforge-mcp@0.14.0"
      ],
      "command": "npx",
      "env": {
        "CONTEXTFORGE_API_KEY": "<CONTEXTFORGE_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "CONTEXTFORGE_API_KEY",
      "id": "contextforge-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "contextforge-mcp": {
      "args": [
        "-y",
        "contextforge-mcp@0.14.0"
      ],
      "command": "npx",
      "env": {
        "CONTEXTFORGE_API_KEY": "${input:contextforge-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.contextforge-mcp]
command = "npx"
args = ["-y", "contextforge-mcp@0.14.0"]
env = { "CONTEXTFORGE_API_KEY" = "<CONTEXTFORGE_API_KEY>" }

For AI agents

  1. Ask the user for: CONTEXTFORGE_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: memory_ingest, memory_query, memory_list_items, memory_help, memory_link_project, memory_current_project, memory_check_freshness, memory_confirm, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json