wgpu-mcp
Provides tools for searching and retrieving live wgpu crate documentation, including crate items, full item documentation, individual members, filtered listings, and crate version/index information.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@wgpu-mcplook up documentation for wgpu Buffer and its map_async method"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
wgpu-mcp
An MCP (Model Context Protocol) server that gives AI agents live access to the wgpu crate documentation — the Rust implementation of WebGPU.
Zero dependencies. Runs on Node.js ≥ 18. Always serves the latest wgpu release straight from docs.rs, with in-memory caching.
Tools
Tool | Description |
| Search wgpu items (structs, enums, traits, functions, …) by name |
| Full documentation for an item as Markdown: declaration, description, variants/fields, methods |
| Documentation for a single method / variant / field / associated item |
| Enumerate items, filtered by kind or module ( |
| Crate version, index statistics, usage cheat-sheet |
Typical flow:
wgpu_search("buffer")
→ wgpu_docs("Buffer")
→ wgpu_member("Buffer", "map_async")Item references accept short names (Buffer), paths (util::DeviceExt, wgpu::Queue),
the empty string for the crate root, or full docs.rs URLs.
Related MCP server: docs.rs MCP
Install & run
node server.mjsIt speaks MCP over stdio (newline-delimited JSON-RPC), so any MCP client can launch it.
opencode
Add to ~/.config/opencode/opencode.json (adjust the node path to your system):
{
"mcp": {
"wgpu": {
"type": "local",
"command": ["node", "/absolute/path/to/wgpu-mcp/server.mjs"],
"enabled": true
}
}
}Claude Desktop / other clients
{
"mcpServers": {
"wgpu": {
"command": "node",
"args": ["/absolute/path/to/wgpu-mcp/server.mjs"]
}
}
}How it works
The item index is built by parsing rustdoc's
all.html(every item in the crate).Documentation pages are fetched on demand from docs.rs and converted to Markdown (declaration, doc text, variants/fields, inherent methods with docs, compact trait-impl list).
Trait/synthetic/blanket implementation sections are collapsed to a summary so big pages like
Bufferstay within useful context sizes;wgpu_memberretrieves the details of a single member instead.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and read Rust documentation for the standard library and any crate on crates.io
Turn a GitHub repo or docs site into agent-ready context: pack it or search it, over MCP.
Scrape, crawl and search the web for AI agents via MCP.
Search and inspect source-pinned agent skills, plugins and tools through a free public MCP.
Related MCP Servers
- FlicenseNot gradedqualityFmaintenanceAn MCP server that provides AI tools with access to Rust documentation from docs.rs, enabling search for crates, documentation, type information, feature flags, version information, and source code.33-
- AlicenseAqualityCmaintenanceAn MCP server that enables searching for Rust crates and their documentation from docs.rs, allowing AI agents to find required crates and access the latest documentation.427 npm38MIT
- AlicenseAqualityDmaintenanceProvides tools for AI agents to search, browse, and retrieve the full documentation for the mcp-framework. It enables agents to access documentation sections and page content directly within MCP-compatible environments like Claude Code and Cursor.39 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides MCP tools to list and search OpenAI Agents SDK documentation, enabling LLMs to retrieve documentation topics and content via natural language queries.40 PyPIMIT