Cargo Doc MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_crate_doc

Get crate's main documentation page. Useful for unresolved imports (e.g. use get_crate_doc when seeing 'unresolved import tokio') or understanding crate features.

list_symbols

List all symbols in a crate. Use when implementing traits or exploring available types. Shows structs, enums, traits with their paths.

search_doc

Search crate docs for specific features, error messages, or usage examples. Helps debug compilation issues or learn new APIs.