MCP.so
登录

MCP Server Rust

@lotharschulz

基本信息

分类

其他

传输方式

stdio

作者

lotharschulz

关于 MCP Server Rust

Rust MCP Local Server

MCP Server Rust 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-server": {
      "command": "node",
      "args": [
        "[your local path]/mcpserver/build/index.js"
      ]
    }
  }
}

MCP Server Rust 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Mcp Server Rust?

Mcp Server Rust integrates a Rust function (e.g., factorial) into an MCP client like Claude Desktop. It compiles Rust to WebAssembly, then serves it through a Node.js MCP server. This is for developers who want to call Rust code from an MCP‑based AI assistant.

How to use Mcp Server Rust?

First, build the Rust code with npm run build:wasm:release, then install dependencies with npm install. Next, add the server to Claude Desktop’s configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows) as a custom MCP server. Finally, start Claude Desktop and consent to use the MCP server function.

Key features of Mcp Server Rust

  • Compiles Rust functions to WebAssembly
  • Exposes a factorial function as an MCP tool
  • Integrates with Claude Desktop via stdio
  • Simple Node.js command to launch the server
  • Includes a video tutorial on YouTube
  • Provides test commands for Rust code

Use cases of Mcp Server Rust

  • Run Rust‑powered calculations from a Claude Desktop conversation
  • Demonstrate how to connect Rust code with an MCP client
  • Prototype custom MCP tools written in Rust
  • Learn the build‑and‑release workflow for Rust + MCP

常见问题

1

What dependencies are required?

Node.js, npm, the Rust toolchain (cargo, rustc), and wasm‑pack (used by the build scripts).

2

Where is the Claude Desktop configuration file located?

On macOS it is `~/Library/Application Support/Claude/claude_desktop_config.json`; on Windows it is `%APPDATA%\Claude\claude_desktop_config.json`.

3

How can I test the Rust code?

Run `npm run test:rust` or `cd src/lib/rust-functions-lib && cargo test && cargo fmt --all -- --check`.

4

What should I do if the Rust import fails?

The README shows a “Rust import failed” error and the solution is to run `npm run build:wasm:release` to rebuild the WebAssembly binding.

5

How is the MCP server started?

The server is launched by Node.js using the command “node [local path]/mcpserver/build/index.js”, as defined in the Claude Desktop configuration.

评论

其他 分类下的更多 MCP 服务器