modelhub-port
Allows agents to explore the Hugging Face Hub, including checking token identity, inspecting model, dataset, and space repositories, searching repositories, listing repository files, searching daily papers, and searching or fetching Hugging Face documentation pages.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
modelhub-port
modelhub-port lets an agent explore the Hugging Face Hub without leaving its tools: look up who a token belongs to, inspect a model, dataset, or space in detail, search across all three repository kinds, list a repository's files, search the daily papers, and search or fetch pages from the Hugging Face documentation. It works from the command line or as an MCP server.
No token is needed to get started. The public Hub endpoints work
anonymously, so every tool except hf_whoami runs keyless. When
HF_TOKEN is set (the HUGGING_FACE_HUB_TOKEN alias is also
accepted), requests carry it as a Bearer token, which raises rate
limits and unlocks private or gated content the token can see.
hf_whoami is the one tool that needs a token, because its whole
job is to say whose token it is; without one it answers with an
error naming HF_TOKEN.
Install
npx @reneturcios/modelhub-port search llama --limit 5Or run the container image:
docker run -i ghcr.io/cloudcorprecords/modelhub-portThe container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
Related MCP server: Hugging Face Hub MCP Server
CLI
# Whose token is configured? (requires HF_TOKEN)
modelhub-port whoami
# Repository details and file listings
modelhub-port details meta-llama/Llama-3.1-8B
modelhub-port details squad --type datasets
modelhub-port files meta-llama/Llama-3.1-8B
# Search models (default), datasets, or spaces
modelhub-port search "text generation" --sort downloads --limit 10
modelhub-port search --type datasets --author google
# Papers and documentation
modelhub-port papers "retrieval augmented generation"
modelhub-port doc-search "fine-tuning"
modelhub-port doc-fetch https://huggingface.co/docs/transformers/index
modelhub-port --versionExit codes: 0 on success, 1 when a lookup fails (the error
names the problem, including the HTTP status when the Hub answers
with one), 2 for usage errors.
MCP server
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
npx -y @reneturcios/modelhub-port mcpMCP client configuration:
{
"mcpServers": {
"modelhub-port": {
"command": "npx",
"args": ["-y", "@reneturcios/modelhub-port", "mcp"],
"env": {
"HF_TOKEN": "your-token-if-you-have-one"
}
}
}
}The env block is optional — leave it out entirely to run keyless.
Tools
Tool | Input | What it returns |
| (none) | The account the configured |
|
| Author, downloads, likes, dates, tags, and file names for one model, dataset, or space. |
|
| A ranked list of matching repositories of the chosen kind. |
|
| Papers matching the query, with authors, dates, and summaries. |
|
| Matching pages from the Hugging Face documentation. |
|
| The text of one |
|
| The file tree of a repository at a revision, defaulting to |
Hosted-only surfaces are out of scope for this rebuild: invoking Gradio spaces as tools, running jobs, managing buckets or collections, and upload/write operations are not included.
Development
npm install
npm run build # tsc -> dist/
npm test # node test runner over test/*.test.ts, no network (fake fetch fixtures)
npm run dev # run the CLI from source via tsxLicense
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Discover, inspect and run 63,000+ agent tools from one balance. Pay per call, no subscriptions.
GitHub, npm, PyPI, Stack Overflow, arXiv and OpenAlex paper search as agent tools.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Connect to Hugging Face Hub and thousands of Gradio AI Applications
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables interaction with the Hugging Face Dataset Viewer API, allowing users to browse, search, filter, and analyze datasets hosted on the Hugging Face Hub.831MIT
- AlicenseAqualityDmaintenanceEnables access to the Hugging Face Hub API to search and retrieve information about machine learning models, datasets, and their metadata. Provides comprehensive tools for exploring the Hugging Face ecosystem including model details, dataset information, and parquet file access.8MIT
- AlicenseNot gradedqualityDmaintenanceProvides direct access to the Hugging Face Hub for searching models and datasets, fetching metadata, and running inference on text, images, and audio.MIT
- AlicenseNot gradedqualityCmaintenanceSearch and retrieve models, datasets, and spaces from Hugging Face Hub. Enables browsing trending items and getting detailed info on repos.565 npmMIT