crates.io API and MCP server for AI agents
Let Claude, ChatGPT or your own agent read crates.io. No crates.io API key needed.
Add to your agent
Paste this into Claude Code, Cursor, Codex or any agent. It adds the server itself.
Read https://bowmark.ai/sites/crates_io.md and add Bowmark's crates.io MCP server to my agent.Run this in a terminal, then sign in when the browser opens. Claude Code keeps its own sign-in (a claude.ai sign-in does not carry over), so add only this one server. Adding the Bowmark plugin as well lists every tool twice.
claude mcp add --transport http bowmark-crates-io https://api.bowmark.ai/mcp/site/crates_ioPress the button, or add this to ~/.cursor/mcp.json.
{
"mcpServers": {
"bowmark-crates-io": {
"url": "https://api.bowmark.ai/mcp/site/crates_io"
}
}
}Press the button, or run this in a terminal.
code --add-mcp '{"name":"bowmark-crates-io","type":"http","url":"https://api.bowmark.ai/mcp/site/crates_io"}'Run this in a terminal.
codex mcp add bowmark-crates-io --url https://api.bowmark.ai/mcp/site/crates_ioIn Claude, open Plugins → Add → Add custom connector, paste this URL, and pick Sign in now.
https://api.bowmark.ai/mcp/site/crates_ioIn ChatGPT, open Plugins, press +, choose Add custom MCP server and paste this URL.
https://api.bowmark.ai/mcp/site/crates_ioAny MCP client that takes a remote (streamable HTTP) server: give it this URL.
https://api.bowmark.ai/mcp/site/crates_ioFunctions
Open a function to see its parameters and run it with your own API key.
getCrateOne crate's metadata off crates.io plus every published version (newest first) with its license, minimum Rust version, edition, yanked flag…POST /v1/sites/crates_io/getCrate
Parameters
curl -X POST https://api.bowmark.ai/v1/sites/crates_io/getCrate \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"serde"}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.crates_io.getCrate("serde");import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.crates_io.getCrate("serde"))Responsereturns crates_ioCrateDetailinterface crates_ioVersion { version: string; publishedAt: string | null; // ISO-8601 yanked: boolean; license: string | null; rustVersion: string | null; // minimum supported Rust edition: string | null; downloads: number; publishedBy: string | null; // crates.io login features: Record<string, string[]>; } interface crates_ioCrateDetail { name: string; description: string | null; version: string; // highest stable version the registry reports downloads: number; recentDownloads: number | null; // last ~90 days createdAt: string | null; // ISO-8601 updatedAt: string | null; // ISO-8601 repository: string | null; homepage: string | null; documentation: string | null; keywords: string[]; categories: string[]; versions: crates_ioVersion[]; // newest first }searchFinds Rust crates on crates.io by keyword.POST /v1/sites/crates_io/search
Parameters
curl -X POST https://api.bowmark.ai/v1/sites/crates_io/search \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"query":"serde","size":2}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.crates_io.search("serde", 2);import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.crates_io.search("serde", 2))Responsereturns crates_ioSearchPageinterface crates_ioCrate { name: string; description: string | null; version: string; // highest stable version the registry reports downloads: number; recentDownloads: number | null; // last ~90 days createdAt: string | null; // ISO-8601 updatedAt: string | null; // ISO-8601 repository: string | null; homepage: string | null; documentation: string | null; keywords: string[]; categories: string[]; } interface crates_ioSearchPage { results: crates_ioCrate[]; total: number | null; // How many crates crates.io matched the whole query, from its own count. page: number; pageCount: number | null; returned: number; warnings: string[]; }