# rust-anything

> rust-anything is an open-source MCP server for developer tools. Rewrites apps in Rust piece by piece, checking each port against recorded behavior. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, Linux, macOS, Windows
- **Repository:** https://github.com/erkamyaman/rust-anything
- **MCP Registry name:** io.github.erkamyaman/rust-anything
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-20

## About

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.

## Features

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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

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

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

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

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

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

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

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

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

## Alternatives

- [CHRONOS-AGENT](https://ai-powered.com/mcp/chronos-agent): CHRONOS-AGENT is an open-source MCP server for developer tools.
- [Repo Test Architect](https://ai-powered.com/mcp/repo-test-architect): Repo Test Architect is an open-source MCP server for developer tools.
- [Echoproof](https://ai-powered.com/mcp/echoproof): Echoproof is an open-source MCP server for developer tools.
- [Coding Tools MCP](https://ai-powered.com/mcp/coding-tools-mcp): Coding Tools MCP is an open-source MCP server for developer tools.
- [Daimonos](https://ai-powered.com/mcp/daimonos): Daimonos is an open-source MCP server for developer tools.
- [ctx — queryable code graph](https://ai-powered.com/mcp/ctx-queryable-code-graph): ctx — queryable code graph is an open-source MCP server for developer tools.
- [rag-rat](https://ai-powered.com/mcp/rag-rat): rag-rat is an open-source MCP server for knowledge and memory.
- [Krusch Coding Harness](https://ai-powered.com/mcp/krusch-coding-harness): Krusch Coding Harness is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/rust-anything
