In breve
Fai esplorare alla tua AI l'Hugging Face Hub con il tuo access token: trova e confronta modelli, dataset, Spaces, paper e collection, guarda dentro i dataset riga per riga, leggi i file di qualsiasi repository e chatta con modelli aperti tramite Inference Providers.
Configurazione guidata
Collega Hugging Face a Microsoft Copilot in 2 minuti
Avvia la prova gratuita su AnythingMCP Cloud, collega Hugging Face con la configurazione guidata e aggiungi il tuo URL MCP a Microsoft Copilot. Senza codice e senza server da gestire.
Nessuna carta di credito · 7 giorni di prova · Alternativa self-host disponibile
Prova a chiedere
Prompt di esempio per Hugging Face
Clicca su un prompt per copiarlo. Incollalo in Claude, ChatGPT, Cursor, Gemini, Copilot o OpenClaw per eseguirlo contro questo connettore.
Claude è un'AI e può sbagliare. Verifica sempre le risposte.
💡 Niente installazione? Vai direttamente su cloud.anythingmcp.com. Accedi, clicca Connectors → Hugging Face, inserisci le credenziali, genera una MCP API key e hai finito. Niente Docker, niente
git clone, niente server locale.
Hugging Face + Microsoft Copilot
Fai esplorare alla tua AI l'Hugging Face Hub con il tuo access token: trova e confronta modelli, dataset, Spaces, paper e collection, guarda dentro i dataset riga per riga, leggi i file di qualsiasi repository e chatta con modelli aperti tramite Inference Providers.
Prerequisiti
Le istruzioni di setup complete sono incluse nel connettore stesso (visibili nello store quando lo selezioni). Le variabili d'ambiente richieste sono:
HF_TOKEN
Step 1 — Ottieni le credenziali
- Accedi a
https://huggingface.coe apri Settings → Access Tokens (https://huggingface.co/settings/tokens). - Crea un token. Un token Read copre tutto tranne chat e inferenza: ricerca sull'Hub, dataset viewer, file, paper e collection. Per chattare con i modelli crea un token Fine-grained e spunta Make calls to Inference Providers; spunta anche l'accesso in lettura ai repo gated pubblici se usi modelli gated. Anche un token Write funziona, ma non serve mai, perché il connettore non modifica nulla sull'Hub.
- Incolla il token in
HF_TOKEN(inizia conhf_) e installa il connettore. Viene inviato solo a huggingface.co, datasets-server.huggingface.co e router.huggingface.co. - Verifica la configurazione con
huggingface_whoami: è gratuito e mostra a chi appartiene il token, il suo ruolo e le tue organizzazioni.
Gratis sull'Hugging Face (HF) Hub: cercare e leggere modelli, dataset, Spaces, paper, collection e file non costa nulla.
- Modelli:
huggingface_search_modelsfiltra per nome, task, autore, libreria o tag (per esempioggufolicense:mit) e per Inference Provider, ordinando per download, like o tendenza;huggingface_get_modelmostra licenza, dimensioni e file. - Dataset:
huggingface_search_datasetsehuggingface_get_dataset. Per guardare dentro un dataset senza scaricarlo, l'AI usa il dataset viewer:huggingface_dataset_splits,huggingface_dataset_first_rows,huggingface_dataset_rows(fino a 100 righe per pagina),huggingface_dataset_search(testo completo),huggingface_dataset_filter(condizioni in stile SQL),huggingface_dataset_sizeehuggingface_dataset_statistics(minimo, massimo, media e istogrammi per colonna). Ricerca, filtro e statistiche richiedono un dataset indicizzato dal viewer; uno nuovo o molto grande può rispondere che il suo indice è ancora in caricamento. - Spaces:
huggingface_search_spacesper nome,huggingface_semantic_search_spacesin base a cosa fa l'app ehuggingface_get_spaceper stato di esecuzione e hardware. - Paper:
huggingface_daily_papers,huggingface_search_papers,huggingface_get_paperehuggingface_read_paper(l'intera pagina del paper come testo). - File e collection:
huggingface_list_repo_filesehuggingface_read_fileleggono piccoli file di testo come un README o config.json; i pesi dei modelli e altri file binari grandi non sono leggibili.huggingface_list_collectionsehuggingface_get_collectionmostrano le collection curate.
Chat e inferenza costano, quindi l'AI chiede prima: huggingface_chat_completion e huggingface_run_inference_task sono addebitati sui tuoi crediti Hugging Face. Gli account PRO ricevono 2 dollari di crediti al mese; gli account gratuiti devono prima acquistare crediti su https://huggingface.co/settings/billing. Prima di ogni chiamata a pagamento l'AI ti dice quale modello userà e aspetta il tuo sì, e non ripete mai chiamate a pagamento senza chiedere. huggingface_list_chat_models mostra il prezzo per milione di token e huggingface_get_model_providers quali provider servono un modello.
Scegliere il provider: per impostazione predefinita risponde il provider attivo più veloce. Aggiungi :cheapest, :fastest, :preferred (il tuo ordine nelle impostazioni di Hugging Face) o il nome di un provider come :groq all'id del modello per scegliere tu. Un'organizzazione di cui fai parte può pagare al posto tuo. huggingface_run_inference_task esegue classificazione, riconoscimento di entità, fill-mask, riassunto, traduzione, classificazione zero-shot, risposta a domande, similarità tra frasi ed embedding sul provider hf-inference.
Contenuti non affidabili: model card, righe dei dataset, file, paper e risposte dei modelli provengono da terzi. L'AI tratta le istruzioni che contengono come dati, non come ordini.
Errori comuni: 401 su huggingface_whoami o in chat: il token è errato, revocato o mancante. 401 o 403 su un repository: è privato, gated (accetta prima le condizioni nella pagina del modello) o il tuo token fine-grained non lo copre; l'Hub risponde 401 anche per un repository che non esiste. 402 o un messaggio sui crediti: i crediti sono finiti. 403 in chat: al token fine-grained manca Make calls to Inference Providers. 400 model not supported: nessun provider attivo serve quel modello per la chat. 429: limite di frequenza; attendi un minuto e riprova.
Il connettore non crea né modifica repository, non carica file, non gestisce Spaces, Inference Endpoints o Jobs e non genera immagini.
Step 2 — Installa l'adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 3 — Aggiungi il connettore in Microsoft Copilot
L'URL del tuo server: in AnythingMCP apri MCP Servers → il server su cui si trova questo connettore e copia il suo URL (
https://cloud.anythingmcp.com/mcp/…). Usalo ovunque questa guida mostraYOUR_SERVER_ID.
Microsoft Copilot usa i server MCP tramite gli agenti creati in Copilot Studio: aggiungi AnythingMCP a un agente come strumento, poi pubblichi l'agente in Microsoft 365 Copilot e in Teams. Copilot Studio si collega dal cloud di Microsoft via Streamable HTTP, che AnythingMCP supporta.
- In Copilot Studio apri il tuo agente (o creane uno), vai su Tools e scegli Add a tool → New tool → Model Context Protocol.
- Inserisci un Server name (per esempio
AnythingMCP), una Server description che dica cosa fa il connettore e il Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID. Copilot Studio usa la descrizione per decidere quando chiamare il server. - Come autenticazione scegli API key, imposta Type su Header e come nome dell'header
X-API-Key, poi seleziona Create. - In Add tool scegli Create a new connection, incolla una chiave API MCP di AnythingMCP (MCP Servers → il tuo server → API keys) e seleziona Add to agent.
- Provalo nel riquadro Test dell'agente: chiedi qualcosa che richiede i tool di
Hugging Face. - Seleziona Publish, poi Channels → Microsoft 365 and Microsoft Teams, lascia selezionato Make agent available in Microsoft Copilot e scegli Add channel. See agent in Teams lo installa per te; in Microsoft 365 Copilot scrivi @ e scegli l'agente.
Preferisci un accesso per ogni utente? Al posto della chiave API scegli OAuth 2.0 → Dynamic discovery: ogni persona accede ad AnythingMCP la prima volta che l'agente lo chiama.
Usi il self-hosting? Usa l'indirizzo HTTPS pubblico della tua istanza al posto di https://cloud.anythingmcp.com. Copilot Studio si collega dal cloud di Microsoft, quindi localhost non funziona.
Tool disponibili
| Tool | What it does |
|---|---|
huggingface_whoami | Show who the Hugging Face token belongs to: user name, PRO status, whether the account can pay for inference, the organizations it belongs… |
huggingface_search_models | Search models on the Hugging Face Hub |
huggingface_get_model | Read one model's details from the Hugging Face Hub: task, library, license, base model, parameter count, downloads, likes, gated or… |
huggingface_get_model_providers | List the Inference Providers that serve a model through Hugging Face (e.g. groq, together, novita, fal-ai, hf-inference), with each… |
huggingface_list_chat_models | List every model available for chat through the Hugging Face router, with each provider's status, context length, price per million input… |
huggingface_search_datasets | Search datasets on the Hugging Face Hub by text in the id, author or organization and tag (e.g. task_categories:text-classification… |
huggingface_get_dataset | Read one dataset's details from the Hugging Face Hub: license, tasks, languages, size category, downloads, likes, gated or private, last… |
huggingface_dataset_splits | List a dataset's subsets (config) and splits (train, validation, test, ...) from the Hugging Face dataset viewer |
huggingface_dataset_first_rows | Show the column names and types and the first 20 rows of one split of a Hugging Face dataset, from the dataset viewer |
huggingface_dataset_rows | Read a slice of rows (up to 100) from one split of a Hugging Face dataset, starting at offset, to page through the data |
huggingface_dataset_search | Full-text search inside one split of a Hugging Face dataset (text columns only) and return the matching rows (up to 100) with the total… |
huggingface_dataset_filter | Filter the rows of one split of a Hugging Face dataset with an SQL-like condition and optional sort, e.g. where "label"=1 AND "score">0.5… |
huggingface_dataset_size | Show how big a Hugging Face dataset is: number of rows and columns and bytes (original files, Parquet, in memory) for the whole dataset… |
huggingface_dataset_statistics | Descriptive statistics for every column of one split of a Hugging Face dataset: for numbers min, max, mean, median, standard deviation and… |
huggingface_search_spaces | Search Spaces (hosted AI demo apps) on the Hugging Face Hub by text in the id, author and tag, sorted by likes, trending, creation or last… |
huggingface_semantic_search_spaces | Find Spaces (hosted AI demo apps) on Hugging Face by describing what they should do, e.g. 'remove image background' or 'transcribe audio' |
huggingface_get_space | Read one Space (hosted AI demo app) on Hugging Face: title, SDK, license, the app URL, the models and datasets it uses, and its runtime… |
huggingface_daily_papers | List the AI research papers curated on Hugging Face Daily Papers, newest first or by trending, for a day, an ISO week or a month (latest… |
huggingface_search_papers | Search AI research papers indexed on Hugging Face by words in the title and abstract |
huggingface_get_paper | Read one paper's page on Hugging Face by arXiv id: title, authors, abstract, AI summary and keywords, upvotes, and the first models… |
huggingface_read_paper | Read a paper's full Hugging Face page as markdown by arXiv id (title, abstract and the paper text as Hugging Face renders it), capped at… |
huggingface_list_repo_files | List the files and folders in a model, dataset or Space repository on Hugging Face, with sizes, at a branch, tag or commit |
huggingface_read_file | Read the start of one text file from a Hugging Face repository (a README, config.json, tokenizer_config.json, a Python script or a small… |
huggingface_list_collections | List curated collections on Hugging Face (groups of models, datasets, Spaces and papers), filtered by owner or by an item they contain… |
huggingface_get_collection | Read one Hugging Face collection with all its items (models, datasets, Spaces, papers) and the curator's notes |
huggingface_chat_completion | Chat with an open model through Hugging Face Inference Providers (OpenAI-compatible) |
huggingface_run_inference_task | Run a model on the hf-inference provider for a non-chat task: text classification, token classification (named entities), fill-mask… |
Esempi di prompt
- "Trova i cinque modelli di classificazione del testo in italiano più scaricati su Hugging Face e confronta licenze e dimensioni."
- "Mostrami le prime righe dello split test di stanfordnlp/imdb e conta quante recensioni hanno label 1."
- "Quali paper hanno avuto più upvote questa settimana su Hugging Face Daily Papers? Riassumi i primi tre."
- "Quali provider servono adesso openai/gpt-oss-120b per la chat e quanto costa per milione di token?"
- "Trova uno Space attivo che rimuove lo sfondo dalle immagini e dimmi quale modello usa."
- "Riassumi questo paragrafo con meta-llama/Llama-3.1-8B-Instruct sul provider più economico. Dimmi modello e prezzo prima di eseguirlo."
FAQ
Per quale Copilot vale? Per Microsoft 365 Copilot in azienda, tramite gli agenti di Copilot Studio. L'app Microsoft Copilot per account personali non permette di aggiungere un proprio server MCP.
Cosa mi serve? Un account di lavoro con accesso a Copilot Studio (licenza o prova) per creare l'agente. Chi lo usa in Microsoft 365 Copilot o in Teams deve avere accesso all'agente: condividilo, oppure chiedi a un amministratore di pubblicarlo per l'organizzazione. Se la tua organizzazione applica criteri sui dati ai connettori di Power Platform, valgono anche per i server MCP.
L'agente non chiama i tool. Controlla che il nome dell'header sia esattamente X-API-Key e che la chiave appartenga allo stesso server MCP dell'URL, e scrivi una Server description precisa: Copilot Studio la usa per decidere quando chiamare il server. Dopo ogni modifica pubblica di nuovo l'agente; in una chat già aperta scrivi "start over" per passare alla nuova versione.
Prossimi passi
- Landing del connettore
- Collegare a Claude
- Collegare a ChatGPT
- Collegare a Cursor
- Collegare a Gemini
- Collegare a Meta Muse
Questa guida ti è stata utile?