rust-mcp-cli-starter

seferino-fernandez/rust-mcp-cli-starter
★ 1 stars Rust Security Updated 13d ago
A cargo-generate template that wraps an HTTP API as three Rust crates: a client library, a CLI, and an MCP server (rmcp, stdio + streamable HTTP with OAuth 2.1/PKCE).
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "rust-mcp-cli-starter": {
      "command": "cargo",
      "args": [
        "run",
        "--",
        "rust-mcp-cli-starter"
      ]
    }
  }
}

README Excerpt

A [`cargo-generate`](https://cargo-generate.github.io/cargo-generate/) starter template for wrapping an HTTP API as three Rust crates: a library, a CLI, and an MCP server. It targets the common case of an API authenticated with a single long-lived API key sent as an `X-Api-Key` header against a configurable base URL.

Tools (3)

oauthstdiotoken

Topics

axumcargo-generateclapclap-rsclimcpmcp-servermodel-context-protocolrmcpruststarter-templatetemplate