search_crates

Pack: crates · Endpoint: https://gateway.pipeworx.io/crates/mcp

Search crates.io for Rust packages by keyword. Returns crate name, description, downloads, latest version, and repo URL.

Parameters

NameTypeRequiredDescription
querystringyesSearch query string
limitnumbernoNumber of results to return (default 10, max 100)

Example call

Arguments

{
  "query": "web framework"
}

curl

curl -X POST https://gateway.pipeworx.io/crates/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_crates","arguments":{"query":"web framework"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('search_crates', {
  "query": "web framework"
});

More examples

{
  "query": "async runtime",
  "limit": 20
}

Response shape

Always returns: total, crates

FieldTypeDescription
totalnumberTotal number of matching crates
cratesarray
Full JSON Schema
{
  "type": "object",
  "properties": {
    "total": {
      "type": "number",
      "description": "Total number of matching crates"
    },
    "crates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Crate name"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Short description of the crate"
          },
          "downloads": {
            "type": "number",
            "description": "Total download count"
          },
          "newest_version": {
            "type": "string",
            "description": "Latest published version"
          },
          "max_stable_version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Latest stable version"
          },
          "repository": {
            "type": [
              "string",
              "null"
            ],
            "description": "Repository URL"
          },
          "homepage": {
            "type": [
              "string",
              "null"
            ],
            "description": "Homepage URL"
          },
          "updated_at": {
            "type": "string",
            "description": "Last update timestamp"
          }
        },
        "required": [
          "name",
          "description",
          "downloads",
          "newest_version",
          "max_stable_version",
          "repository",
          "homepage",
          "updated_at"
        ]
      }
    }
  },
  "required": [
    "total",
    "crates"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "crates": {
      "url": "https://gateway.pipeworx.io/crates/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026