Skip to main content
Glama

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

wgpu_search

Search wgpu items (structs, enums, traits, functions, …) by name

wgpu_docs

Full documentation for an item as Markdown: declaration, description, variants/fields, methods

wgpu_member

Documentation for a single method / variant / field / associated item

wgpu_list

Enumerate items, filtered by kind or module (util, custom)

wgpu_info

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.mjs

It 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 Buffer stay within useful context sizes; wgpu_member retrieves the details of a single member instead.

License

MIT

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    F
    maintenance
    An 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
    -
  • A
    license
    A
    quality
    C
    maintenance
    An 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.
    4
    27 npm
    38
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides 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.
    3
    9 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides MCP tools to list and search OpenAI Agents SDK documentation, enabling LLMs to retrieve documentation topics and content via natural language queries.
    40 PyPI
    MIT