Claude Code Rust
🚀 Rust 全量重构的 Claude Code - 性能提升 2.5x,体积减少 97% | High-performance Rust implementation of Claude Code with 2.5x faster startup and 97% smaller binary
What is Claude Code Rust?
Claude Code Rust is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 🚀 rust 全量重构的 claude code - 性能提升 2.5x,体积减少 97% | high-performance rust implementation of claude code with 2.5x faster startup and 97% smaller binary
🚀 Rust 全量重构的 Claude Code - 性能提升 2.5x,体积减少 97% | High-performance Rust implementation of Claude Code with 2.5x faster startup and 97% smaller binary
This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- 🚀 Rust 全量重构的 Claude Code - 性能提升 2.5x,体积减少 97% | High-perform
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx claude-code-rustConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Claude Code Rust
Claude Code Rust is a high-performance reimplementation of the Claude Code environment built with Rust and Tauri, offering 2.5x faster startup times and a binary size that is 97% smaller than the original. It provides a full-featured desktop GUI with a three-column workspace — file tree, Monaco editor, and live preview — alongside a lightweight CLI for terminal REPL interaction. Developers who want a snappier AI coding assistant experience with lower resource overhead will find this a compelling alternative to the stock Claude Code installation.
Prerequisites
- Rust 1.75 or higher installed via rustup (for CLI build)
- Node.js 18+ and npm (for the Tauri GUI version)
- An Anthropic API key (ANTHROPIC_API_KEY)
- Platform build tools: Xcode CLI on macOS, Visual Studio C++ Build Tools + WebView2 on Windows, libwebkit2gtk-4.1-dev + libgtk-3-dev on Linux
- An MCP-compatible client such as Claude Desktop
Clone the repository
Clone the claude-code-rust repository from GitHub to get the source code for both the CLI and GUI variants.
git clone https://github.com/lorryjovens-hub/claude-code-rust.git
cd claude-code-rustSet your Anthropic API key
Export the ANTHROPIC_API_KEY environment variable, or create a .env file in the project root. The API_BASE_URL defaults to the Anthropic endpoint but can be overridden if you use a proxy.
export ANTHROPIC_API_KEY="your-api-key"
export API_BASE_URL="https://api.anthropic.com"Build the CLI binary
Compile the Rust CLI in release mode. The resulting binary is under 5 MB and starts noticeably faster than Node-based alternatives.
cargo build --release
./target/release/claude-code --versionBuild the Tauri GUI (optional)
If you prefer the full desktop GUI with Monaco editor, file tree, and terminal tabs, install Node dependencies inside the Tauri sub-directory and build.
cd claude-desktop-tauri
npm install
npm run tauri buildConfigure as an MCP server
Add the compiled CLI binary as an MCP server in your Claude Desktop configuration file so AI clients can invoke it.
{
"mcpServers": {
"claude-code-rust": {
"command": "/path/to/claude-code-rust/target/release/claude-code",
"args": [],
"env": {
"ANTHROPIC_API_KEY": "your-api-key"
}
}
}
}Claude Code Rust Examples
Client configuration
Minimal claude_desktop_config.json entry pointing at the locally built Rust binary.
{
"mcpServers": {
"claude-code-rust": {
"command": "/usr/local/bin/claude-code",
"args": [],
"env": {
"ANTHROPIC_API_KEY": "sk-ant-...",
"API_BASE_URL": "https://api.anthropic.com"
}
}
}
}Prompts to try
Example prompts once the server is connected to a Claude Desktop session.
- "Open the project at ~/my-app and show me the file tree"
- "Run the build command and stream the output to me"
- "Show a git diff of unstaged changes in the current repo"
- "Open a new terminal tab and run the test suite"Troubleshooting Claude Code Rust
cargo build fails with linker errors on Linux
Install the required system libraries: sudo apt-get install libwebkit2gtk-4.1-dev libgtk-3-dev libssl-dev pkg-config, then retry the build.
API key not recognized at runtime
Ensure ANTHROPIC_API_KEY is set in the env block of your MCP config, or create a .env file in the same directory as the binary. Environment variables exported in your shell are not automatically inherited by MCP clients.
Tauri GUI shows a blank white window on Linux
WebKit2GTK is required for the GUI renderer. Install libwebkit2gtk-4.1-dev and ensure a display server is running (Wayland or X11). Running WEBKIT_DISABLE_COMPOSITING_MODE=1 before launching can also help.
Frequently Asked Questions about Claude Code Rust
What is Claude Code Rust?
Claude Code Rust is a Model Context Protocol (MCP) server that 🚀 rust 全量重构的 claude code - 性能提升 2.5x,体积减少 97% | high-performance rust implementation of claude code with 2.5x faster startup and 97% smaller binary It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Claude Code Rust?
Follow the installation instructions on the Claude Code Rust GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Claude Code Rust?
Claude Code Rust works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Claude Code Rust free to use?
Yes, Claude Code Rust is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Claude Code Rust Alternatives — Similar Coding Agents Servers
Looking for alternatives to Claude Code Rust? Here are other popular coding agents servers you can use with Claude, Cursor, and VS Code.
Dify
★ 142.2kProduction-ready platform for agentic workflow development.
Ruflo
★ 54.0k🌊 The leading agent orchestration platform for Claude. Deploy intelligent multi-agent swarms, coordinate autonomous workflows, and build conversational AI systems. Features enterprise-grade architecture, self-learning swarm intelligence, RAG integrat
Goose
★ 45.7kan open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM
Antigravity Awesome Skills
★ 38.3kInstallable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.
AgentScope
★ 25.5kBuild and run agents you can see, understand and trust.
Serena
★ 24.5kA coding agent toolkit that provides IDE-like semantic code retrieval and editing tools, enabling LLMs to efficiently navigate and modify codebases using symbol-level operations instead of basic file reading and string replacements.
Browse More Coding Agents MCP Servers
Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Claude Code Rust in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Claude Code Rust?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.