Windows Crate Docs Search MCP logo

Windows Crate Docs Search MCP

by preludeorg

This project provides a Claude Desktop MCP server that allows searching the Rust `windows` crate API documentation hosted at microsoft.github.io/windows-docs-rs. It uses Playwright to interact with the documentation website's search functionality and the features table.

View on GitHub

Last updated: N/A

What is Windows Crate Docs Search MCP?

This is a Claude Desktop MCP (Micro Code Platform) server that enables searching the Rust windows crate API documentation. It leverages Playwright to interact with the online documentation and extract relevant information.

How to use Windows Crate Docs Search MCP?

To use this server, you need to install Playwright browsers. The server attempts to install Chromium automatically on the first run, but you can skip this by setting the MCP_SKIP_PLAYWRIGHT_INSTALL environment variable. You can run the server using uvx or uv run. Then, configure Claude Desktop or Cursor by adding the provided JSON configuration to their respective settings files, ensuring the path is correct if using uv run.

Key features of Windows Crate Docs Search MCP

  • Search Windows API using the search_windows_api tool.

  • Retrieve detailed documentation for exact matches, including description, signature, and required Cargo feature.

  • Find related API items during the search.

Use cases of Windows Crate Docs Search MCP

  • Quickly find specific Windows API functions, structs, or enums within the Rust windows crate.

  • Access detailed documentation for Windows API elements directly from Claude Desktop or Cursor.

  • Discover related API items to broaden understanding and explore alternative solutions.

FAQ from Windows Crate Docs Search MCP

How do I install Playwright browsers?

The server attempts to install the default browser (Chromium) automatically on the first run. You can skip this by setting the MCP_SKIP_PLAYWRIGHT_INSTALL environment variable. You can also specify a browser using MCP_PLAYWRIGHT_BROWSER

How do I run the MCP server?

The simplest way is to use uvx windows-rs-mcp after installation. Alternatively, you can use uv run windows-rs-mcp from the project directory.

How do I configure Claude Desktop to use this MCP?

Add the provided JSON configuration to your Claude Desktop settings, either using uvx (recommended) or uv run (for local source). Remember to replace the placeholder path if using uv run.

How do I configure Cursor to use this MCP?

Open .cursor/mcp.json and add the MCP server configuration.

What environment variables are available?

The available environment variables are MCP_SKIP_PLAYWRIGHT_INSTALL (to skip Playwright installation) and MCP_PLAYWRIGHT_BROWSER (to specify the browser Playwright should install).