Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Server Rust

FreeNot checked

A simple MCP server that integrates Rust functions via WebAssembly, enabling operations like factorial computation through Claude Desktop.

GitHubEmbed

About

A simple MCP server that integrates Rust functions via WebAssembly, enabling operations like factorial computation through Claude Desktop.

README

A simple Rust function integrated with an MCP client.

Step 1: Relase the Rust & Javascript/TS code

Release

npm run build:wasm:release // release rust code
npm install // create javascript file and install all npm dependencies

Step 2: Claude Desktop Configuration

Create a configuration file at:

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

locations:

Step 3: Claude Desktop

Start Claude Desktop

Claude Desktop Initial View please note the additional mcp server icon in the frontend

Agree to use the mcp server function:

Allow MCP server

Observe the mcp server function:

factorial function used

Video

Watch the video tutorial here: YouTube video

Misc

Test the rust code

npm run test:rust

or

cd src/lib/rust-functions-lib
cargo test && cargo fmt --all -- --check

Clean the output files and folders

npm run clean

Build the rust code - alternatives

npm

npm run build:wasm

Alternative approach using wasm tool

cd src/lib/rust-functions-lib
wasm-pack build --target bundler

Build only ts code (npm)

npm build

Copy build Rust code

manual copy to the correct location - included in npm run build:wasm:release

mkdir -p build/lib/rust-functions-lib/pkg && cp src/lib/rust-functions-lib/pkg/rust_funcations_lib.js build/lib/rust-functions-lib/pkg/rust_funcations_lib.js

Rust import failed

issue:

rust import failed

solution:

run npm run build:wasm:release to release the wasm-binding the factorial import depends on

from github.com/lotharschulz/mcp-server-rust

Installing Server Rust

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/lotharschulz/mcp-server-rust

FAQ

Is Server Rust MCP free?

Yes, Server Rust MCP is free — one-click install via Unyly at no cost.

Does Server Rust need an API key?

No, Server Rust runs without API keys or environment variables.

Is Server Rust hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Server Rust in Claude Desktop, Claude Code or Cursor?

Open Server Rust on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Server Rust with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs