Contextforge MCP logo

Contextforge MCP

by alfredoizdev

Persistent, searchable project memory with Git synchronization and issue tracking for MCP-compatible coding assistants.

Install Contextforge MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "alfredoizdev-contextforge-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "contextforge-mcp"
      ],
      "env": {
        "CONTEXTFORGE_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

alfredoizdev/contextforge-mcp connects MCP-compatible coding assistants to ContextForge, providing persistent project memory across sessions. It supports semantic memory search, project and space organization, GitHub repository synchronization, and issue tracking through MCP tools. Use it when an assistant needs to retain decisions, architecture notes, debugging context, commits, pull requests, or task status between conversations. The server runs through npx and uses a ContextForge API key.

Use cases

  • Save architecture decisions for later coding sessions
  • Search debugging context by meaning across project memory
  • Sync GitHub commits and pull requests into project context
  • Track and assign development issues through an AI assistant
  • Link local directories to organized memory projects

Key features

  • Persistent semantic memory
  • Project and space organization
  • GitHub commit and pull request synchronization
  • Issue creation and status tracking
  • Directory-to-project linking
  • Batch memory operations

Tools41

What Contextforge MCP lets your agent do. Expand a tool for its parameters.

Self-reported~370 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

10/10 checks healthy over the last 90d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · contextforge-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads843Package downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Tools exposed41Callable tools this server registers over MCP.
Directory activity9 viewsConfig copies, upvotes, and views on AllMCPs.

How Contextforge MCP works

What alfredoizdev/contextforge-mcp does

alfredoizdev/contextforge-mcp gives coding assistants a persistent memory layer through the Model Context Protocol. Agents can save project knowledge, search it semantically, enumerate or remove stored items, and organize information into spaces and projects. This is suited to decisions, architecture notes, debugging findings, and other context that should remain available after a chat ends.

The server also connects project knowledge to development activity. GitHub repositories can be connected, existing history can be imported, and synchronized commits and pull requests can be listed. Its issue tools support creating, assigning, starting, resolving, and recommending work. Projects can be linked to local directories so memory operations have a project context.

How it works

The server communicates with MCP clients over the command launched by npx -y contextforge-mcp. It uses the ContextForge service at contextforge.dev and authenticates with an API key generated from that service. Semantic queries search stored knowledge by meaning rather than requiring an exact keyword match.

On connection, the server can provide startup instructions to clients that honor them. Those clients can load project memory at the beginning of a session and save relevant decisions without additional editor configuration. The init command can add explicit memory, session-presence, and startup-context rules to a project for clients that do not apply server instructions automatically.

For Claude Code projects, init can also add hooks for restoring context after conversation compaction. The generated hooks record session prompts locally and can reintroduce the session objective, relevant memories, recent project memories, and pending tasks.

Setup and configuration

Create an account at contextforge.dev, generate an API key, and expose it to the MCP process as CONTEXTFORGE_API_KEY. The key is then added to the MCP configuration for the selected client.

A typical stdio configuration uses:

config.json
{
  "command": "npx",
  "args": ["-y", "contextforge-mcp"],
  "env": {
    "CONTEXTFORGE_API_KEY": "your-api-key-here"
  }
}

The package requires Node.js 20 or newer. A global npm installation is optional; using npx fetches the package when needed. Run npx contextforge-mcp init from a project directory to generate or update editor-specific memory rules. The command can target Claude Code, Cursor, or both with its editor option.

Tools and capabilities

  • Store, batch-store, search, list, and delete memory items.
  • Create, list, move, link, unlink, and delete spaces and projects.
  • Connect GitHub repositories, import history, synchronize changes, and inspect commits or pull requests.
  • Create and manage issues, including assignment, progress, resolution, and next-task recommendations.
  • Maintain project-specific context for linked directories.

Limitations and notes

Automatic startup behavior depends on whether the MCP client honors server instructions. The generated compaction-recovery hooks are specific to Claude Code. Their relevance search can be disabled with CONTEXTFORGE_RECALL_RELEVANCE=0, and recovery requires a linked project. A free tier is available through ContextForge, while service usage and account limits are governed by that platform.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Contextforge MCP

alfredoizdev/contextforge-mcp is an MCP server that connects coding assistants to ContextForge’s persistent project memory. Its main tools save and semantically search knowledge, manage projects and spaces, synchronize GitHub commits and pull requests, and create or track issues across sessions.

Run it with npx rather than installing it first: `npx -y contextforge-mcp`. Add that command to your MCP client configuration and provide a ContextForge API key through `CONTEXTFORGE_API_KEY`. A global npm install is optional.

Yes, alfredoizdev/contextforge-mcp works with Cursor through its MCP configuration. Add the npx command and `CONTEXTFORGE_API_KEY`, then optionally run `npx contextforge-mcp init` to generate Cursor memory rules.

Use the Git tools to connect a GitHub repository, import existing history, manage webhook activation, and list synchronized commits or pull requests. The repository connection is handled through the server’s Git integration.

Yes, Claude Code projects can use generated hooks from `npx contextforge-mcp init` to restore session context after compaction. The hooks can reintroduce the session objective, relevant memories, recent project memories, and pending tasks.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewContextforge MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/alfredoizdev-contextforge-mcp?style=directory)](https://allmcps.com/mcp/alfredoizdev-contextforge-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/alfredoizdev-contextforge-mcp"><img src="https://allmcps.com/api/badge/alfredoizdev-contextforge-mcp?style=directory" alt="Contextforge MCP on AllMCPs" /></a>