MCPstreamable HTTPrust

Rust DocsBox

A Model Context Protocol server that gives LLM coding agents typed access to Rust docs, clippy, rustfmt, crates.io and the Rust Playground — over one streamable HTTP endpoint.

Endpoint

POST https://rust-mcp.afterrealism.com/mcp

Speaks MCP streamable HTTP. Add it to OpenCode, Claude Code, Cursor, Continue, etc.

Tools

list_sections

Browse the indexed std + popular crates documentation.

get_documentation

Markdown for a single section path.

clippy_check

Lint a Rust snippet, JSON diagnostics.

clippy_fix

Auto-apply clippy suggestions.

rustfmt

Canonical formatting via rustfmt.

playground_link

Shareable play.rust-lang.org permalink.

playground_run

Execute on the official Playground sandbox.

crate_search

Top crates.io results for a query.

crate_info

Versions, features, deps, repo, docs URL.

rustc_explain

Reference text for a compiler error code.

run_locally

Plan of shell commands for the agent's bash tool.

OpenCode example

{
  "mcp": {
    "rust-docsbox": {
      "type": "remote",
      "url": "https://rust-mcp.afterrealism.com/mcp",
      "enabled": true
    }
  }
}

Source

github.com/afterrealism/rust-docsbox-mcp · MIT