Hugging Face MCP Server
by evalstate
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HF_TOKEN | No | Used if running with stdio transport and DEFAULT_HF_TOKEN is not set. | |
| TRANSPORT | No | Transport type: stdio, streamableHttp, or streamableHttpJson. Default varies: npx uses stdio, Docker uses streamableHttpJson. | |
| HF_API_TIMEOUT | No | Timeout for Hugging Face API requests in milliseconds. Default: 12500. | |
| PROXY_TOOLS_CSV | No | Optional CSV that defines Streamable HTTP proxy tool sources. | |
| USER_CONFIG_API | No | URL to use for User settings. Defaults to Local front-end. | |
| DEFAULT_HF_TOKEN | No | ⚠️ Requests are serviced with the HF_TOKEN received in the Authorization: Bearer header. The DEFAULT_HF_TOKEN is used if no header was sent. Only set this in Development / Test environments or for local STDIO Deployments. | |
| MCP_PING_ENABLED | No | Enable ping keep-alive for sessions. Default: true. | |
| AUTHENTICATE_TOOL | No | Whether to include an Authenticate tool to issue an OAuth challenge when called. | |
| MCP_PING_INTERVAL | No | Interval between ping cycles. Default: 30000ms. | |
| SEARCH_ENABLES_FETCH | No | When set to true, automatically enables the hf_doc_fetch tool whenever hf_doc_search is enabled. | |
| MCP_STRICT_COMPLIANCE | No | Set to True for GET 405 rejects in JSON Mode (default serves a welcome page). | |
| GRADIO_SKIP_INITIALIZE | No | When set to true, Gradio MCP calls skip the initialize handshake and issue tools/call directly. | |
| MCP_CLIENT_CONNECTION_CHECK | No | How often to check for stale sessions. Default: 90000ms. | |
| ALLOW_INTERNAL_ADDRESS_HOSTS | No | Optional comma-separated host allowlist to permit internal/reserved DNS resolutions for trusted domains during outbound checks. | |
| MCP_CLIENT_CONNECTION_TIMEOUT | No | Remove sessions inactive for this duration. Default: 300000ms. | |
| MCP_CLIENT_HEARTBEAT_INTERVAL | No | How often to check connection health. Default: 30000ms. |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/evalstate/hf-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server