Server Rust
БесплатноНе проверенA simple MCP server that integrates Rust functions via WebAssembly, enabling operations like factorial computation through Claude Desktop.
Описание
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:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json(source: https://modelcontextprotocol.info/docs/quickstart/user/#2-add-the-filesystem-mcp-server)
Step 3: Claude Desktop
Start Claude Desktop
please note the additional mcp server icon in the frontend
Agree to use the mcp server function:

Observe the mcp server function:

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:

solution:
run npm run build:wasm:release to release the wasm-binding the factorial import depends on
Установка Server Rust
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/lotharschulz/mcp-server-rustFAQ
Server Rust MCP бесплатный?
Да, Server Rust MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Server Rust?
Нет, Server Rust работает без API-ключей и переменных окружения.
Server Rust — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Server Rust в Claude Desktop, Claude Code или Cursor?
Открой Server Rust на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Server Rust with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
