Skip to content
FunCoding

forall-mcp

Forall (∀) is a coding harness from Astrio that helps developers build correct software by generating spec-driven code alongside machine-checkable proofs.

Star
492
License
Apache-2.0
Last commit
Nov 24, 2026

Forall (∀) is Astrio’s coding agent for building provably correct software.

Forall CLI

License: Apache-2.0 Discord Follow on X

Why Forall exists

Review has always been the bottleneck in software. It is now the failure point, because code is produced faster than anyone can check it. Tests sample a handful of inputs. Types constrain shape. Neither tells you whether the code does what it was supposed to do.

Formal verification answers that question, as far as your specification states it, and it never failed on capability. Provers have been checking real programs for years. What kept them out of ordinary engineering was adoption cost. Writing the specifications, contracts and invariants a prover needs was more tedious than writing the code itself. That is precisely the work language models are now good at. The barrier was labour, and labour just got cheap.

Evidence can therefore become a build artifact rather than something reconstructed by hand long after the code is done. Regulated work already depends on it. Standards such as IEC 62304 and DO-178C require traceability from each requirement to the verification that discharges it. Mission-critical code should carry that evidence the way a paper carries its references, attached to the specific claim it supports.

A green mark that lies is worse than no mark. A proof is only as strong as the contract it discharges, and property testing only samples. Those differences matter, so Forall reports four levels of evidence instead of a pass and a fail, grading every requirement by the strongest evidence a machine actually produced, never by what was claimed.

Two ways to use Forall

1. Build the Forall CLI

The terminal agent is derived from OpenAI Codex. It can edit your repository, author specs and contracts, and run local verification.

On Linux, install the build dependencies and Bubblewrap for sandboxed commands before building. See the platform prerequisites.

git clone https://github.com/astrio-labs/forall.git
cd forall/agent
cargo build --locked -p forall-cli --bin forall
export PATH="$PWD/target/debug:$PATH"

In the Git project you want to work on, run forall init and then forall. Choose Bring your own API key to use your model provider. Run forall check to check the project locally. See the build and proof-tool prerequisites.

2. MCP verify-only

Stay on Cursor, Claude Code, or any MCP client — add hosted verification via MCP. Do not install the CLI.

  1. Create an API key at forall.astrio.app/dashboard
  2. Add to your MCP client:
{
  "mcpServers": {
    "forall": {
      "command": "npx",
      "args": ["-y", "@astrio/forall-mcp"],
      "env": {
        "FORALL_API_KEY": "forall_..."
      }
    }
  }
}

Your coding agent edits the workspace from verify reports. See docs/getting-started.md and docs/hosted-mcp.md.

Supported programming languages

Forall grades every requirement by the strongest evidence a machine actually produced for it. Not every rung is reachable in every language, because the rung depends on the tool behind it:

Spec trackedProperty testedContractedProved
TypeScript✓✓✓✓
Python✓✓✓✗
Rust✓✗✓✓
Java✓✗✓✓
C✓✗✓✓
  • Spec tracked — a requirement cites this code.
  • Property tested — a generator ran over many inputs and found no counterexample. Statistical evidence, honestly ranked below a proof.
  • Contracted — a machine-checkable contract is written against the code, but nothing has confirmed it yet.
  • Proved — a prover discharged that contract's obligations.

We are expanding to more languages, and to filling in more of this table for the languages already listed, based on demand.

Connect

Join our Discord and X communities.

License

This repository is licensed under the Apache-2.0 License.

Similar MCP servers

Official

Git

Read, search and manipulate Git repositories: status, diff, log, commit, branch and more

MOmodelcontextprotocol/servers92k166 new stars in the last 7 days

Featured

headroom

Compress tool outputs, logs and files, cutting tokens by 20%-95% without changing answers.

HEheadroomlabs-ai/headroom81k431 new stars in the last 7 days

Featured

Codebase Memory

Index a codebase into a persistent knowledge graph and query its structure with far fewer tokens.

DEDeusData/codebase-memory-mcp49k261 new stars in the last 7 days

Featured

GitHub

Manage repos, issues and PRs, analyze code and CI/CD workflows using natural language.

GIgithub/github-mcp-server35k148 new stars in the last 7 days

Featured

serena

Retrieve code semantically, edit, refactor and debug at the symbol level.

ORoraios/serena32k180 new stars in the last 7 days

Compiler Explorer

Compile code with thousands of compilers, inspect the assembly, and share godbolt.org links

COcompiler-explorer/compiler-explorer19k5 new stars in the last 7 days