Overview
CrateDocs MCP is a Model Context Protocol (MCP) server designed for looking up documentation for Rust crates, enabling LLMs to access documentation for crates they are not familiar with.
To use CrateDocs MCP, clone the repository from GitHub, build the project using Cargo, and run the server using the provided command-line interface.
- Lookup general documentation for Rust crates. - Search for crates on crates.io using keywords. - Retrieve documentation for specific items within a crate (e.g., structs, functions).
- Assisting developers in finding documentation for Rust libraries.
- Enabling LLMs to provide accurate information about Rust crates.
- Facilitating the integration of Rust documentation into other applications.
Add to your AI client
Use these steps to connect CrateDocs MCP in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"cratedocs-mcp-d6e": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cratedocs-mcp-d6e"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"cratedocs-mcp-d6e": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cratedocs-mcp-d6e"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"cratedocs-mcp-d6e": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cratedocs-mcp-d6e"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"cratedocs-mcp-d6e": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cratedocs-mcp-d6e"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"cratedocs-mcp-d6e": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cratedocs-mcp-d6e"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"cratedocs-mcp-d6e": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cratedocs-mcp-d6e"
]
}
}
}FAQ
How do I install CrateDocs MCP?
Clone the repository and build it using Cargo.
Can I run the server in different modes?
Yes! You can run it in STDIN/STDOUT mode or HTTP/SSE mode.
Is there a caching mechanism?
Yes, the server includes a caching mechanism to optimize API calls.