Context Forge logo

Context Forge

MCP tools for structured project planning, workflow tracking, context generation, guides, introspection, and parallel worktrees.

Install Context Forge

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": {
    "context-forge": {
      "command": "npx",
      "args": [
        "-y",
        "@context-forge/mcp"
      ]
    }
  }
}

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

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

context-forge MCP server connects AI agents to Context Forge projects managed through the `cf` CLI and ai-project-guide methodology. It exposes project, workflow, context-building, guide, introspection, and worktree operations, with structured JSON responses suited to agents and pipelines. Reach for it when a large project needs traceable initiatives, slices, tasks, artifact state, and recommended next actions across sessions. It can manage multiple projects and support parallel agent sessions through separate worktree contexts.

Use cases

  • Initialize a project and guide an agent through its first workflow phase
  • Generate structured session context from project state and artifacts
  • Check slice plans, task files, and frontmatter for consistency
  • Aggregate pending future work across project slices
  • Manage separate worktree contexts for parallel agent sessions

Key features

  • Structured project and workflow state
  • Agent-ready JSON responses
  • Context prompt generation and preview
  • Artifact introspection and consistency checks
  • AI project guide installation and updates
  • Parallel worktree context management

Tools35

What Context Forge lets your agent do. Expand a tool for its parameters.

Verified live~6.8k 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

Recent health check succeeded.

7/7 checks healthy over the last 24d

What it can do

From the 35 tools this server returned when we ran it; 35 declare their own safety hints.

Can delete or modify data · 2Makes network requests · 2Read-only tools · 33
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age245 days
Maintainers1

Observed 2026-10-27 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · @context-forge/mcp (npm)

Adoption & maintenance

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

GitHub stars5Stargazers on the source repository.
npm downloads3.8kPackage downloads in the last 30 days.
Last commit2d agoMost recent push to the default branch.
Tools exposed35Callable tools this server registers over MCP.

How Context Forge works

What context-forge does

Context Forge organizes software work as a hierarchy of initiatives, vertical slices, and tasks. Its MCP interface lets an agent discover projects, inspect their stored configuration, read parsed project artifacts, update workflow fields, and assemble context for an AI session.

The workflow follows a sequence from concept through initiative planning, architecture, slice planning and design, task breakdown, implementation, and integration. Documents reference one another, while checkboxes and frontmatter record progress. The server exposes that state without requiring an agent to reconstruct it from unrelated files.

It also supports multiple projects and worktree-specific contexts. This makes it suitable for larger repositories where separate sessions work on different slices or initiative ranges.

How it works

Project records are managed through operations such as project_list, project_create, project_get, and project_update. project_schema describes available fields, aliases, groups, and enumerated values before an update is made. project_detect evaluates a directory without registering it and classifies its adoption state.

Workflow tools report status, recommend a next action, aggregate future work, and check consistency between plans, task files, frontmatter, architecture records, and related artifacts. workflow_check can apply non-destructive fixes when requested; worktree-aware changes remain in the checkout that owns them, with deferred writes and commits reported in the response.

context_build produces a structured prompt for a project. template_preview lets an agent test context parameters without changing stored configuration or causing side effects. The introspection tools parse slice plans, task files, frontmatter, documents, and future-work sections into structured results.

Setup and configuration

Install the package globally with Node.js 20.18 or newer:

Terminal
npm install -g @context-forge/context-forge

Register the MCP process with a client using standard input/output:

Terminal
claude mcp add --transport stdio context-forge -- npx @context-forge/mcp

Other clients can use the equivalent command and arguments:

config.json
{
  "context-forge": {
    "command": "npx",
    "args": ["@context-forge/mcp"],
    "env": {}
  }
}

For OpenAI Codex CLI, the server is configured in ~/.codex/config.toml with command = "npx" and args = ["@context-forge/mcp"].

A project can be initialized with cf init, which creates the project, installs guides, configures an IDE, and installs slash commands. For manual control, install the guide separately and use the appropriate cf setup-ide command. Guide installation supports tarball, submodule, and clone strategies; tarball is the default.

Tools and capabilities

  • Discover and maintain project records with project_list, project_get, project_create, project_update, and project_schema.
  • Detect adoption state in unregistered directories with project_detect.
  • Report workflow state and next actions through workflow_status and workflow_next.
  • Check artifact consistency with workflow_check, including optional non-destructive fixes.
  • Generate or preview agent context with context_build and template_preview.
  • Install, update, inspect, list, and retrieve ai-project-guide content through the guide and prompt tools.
  • Parse project artifacts with the introspection tools and build a complete project model with project_structure.
  • Manage parallel worktree contexts with worktree_list, worktree_get, worktree_init, and worktree_update.
  • Create timestamped project-storage backups while retaining the last ten backups.

Limitations and notes

Context Forge is oriented toward structured, larger-scale development processes and may be excessive for small, simple projects. Guide-dependent prompt operations require the ai-project-guide to be installed in the project. guide_update can require a second call with confirm: true when the repository is not on its configured trunk or integration branch. The MCP process uses stdio, so each client must provide its own MCP registration format.

Reviews

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

Frequently Asked Questions about Context Forge

context-forge is an MCP server that connects AI agents to Context Forge project state and the ai-project-guide workflow. Its main tools create, inspect, update, and list projects; report workflow status; recommend next actions; build agent context; check artifacts; and manage guides, introspection, and worktree contexts.

Install the package with `npm install -g @context-forge/context-forge`, then register `npx @context-forge/mcp` as a stdio MCP server. Claude Code can use `claude mcp add --transport stdio context-forge -- npx @context-forge/mcp`; other clients use equivalent command and argument settings.

Yes, context-forge works with Cursor through the standard stdio MCP configuration using `npx` and `@context-forge/mcp`. Context Forge can also configure Cursor project files with `cf setup-ide cursor`, including `AGENTS.md` and scoped `.cursor/rules/*.mdc` files.

Call `context_build` to assemble a complete structured context prompt for a registered project. Use `template_preview` first when you want to test parameters without changing the stored project or triggering side effects.

Yes, context-forge provides `worktree_list`, `worktree_get`, `worktree_init`, and `worktree_update` for separate workflow contexts. Worktrees can give parallel AI sessions distinct phase, slice, task, and index-range state.

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 PreviewContext Forge AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/context-forge?style=directory)](https://allmcps.com/mcp/context-forge)
HTML Embed
<a href="https://allmcps.com/mcp/context-forge"><img src="https://allmcps.com/api/badge/context-forge?style=directory" alt="Context Forge on AllMCPs" /></a>