# Brevi

> Brevi is an open-source MCP server for developer tools. Compile ordinary Python to native binaries; check, run, test and patch tools for agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS
- **Website:** https://brevi-lang.org
- **Repository:** https://github.com/ets-public/brevi
- **MCP Registry name:** io.github.ets-public/brevi
- **Categories:** developer tools
- **Listing updated:** 2026-11-14

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
claude mcp add brevi -- npx -y brevi
```

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "brevi": {
      "command": "npx",
      "args": [
        "-y",
        "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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/brevi
