1. Conduid
  2. Cloud
  3. Workers Rs MCP
MCP server · Cloud

Workers Rs MCP

Rust MCP server template for Cloudflare workers

34Low

Scored 6 months ago · breakdown

About Workers Rs MCP

Workers Rs MCP is an MCP server in the Cloud category: rust MCP server template for Cloudflare workers.

Install

From source
git clone https://github.com/tinybeachthor/workers-rs-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Workers Rs MCP

Powered by Claude · Grounded in docs

I know everything about Workers Rs MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

workers-rs-mcp

An example MCP (Model Context Protocol) server written in Rust, running on Cloudflare Workers.

The server compiles to WebAssembly and runs on Cloudflare's edge infrastructure, handling MCP JSON-RPC requests over HTTP.

How it works

HTTP routing is handled by Axum via the workers-rs SDK. MCP protocol logic is handled by the mcpserver crate.

Endpoints

Method Path Description
GET / Server name and version
GET /healthz Health check — returns OK
POST /mcp MCP JSON-RPC endpoint

Session management

  • initialize requests generate a new mcp-session-id (UUID v4) returned in the response header
  • All subsequent requests should include the mcp-session-id header

Tools

Includes one example tool:

  • echo — echoes the input message back to the caller

Getting started

Prerequisites

  • Rust with the wasm32-unknown-unknown target:
    rustup target add wasm32-unknown-unknown
    
  • Wrangler CLI:
    npm install -g wrangler
    

Local development

wrangler dev

Deploy to Cloudflare Workers

wrangler deploy

Pushing to main also deploys automatically via GitHub Actions (requires CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID secrets).

Adding tools

  1. Implement the ToolHandler trait in src/lib.rs:
struct MyToolHandler;

#[async_trait]
impl ToolHandler for MyToolHandler {
    async fn call(&self, args: Value, _context: Value) -> Result<ToolResult, McpError> {
        // your logic here
        Ok(text_result("result".to_string()))
    }
}
  1. Register the tool with the MCP server:
mcp_router.handle_tool("my-tool", Arc::new(MyToolHandler));
  1. Add the tool schema to mcp/tools.json.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Workers Rs MCP

How do I install Workers Rs MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Workers Rs MCP safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Workers Rs MCP still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.