Overview
Cargo Metadata MCP Server is an implementation that provides metadata information for Cargo projects using the Model Context Protocol (MCP).
To use the server, build it using cargo build --release and run it with cargo run, or execute the pre-built binary directly. To integrate with an MCP client, add the server path to the client's configuration file.
- Retrieve project metadata information - Get package information - Obtain dependency lists - Access build targets - Fetch workspace information - Retrieve feature information
- Managing and retrieving metadata for Rust projects.
- Integrating with development tools that require Cargo project information.
- Facilitating automated build processes by providing necessary project details.
Add to your AI client
Use these steps to connect Cargo Metadata MCP Server 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": {
"mcp-attr-example-cargo-metadata-frozenlib": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-attr-example-cargo-metadata-frozenlib"
]
}
}
}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": {
"mcp-attr-example-cargo-metadata-frozenlib": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-attr-example-cargo-metadata-frozenlib"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-attr-example-cargo-metadata-frozenlib": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-attr-example-cargo-metadata-frozenlib"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-attr-example-cargo-metadata-frozenlib": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-attr-example-cargo-metadata-frozenlib"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-attr-example-cargo-metadata-frozenlib": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-attr-example-cargo-metadata-frozenlib"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-attr-example-cargo-metadata-frozenlib": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-attr-example-cargo-metadata-frozenlib"
]
}
}
}FAQ
What is MCP?
MCP stands for Model Context Protocol, which is used for structured communication between tools.
Can I use this server with any MCP client?
Yes, as long as the client supports the MCP protocol, it can be integrated with this server.
Is there any documentation available?
Yes, detailed documentation can be found on the project's GitHub page.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2662,"uuid":"84495b82-d3f6-4de8-b9f6-ba44ff44b490","name":"mcp-attr-example-cargo-metadata","title":"Cargo Metadata MCP Server","description":"AI任せで作ってみたMCP Server","avatar_url":"https://avatars.githubusercontent.com/u/10678432?v=4","created_at":"$D2025-03-13T09:28:40.108Z","updated_at":"$D2025-03-13T09:39:01.624Z","status":"created","author_name":"frozenlib","author_avatar_url":"https://avatars.githubusercontent.com/u/10678432?v=4","tags":"mcp,cargo,metadata,mcp-server","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/frozenlib/mcp-attr-example-cargo-metadata","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"Rust\",\"is_official\":false,\"latest_commit_time\":\"2025-03-10 11:55:08\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]