# Assura

This MCP server for Claude Code checks Assura contracts with Z3. An agent can verify a contract, infer a skeleton from Rust code, or explain an error code.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 9 repo stars
- Author: assura-lang
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/assura-lang/assura
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/assura

## What it does

Assura parses and checks a contract, then returns Verified, Counterexample, or Unknown. For a contract without an implementation, it tests whether the postcondition follows from the preconditions; a counterexample gives input values that violate it.

The server includes tools to infer contract skeletons from Rust, map Rust types to Assura types, and check Implementation IR with Z3 or CVC5. Another tool renders a prompt for producing IR. Running it requires a Rust toolchain, edition 2024, and rustc 1.88 or newer; the `z3` crate provides Z3 for a standard build. Start the server with `assura mcp`; it communicates over stdin and stdout.

## Requirements
- Needs: a prebuilt binary from the repository releases

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- check whether a postcondition follows from preconditions
- find input values that break a contract
- infer a contract skeleton from Rust code
- map a Rust type to its Assura equivalent
- check Implementation IR against a contract

## Example prompts
- Check the Assura contract in this file and explain the result.
- Infer an Assura contract skeleton from this Rust code.
- Map the Rust type `Vec<i64>` to an Assura type.

## Similar
- [vstack](https://affpapa.org/en/nevibecode/plugins/vstack.md) — plugin · ★ 89 repo stars
- [proof-theory](https://affpapa.org/en/nevibecode/skills/proof-theory.md) — skill · 1 install
- [create-formal-verification-skill](https://affpapa.org/en/nevibecode/skills/create-formal-verification-skill.md) — skill · 6200 installs
- [symbolic-execution-tools](https://affpapa.org/en/nevibecode/skills/symbolic-execution-tools.md) — skill · 4000 installs
- [maintain-formal-verification-skill](https://affpapa.org/en/nevibecode/skills/maintain-formal-verification-skill.md) — skill · 6100 installs
- [mermaid-to-proverif](https://affpapa.org/en/nevibecode/skills/mermaid-to-proverif.md) — skill · 4400 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
