cratesio-mcpのロゴ

cratesio-mcp

コミュニティ
joshrotenberg

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

公開者joshrotenberg
リポジトリcratesio-mcp
言語Rust
フォーク
4
スター
16
利用可能なツール
0
通信方式stdio, streamable-http
カテゴリ
ライセンスApache-2.0
リンク
  • ツールをAIワークフローに接続

    cratesio-mcpは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには16件のスターと4件のフォークがあります。

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

インストール

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

cratesio-mcpのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度cratesio-mcpに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 お使いのデバイス上でMCPをローカル実行することも、リモートMCPサーバーのURLに接続することもできます。

方法1:ローカルコネクタを使用

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

cratesio-mcpをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. cratesio-mcpのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "cratesio-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてcratesio-mcpのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. cratesio-mcpのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
cratesio-mcpを使ってこのタスクを手伝ってもらえますか?
cratesio-mcp
はい、読みました。
cratesio-mcpで調べた結果をお伝えします。

方法2:MCPサーバーのURLを追加

cratesio-mcpがすでにリモートでホストされている場合や、チームの複数のユーザーで1つのコネクタを共有したい場合は、この方法を使います。

1

MCPコネクタを開く

TypingMindで「プラグイン」に移動し、「MCPコネクタ」を開いて「URLを追加」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 「プラグイン」に移動してください。
  3. 「MCPコネクタ」を開いてください。
  4. 「URLを追加」をクリックします。
TypingMindの「カスタムMCPサーバーURLを追加」フォーム
2

サーバーURLを貼り付け

「サーバーURL」欄にhttps://cratesio-mcp.fly.dev/を入力してください。サーバーで必要とされる場合は、接続名、説明、アイコン、カスタムHTTPヘッダー、OAuthクライアント設定を追加してください。

  1. 「サーバーURL」欄にhttps://cratesio-mcp.fly.dev/を貼り付けてください。
  2. cratesio-mcpの接続名を入力してください。
  3. 接続を識別しやすくするには、説明とアイコンを追加してください。
  4. サーバーで認証が必要な場合は、カスタムHTTPヘッダーまたはOAuthクライアントの詳細情報を追加してください。
3

接続を作成

「接続を作成」をクリックし、プラグイン一覧に戻って、新しいMCP接続が有効になっていることを確認してください。

  1. 「接続を作成」をクリックします。
  2. MCPコネクタの一覧に戻ってください。
  3. cratesio-mcpの接続が「有効」と表示されていることを確認してください。
  4. 接続がすぐに表示されない場合は、プラグイン一覧を更新してください。
4

再接続せずにモデルを切り替え

お好みのモデルでチャットを開始し、「プラグイン」でcratesio-mcpのツールを有効にしてください。必要に応じて別のモデルに切り替えられます。MCP接続は、TypingMindのワークスペースで引き続き利用できます。

  1. TypingMindで新しいチャットを開始してください。
  2. 使用するAIモデルを選択してください。
  3. 「プラグイン」でcratesio-mcpのツールを有効にしてください。
  4. 必要に応じて、ツールを使うようモデルに依頼してください。
  5. 別のAIモデルに切り替えて、同じMCP接続を再利用してください。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
cratesio-mcpを使ってこのタスクを手伝ってもらえますか?
cratesio-mcp
はい、読みました。
cratesio-mcpで調べた結果をお伝えします。

よくある質問

cratesio-mcp MCPサーバーは何に使いますか?

cratesio-mcpは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでcratesio-mcp MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでcratesio-mcpを利用できます。

TypingMindでcratesio-mcp MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。cratesio-mcpを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

cratesio-mcp MCPをTypingMindに接続するにはどうすればよいですか?

cratesio-mcpは、ローカルMCPコネクタを使うか、リモートMCPサーバーのURLを追加することでTypingMindに接続できます。サーバーがデバイス上のファイル、アプリ、プライベートリソースにアクセスする必要がある場合はローカルコネクタを、MCPサーバーがリモートでホストされている場合はサーバーURLを使用してください。

TypingMindでcratesio-mcp MCPのどのようなツールを利用できますか?

cratesio-mcpはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

cratesio-mcp MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。cratesio-mcpで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇