Hugging Face data API
6 endpoints for Hugging Face: models, model, datasets, spaces, papers, paper. One API key, one JSON schema, as MCP tools or REST.
Endpoints
Call any of them over MCP with call_endpoint and its path, or over REST.
| Endpoint | Returns | Credits | Cache |
|---|---|---|---|
| modelsGET /v1/huggingface/models | Model repositories on Hugging Face, with downloads, likes, task and license tags. | 1 | 30 min |
| modelGET /v1/huggingface/model | One Hugging Face model repository: task, library, license, file count, downloads and likes. | 1 | 15 min |
| datasetsGET /v1/huggingface/datasets | Dataset repositories on Hugging Face, with downloads, task categories and licenses. | 1 | 30 min |
| spacesGET /v1/huggingface/spaces | Runnable Hugging Face demo spaces, with sdk, likes and trending score. | 1 | 30 min |
| papersGET /v1/huggingface/papers | Papers Hugging Face indexes, with authors, abstract, upvotes and the model-written summary. | 1 | 2 min |
| paperGET /v1/huggingface/paper | One Hugging Face paper with its authors, abstract, categories, links and any curated summary or linked artifacts. | 1 | 10 min |
Connect your agent over MCP
Remote MCP server: https://data.openkrill.app/mcp with your key in the x-api-key header.
claude mcp add --transport http krilldata \
https://data.openkrill.app/mcp \
--header "x-api-key: YOUR_API_KEY"{
"mcpServers": {
"krilldata": {
"url": "https://data.openkrill.app/mcp",
"headers": {
"x-api-key": "YOUR_API_KEY"
}
}
}
}{
"mcpServers": {
"krilldata": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://data.openkrill.app/mcp",
"--header",
"x-api-key:${API_KEY}"
],
"env": {
"API_KEY": "YOUR_API_KEY"
}
}
}
}