search_models

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

Search Hugging Face Hub models with filters for author, library (transformers/diffusers/…), language, pipeline_tag (text-generation/…), and tags; sort by downloads, likes, or trending_score.

Parameters

NameTypeRequiredDescription
searchstringnoFree-text — name / description
authorstringnoFilter by org or user (e.g. “meta-llama”)
librarystringnotransformers | diffusers | sentence-transformers | …
languagestringnoISO language code
pipeline_tagstringnotext-generation | text-classification | image-classification | translation | …
tagsstringnoComma-separated tags
sortstringnodownloads | likes | trending_score | lastModified | createdAt
directionstringno-1 (desc, default) | 1 (asc)
limitnumberno1-1000 (default 20)
fullbooleannoInclude extra fields (cardData, gated, etc.)

Example call

Arguments

{
  "search": "bert",
  "library": "transformers",
  "limit": 20
}

curl

curl -X POST https://gateway.pipeworx.io/huggingface/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_models","arguments":{"search":"bert","library":"transformers","limit":20}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('search_models', {
  "search": "bert",
  "library": "transformers",
  "limit": 20
});

More examples

{
  "author": "meta-llama",
  "pipeline_tag": "text-generation",
  "sort": "downloads",
  "direction": "-1",
  "limit": 10
}

Response shape

Full JSON Schema
{
  "type": "object",
  "description": "List of models matching search criteria"
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026