SuperAPI AI Directory

contextforge-mcp

Persistent memory for coding assistants with semantic search, Git commit/PR sync, project-based organization and team collaboration.

Open website

About this tool

ContextForge MCP is an open-source MCP server that provides long-term, searchable memory for Model Context Protocol-enabled coding assistants such as Claude Code, Cursor, GitHub Copilot, Claude Desktop, Windsurf, and others, avoiding the need to re-explain project context every time.

Main capabilities: save decisions, architecture explanations, debugging context, and project knowledge across sessions; retrieve by semantics rather than keywords; share the same memory across multiple tools; automatically sync Git commits and PRs; support issue and task tracking, project status, and team-shared projects and memories. The server is a stateless client, with knowledge stored, indexed, and retrieved on the server side, requiring no local database, embedding model, or vector store.

Usage: register at contextforge.dev and generate an API Key starting with cf_, then run the server via npx -y contextforge-mcp and write it into each client's MCP configuration; optionally run npm install -g contextforge-mcp for a global install. Starting with v0.5.1, the server sends startup instructions to AI clients on connection, supported clients automatically load project memory, and running npx contextforge-mcp init reinforces this behavior by writing CLAUDE.md, .claude/settings.json, and two hooks for Claude Code (recording session goals on commit, restoring context after compaction), and writing .cursorrules for Cursor.

Tools and limitations: a total of 69 tools are defined; the default lean mode exposes only 10 core tools plus the cf_tools gateway, and CONTEXTFORGE_TOOLS=full can be used to expose all of them. Session goal logs are stored only locally in ~/.contextforge-mcp/; after compaction, recall sends a session goal of no more than 600 characters plus the git branch, commit subject, and changed file names for retrieval, and does not store them; hooks require a linked project (.contextforge) and an API Key, and are silently skipped when missing. For information such as the free quota, refer to the official page.