MCP.Market

Context Foundry MCP server

by context-foundry·io.github.context-foundry/context-foundry·v2.2.1·20 stars

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

C55/100grade C
What users say
No reviews yet
Be the first
Safety scan
C55/100

full report

Adoption
Growing

20 stars20 downloads/wk

Reviews

Write one

Nobody has reviewed Context Foundry yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Context Foundry tools

No tool declarations could be read from the package source. They show once the server is installed.

Public scan report

scanner v0.1.10 · 2026-10-01 · same rubric, same numbers if you re-run it

2 medium
  • Code scan1500 source files scanned15/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitystatic API keys via environment variables6/15
  • Maintenancelast push 113 days ago8/15
  • Maintainer identityregistry namespace matches repository owner7/10

Findings (2)

  • mediumsubprocess with shell=Trueexec.shell-true
    context_foundry-2.2.1/tools/evolution/agents/scout_agent.py: … "Shell injection risk with shell=True", ), (r"os\.sys…
  • mediumeval / new Function usedexec.eval
    context_foundry-2.2.1/tools/evolution/agents/scout_agent.py: … (r"\beval\s*\(", "Dangerous use of eval() - code injection risk"), (…
Overall 55/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Context Foundry compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
55/100
higher than 10% of 48,255 servers
GitHub stars
20
more than 91% of 28,688 servers
Downloads a week
20
more than 7% of 12,191 servers with a package

Install Context Foundry in Claude Code, Cursor or VS Code

claude mcp add context-foundry -- uvx context-foundry
Add to Cursor

What the publisher says

From the Context Foundry repository's README, as published. We do not edit it. Read it on GitHub

Foundry

Autonomous build loop that plans, builds, reviews, and learns.

Foundry reads a TASKS.md task list and works through it using Claude Code agents in a TUI, committing each completed task. Several run modes control what happens next: run forever with discovery (Auto), stop when done (Sprint), pause for human review after each task (Review), or run unattended for the build service (Service).

When to use the pipeline: the harness is a multiplier for verifiable engineering work — tasks with file:line references the planner can ground against, constraints the auditor can check, and behavior that BUILD or AUDIT can exercise against the code. For prose work (README updates, brainstorming, architecture decision records, documentation rewrites), the pipeline pays plan-review and audit costs for zero marginal benefit because there's nothing for it to verify. Write those directly. Full guidance: docs/task-composition.md.

Demos

  • Building a Second Brain with the Loop — Foundry autonomously works through an implementation plan, building a second-brain app from a task list while the TUI streams each agent's output in real time.
  • Enhancing the Second Brain with the Loop — A follow-up run where foundry picks up where it left off, discovering new work and iterating on the second-brain app with patterns learned from the first pass.
  • Technical Overview — Architecture reference covering every subsystem: pipeline, dual-model arena, git integration, TUI layout, config, plugins, and MCP tools.
  • The Roundup — A Texas-themed pitch page explaining Context Foundry for software architects.

Task Flow

Load patterns from ~/.foundry/patterns/
  │
SCOUT → .buildloop/scout-report.md (investigate codebase)
  │
PLAN (+ patterns + scout report) → .buildloop/current-plan.md
  │
IMPLEMENT → build the code, run checks
  │
VERIFY (fresh context) → audit claims, fix issues, write verdict
  │
PATTERN EXTRACTOR → merge into ~/.foundry/patterns/
  │
LOCAL GIT COMMIT → feat(task_id) or WIP(task_id)
  │
OPTIONAL AUTO-PUSH → only if `auto_push_remote` is configured

How It Works

Foundry is a harness for Claude Code. Each agent (planner, builder, reviewer, fixer, discoverer) is a Claude Code CLI invocation with a role-specific prompt and scoped tool access. The Rust binary handles orchestration, streaming, and state — Claude does all the reasoning and file editing.

The loop

Without guardrails, an autonomous build loop degrades fast. Task 3 builds on task 2's mistakes, which built on task 1's mistakes. Errors compound and the codebase drifts from the intended architecture.

The core design principle: no agent shares a context window with any other agent. Every stage starts with a clean context and receives only curated artifacts from the previous stage. The scout writes a structured report. The planner reads that report and writes a plan. The builder reads that plan and writes code. The verifier reads the code with zero knowledge of why it was written that way. No shared conversation history, no accumulated reasoning, no inherited blind spots. Each stage gets signal, not noise. This is how foundry prevents compounding errors across a long task queue.

Foundry's loop is designed around two forms of backpressure:

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Context Foundry: common questions

Is Context Foundry MCP server safe?
With care: it is graded C, so read the findings first (55/100). Read the Context Foundry safety report
How do I install Context Foundry?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Context Foundry need an API key?
Yes. The registry entry asks for ANTHROPIC_API_KEY.
Is Context Foundry maintained?
The last commit was 146 days ago (2026-06-11). The latest release is v2.2.1.
How does Context Foundry compare with other MCP servers?
safety score 55/100 (higher than 10% of 48,255 servers); github stars 20 (more than 91% of 28,688 servers); downloads a week 20 (more than 7% of 12,191 servers with a package). Full comparison.