Skip to content
MCP server

rust-anything

Rewrites apps in Rust piece by piece, checking each port against recorded behavior

Runs locally
Install

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

Pricing
Open source
Platforms
CLI, API, Self-hosted
Runs
Locally
Version
2.1.0
Listing updated

Similar MCP servers

Install

Run in a terminal

claude mcp add rust-anything -- npx -y rust-anything

Add to claude_desktop_config.json

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

Add to ~/.cursor/mcp.json

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

Add to .vscode/mcp.json

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

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

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

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

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

Using several servers? Build one config file with the MCP config generator.

About rust-anything

The README says rust-anything records how an existing Node.js, Python, C, Go, Ruby, Java or Kotlin program behaves today, then checks each Rust replacement against those recordings before the next piece is moved over. Its workflow covers recording the original on generated and user-supplied inputs, generating a Rust crate with a wrapper that keeps the original API, replaying recorded cases against the port, and benchmarking it.

The project is aimed at developers who want to speed up a hot function or migrate a whole CLI, HTTP server or library. It does not translate code itself; a coding agent or the developer writes the Rust, while the tool supplies profiling, bridging, verification and a completion gate. The README notes that it can only catch behavior covered by its recordings.

It runs as a Rust CLI installed through cargo or npm and exposes an MCP server over stdio, which it can register with Claude Code, Codex, Cursor, Gemini CLI and OpenCode. Its MIT license and open repository make it usable without a paid plan.

What it does

Behavior recording
Runs the original code on generated edge cases and saved inputs, storing its outputs for later comparison.
Generated Rust bridge
Produces a Rust crate and wrapper so existing callers keep the original API while the port is written.
Replay verification
Replays every recorded case against the Rust port and blocks shipping until all of them match.
Hot path profiling
Shows where execution time goes so only the slow loops are moved to Rust.
Whole app lifting
Can turn a fully verified app into a pure Rust program once replay passes with no fallback.
Agent setup command
Registers the MCP server and workflow skill with supported coding agents and keeps backups of changed files.

Good for

  • Rewrite a Node.js or Python CLI in Rust and confirm its output is unchanged
  • Speed up a slow search or parsing function by moving its loop to Rust
  • Migrate a small HTTP server to a single Rust binary with recorded API behavior
  • Benchmark a Rust port against the original before deciding to ship it

Pricing

Open source

Free and open source under MIT; sponsorship is optional.

rust-anything FAQ

What does the MCP server need to run?

The registry entry lists an npm package, rust-anything version 2.1.0, run over stdio with no environment variables required.

Does rust-anything write the Rust code for me?

No. The README says a coding agent or the developer writes the Rust, and rust-anything supplies profiling, bridging, verification and the completion gate.

What is the license?

The README states the project is MIT licensed, and that ports and generated code in a user's repository belong to that user.

Are there risks when running the tools?

Yes. The README warns that record and replay run the original code on many inputs, so it should be run on a copy of the project with a test database and no production credentials.

Is rust-anything free?

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

How do I add rust-anything to Claude Code?

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

What are the best alternatives to rust-anything?

The closest alternatives to rust-anything are CHRONOS-AGENT, Repo Test Architect, Echoproof, Coding Tools MCP and Daimonos.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers