hf-mcp-server
v0.5.1Official Hugging Face MCP Server
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
hf_whoami Hugging Face User Info
Inspect the current Hugging Face authentication context, including the account, visible organization memberships, and credential access details. Read-only and never returns credential values.
hub_repo_search Repo Search
Search and list Hugging Face models, datasets and Spaces (sort by downloads, likes, trending) with a shared query interface. You can target models, datasets, spaces, or aggregate across multiple repo types in one call. Include links to repositories in your response.
| Parameter | Type | Description |
|---|---|---|
author | string | Organization or user namespace to filter by (e.g. 'google', 'meta-llama', 'huggingface'). |
filters | array | Optional hub filter tags. Applied to each selected repo type (e.g. ["text-generation"], ["language:en"], ["mcp-server"]). |
limit | number | Maximum number of results to return per selected repo type |
query | string | Search term. Leave blank and specify sort + limit to browse trending or recent repositories. |
repo_types | array | Repository types to search. Defaults to ["model", "dataset"]. space uses keyword search via /api/spaces. |
sort | string | Sort order (descending): trendingScore, downloads, likes, createdAt, lastModified |
hub_repo_details Hub Repository Details
Get details for one or more Hugging Face repos (model, dataset, or space): card metadata, license, downloads, files, Space hardware/status, dataset configs, splits, columns and preview rows. Auto-detects type unless specified. For datasets, use operations: overview, dataset_structure, dataset_preview. Use dataset_structure first to discover configs, splits, sizes, and schema. Use dataset_preview only when config and split are known, unless the dataset has a single config/split.
| Parameter | Type | Description |
|---|---|---|
repo_ids * | array | Repo IDs for (models|dataset/space) - usually in author/name format (e.g. openai/gpt-oss-120b) |
config | string | Dataset Viewer config. Required for dataset_preview when the dataset has multiple config/split options. Discover via dataset_structure. |
limit | integer | Row count for dataset_preview. Defaults to 5 and is clamped to 1-100. |
offset | integer | Row offset for dataset_preview. Defaults to 0. |
operations | array | Details to return. Defaults to ["overview"]. For datasets, prefer ["overview", "dataset_structure"] first; then call ["dataset_preview"] with config and split. |
repo_type | string | Specify lookup type; otherwise auto-detects |
split | string | Dataset Viewer split. Required for dataset_preview when the dataset has multiple config/split options. Discover via dataset_structure. |
hf_fs Hugging Face Hub: Find, use and view models, datasets, spaces, buckets, papers, documentation and collections. Get daily papers reports, and browse trending content.
When to use: Hugging Face Hub models, datasets, Spaces, collections, papers, daily papers, today's trending models, current paper leaderboard, docs; list and read repository files, model and dataset cards (README, license). Examples: {"operations":[{"cmd":"ls","args":["hf://models/trending","--limit","10"]}]} {"operations":[{"cmd":"ls","args":["hf://papers/trending"]}]} {"operations":[{"cmd":"ls","args":["hf://papers/daily/latest"]}]} {"operations":[{"cmd":"cat","args":["hf://papers/2501.00001/paper.md"]}]} {"operations":[{"cmd":"search","args":["hf://models","--tag","base_model:fin…
| Parameter | Type | Description |
|---|---|---|
operations * | array |