Skip to content
MCP server

Brevi

Compile ordinary Python to native binaries; check, run, test and patch tools for agents

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, Linux, macOS
Runs
Locally
Version
0.28.2
Listing updated
3 days ago

About Brevi

Brevi is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Brevi lets an agent keep writing ordinary Python while the code is built through Rust into a native binary. The site reports speedups of 1.6x to 37.9x over CPython, median 9.3x, on its compute benchmarks. It aims to print what CPython prints and refuses what it cannot match; it matches 80 percent of CPython's own tests, so it is a preview, not a drop-in python3.

When a file cannot be built, Brevi answers with one line of JSON such as a line number, message and suggested fix, which suits an agent loop. The MCP tools wrap checking, running, testing and patching. It installs from PyPI or npm, runs over stdio, and needs no Rust toolchain.

The compiler is Apache-2.0 and the site promises it stays so; paid business extras are planned.

Install

Run in a terminal

claude mcp add brevi -- npx -y brevi

Add to claude_desktop_config.json

{
  "mcpServers": {
    "brevi": {
      "command": "npx",
      "args": [
        "-y",
        "brevi"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "brevi": {
      "command": "npx",
      "args": [
        "-y",
        "brevi"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "brevi": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "brevi"
      ]
    }
  }
}

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

{
  "mcpServers": {
    "brevi": {
      "command": "npx",
      "args": [
        "-y",
        "brevi"
      ]
    }
  }
}

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

{
  "mcpServers": {
    "brevi": {
      "command": "npx",
      "args": [
        "-y",
        "brevi"
      ]
    }
  }
}

What it does

Python in, native out
Builds plain Python into a binary.
One-line errors
Reports failures as JSON with a suggested fix.
Agent tools
Provides check, run, test and patch.
Open source
Apache-2.0 licensed compiler.
No toolchain
Needs no Rust or Python on your side.

Good for

  • Speed up an agent's Python scripts
  • Get machine-readable build errors
  • Run tests on agent-written code
  • Ship a standalone binary

Pricing

Open source

Free, Apache-2.0; paid business extras planned.

Prices change. Check brevi-lang.org before you buy.

Brevi FAQ

What licence is it?

Apache-2.0.

Is it a drop-in python3?

No. It is a preview matching 80% of CPython's tests.

How do I install it?

From PyPI or npm as brevi.

Will free features become paid?

The site says nothing free today will become paid.

Is Brevi free?

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

How do I add Brevi to Claude Code?

Run this command in your terminal: claude mcp add brevi -- npx -y brevi

What are the best alternatives to Brevi?

The closest alternatives to Brevi are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to Brevi

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools