Skip to content
MCP server

Context Foundry

Recursive Claude spawning for autonomous project builds with self-healing test loops

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
2.2.1
Listing updated
4 days ago

About Context Foundry

Context Foundry is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add context-foundry --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' -- uvx context-foundry

Add to claude_desktop_config.json

{
  "mcpServers": {
    "context-foundry": {
      "command": "uvx",
      "args": [
        "context-foundry"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "context-foundry": {
      "command": "uvx",
      "args": [
        "context-foundry"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "context-foundry": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "context-foundry"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "context-foundry": {
      "command": "uvx",
      "args": [
        "context-foundry"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "context-foundry": {
      "command": "uvx",
      "args": [
        "context-foundry"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
      }
    }
  }
}

Configuration

  • ANTHROPIC_API_KEYYour Anthropic API key for Claude API access (required for delegation features)Required

Pricing

Open source

Context Foundry FAQ

Is Context Foundry free?

Yes. Context Foundry is open source, so you can use and self-host it for free.

How do I add Context Foundry to Claude Code?

Run this command in your terminal: claude mcp add context-foundry --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' -- uvx context-foundry