cratesio-mcp logo

cratesio-mcp

Community
joshrotenberg

MCP server for querying crates.io - the Rust package registry

Publisherjoshrotenberg
Repositorycratesio-mcp
LanguageRust
Forks
4
Stars
16
Available tools
0
Transport typestdio, streamable-http
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    cratesio-mcp exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    16 stars and 4 forks from the linked repository.

cratesio-mcp

Crates.io Documentation CI License MSRV

MCP server for querying crates.io, the Rust package registry. Built with tower-mcp.

Gives your AI agent crate search, documentation, dependency analysis, download stats, and security auditing to make informed decisions about Rust dependencies.

Under the hood it is also a standalone, dependency-light crates.io API client library that the MCP tools are built on and that you can use directly: ~46 endpoints with full read and write coverage, no crates_io_api dependency. See Built-in crates.io client.

Quick start

Hosted (no install)

A public instance is running at https://cratesio-mcp.fly.dev/. Add to your MCP client config:

json
{
  "mcpServers": {
    "cratesio-mcp": {
      "type": "http",
      "url": "https://cratesio-mcp.fly.dev/"
    }
  }
}

Install from crates.io

bash
cargo install cratesio-mcp

Build from source

bash
git clone https://github.com/joshrotenberg/cratesio-mcp
cd cratesio-mcp
cargo install --path .

Docker

bash
docker run -p 3000:3000 ghcr.io/joshrotenberg/cratesio-mcp:latest

MCP client configuration

Claude Code (stdio)

json
{
  "mcpServers": {
    "cratesio-mcp": {
      "command": "cratesio-mcp"
    }
  }
}

Claude Code (HTTP, local or remote)

json
{
  "mcpServers": {
    "cratesio-mcp": {
      "type": "http",
      "url": "http://localhost:3000/"
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json:

json
{
  "mcpServers": {
    "cratesio-mcp": {
      "command": "cratesio-mcp"
    }
  }
}

What's included

Tools (29)

ToolDescription
search_cratesSearch for crates by name or keywords
get_crate_infoDetailed crate metadata (description, links, stats)
get_crate_versionsVersion history with release dates and download counts
get_crate_versionDetailed metadata for a specific version
get_crate_readmeREADME content for a crate version
get_crate_featuresFeature flags and their sub-feature activations
get_crate_docsBrowse documentation structure from docs.rs
get_doc_itemFull docs for a specific item (fn, struct, trait)
search_docsSearch for items by name within a crate's docs
get_dependenciesDependencies for a specific version
get_reverse_dependenciesCrates that depend on a given crate
audit_dependenciesCheck deps against OSV.dev vulnerability database
get_downloadsDownload statistics and trends
get_version_downloadsDaily download stats for a specific version
get_crate_authorsAuthors listed in Cargo.toml
get_ownersCrate owners and maintainers
get_userUser profile by GitHub username
get_user_statsTotal download stats for a user's crates
get_summarycrates.io global statistics
get_categoriesBrowse crates.io categories
get_categoryDetails for a specific category
get_keywordsBrowse crates.io keywords
get_keywordDetails for a specific keyword
compare_cratesCompare two or more crates side by side (downloads, versions, dependencies, freshness)
get_dependency_treeFull transitive dependency tree with configurable depth and deduplication markers
get_crate_healthComprehensive health report (maturity, adoption, maintenance, security, dependency weight)
get_alternativesFind and compare alternative crates based on keywords, downloads, and recent activity
get_crate_changelogChangelog content from a crate's GitHub repository, optionally filtered to a version
get_release_timelineVersion-over-version registry-metadata diff: feature changes, MSRV bumps, yanked status, release cadence

Every successful tool call returns both the existing human-readable Markdown in content and typed JSON in structuredContent. Each tool advertises the matching JSON Schema 2020-12 contract through outputSchema during discovery.

Resources (3)

ResourceDescription
crates://{name}/infoCrate metadata
crates://{name}/readmeCrate README content
crates://{name}/docsDocumentation structure

Prompts (6)

PromptDescription
analyze_crateGuided comprehensive crate analysis
compare_crates_analysisCompare multiple crates side by side
stack_reviewEvaluate a set of crates as a cohesive stack for compatibility and health
evaluate_dependenciesEvaluate a project's dependencies for health, security, and maintenance
recommend_cratesFind and evaluate crates for a given use case
migration_guideGenerate a migration guide for switching between two crates

Transports

  • stdio (default): for Claude Desktop, Claude Code, and other MCP clients
  • Streamable HTTP: sessionless MCP 2026-07-28 transport, while retaining compatibility with session-based MCP 2025-11-25 clients
bash
# stdio (default)
cratesio-mcp

# HTTP
cratesio-mcp --transport http --port 3000

The HTTP transport includes a tower middleware stack: timeout, rate limiting, bulkhead concurrency control, optional response caching, and structured tracing.

The 2026-07-28 path supports server/discover, stateless requests, standardized MCP routing headers, and cache hints. Tool discovery marks every crates.io tool as read-only, non-destructive, and idempotent; resource reads advertise cache lifetimes appropriate to their data source.

Built-in crates.io client

cratesio-mcp is built on its own typed async crates.io API client, with no crates_io_api dependency. You can use it directly as a library:

  • ~46 endpoints across crates, versions, owners, categories, keywords, users, teams, API tokens, publishing, and trusted publishing.
  • Full read and write coverage: search and metadata, plus authenticated operations (publish, yank/unyank, add/remove owners, manage API tokens, configure trusted publishing) via .with_auth(token).
  • Resilient by default: built-in rate limiting (respects the crates.io crawling policy) and retry with exponential backoff on transient failures (429 / 5xx).
  • Documented and tested: every public method has doc comments, with a wiremock test suite covering the endpoints (including the authenticated write paths).
rust
use std::time::Duration;
use cratesio_mcp::client::{CratesIoClient, CratesQuery, Sort};

let client = CratesIoClient::new("my-app", Duration::from_secs(1))?;

// Search for crates
let query = CratesQuery::builder()
    .search("tower")
    .sort(Sort::Downloads)
    .build();
let results = client.crates(query).await?;

// Get crate details
let info = client.get_crate("tower-mcp").await?;

The OSV.dev vulnerability client (audit_dependencies) and the docs.rs rustdoc-JSON client (get_crate_docs / get_doc_item / search_docs) ship alongside it.

License

MIT OR Apache-2.0

Installation

TypingMind
{
  "mcpServers": {
    "cratesio-mcp": {
      "command": "cratesio-mcp",
      "args": []
    }
  }
}

Use cratesio-mcp MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once cratesio-mcp is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. You can run MCP locally on your device or connect to a remote MCP server URL.

Option 1: Use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add cratesio-mcp as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the cratesio-mcp MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "cratesio-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the cratesio-mcp MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the cratesio-mcp MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use cratesio-mcp to help me with this task?
cratesio-mcp
Sure. I read it.
Here is what I found using cratesio-mcp.

Option 2: Add an MCP server URL

Use this when cratesio-mcp is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter https://cratesio-mcp.fly.dev/ in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste https://cratesio-mcp.fly.dev/ into the Server URL field.
  2. Enter a connection name for cratesio-mcp.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the cratesio-mcp connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the cratesio-mcp tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the cratesio-mcp tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use cratesio-mcp to help me with this task?
cratesio-mcp
Sure. I read it.
Here is what I found using cratesio-mcp.

Frequently asked questions

What is the cratesio-mcp MCP server used for?

cratesio-mcp is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use cratesio-mcp MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use cratesio-mcp with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use cratesio-mcp MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With cratesio-mcp connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect cratesio-mcp MCP to TypingMind?

cratesio-mcp can be connected in TypingMind with the local MCP connector or by adding a remote MCP server URL. Use the local connector when the server needs access to files, apps, or private resources on your device, and use a server URL when the MCP server is hosted remotely.

What tools does cratesio-mcp MCP provide in TypingMind?

cratesio-mcp exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use cratesio-mcp MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If cratesio-mcp requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇