[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [Hugging Face model search](https://spiral.ai/integrations/n8n/hugging-face-model-search)

# How to Use Hugging Face model search in n8n

Find model repositories on Hugging Face and compare their metadata, downloads, and likes. Use it to shortlist models for a task before examining a particular repository.

|  |  |
| --- | --- |
| Model | Hugging Face model search |
| Available through | Alexandria |
| Category | Developer |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with Hugging Face model search in n8n

- Each Monday, use Hugging Face model search to list the ten most downloaded sentence-transformers models for sentence similarity and report changes in the shortlist since the previous check.
- Every Monday at 9am: use Hugging Face model search to look this up and give me the result as a table.
- Pull the latest numbers from Hugging Face model search and tell me what changed since last week.
- Check Hugging Face model search and summarize what you find in three bullet points.
- Pull the newest data from Hugging Face model search and give me the result as a table.

## How to set up Hugging Face model search in n8n

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send n8n this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run Hugging Face model search in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Hugging Face model search, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Hugging Face model search**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "huggingface-co/hub/models",
    "input": {
      "sort": "downloads"
    }
  }'
```

Then paste one of the prompts above: n8n finds Hugging Face model search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## Hugging Face model search tools and prices

- [Hugging Face · Models](https://spiral.ai/tools/alexandria/huggingface-co/hub/models) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| sort | downloads, likes, trending, last_modified, created | downloads | Sort key; always descending. |
| tags |  | — | Additional Hub tag filters, e.g. `arxiv:2312.15503`. |
| task |  | — | Pipeline tag, e.g. `text-generation`, `text-classification`, `automatic-speech-recognition`. |
| limit | 1 to 100 | 20 | limit |
| author |  | — | Owner user or organization, e.g. `openai`. |
| cursor |  | — | Opaque `next_cursor` from the previous page. |

## What can you do with Hugging Face model search in n8n?

Keep a recurring review of selected Hugging Face repositories ready for your team. A scheduled agent can compare returned metadata and card content with previous checks and summarize changes.

### Prepare a repository license review

Shortlist models and datasets, collect their declared license metadata, and read their cards for the accompanying usage statements. Produce a review table with links to the original repositories.

### Plan a model evaluation

Find candidate models and evaluation datasets, inspect their repository metadata, and extract documented tasks and limitations from their cards. Turn the findings into a proposed evaluation shortlist.

### Build an internal ML catalog

Discover repositories from selected public organizations, inspect known model and dataset records, and add card summaries to a searchable internal catalog.

### Check documentation before adoption

Find relevant model and dataset repositories, inspect their metadata, and read their cards. Build a checklist of documented uses, citations, and limitations that still need review.

### Choose a model for a project

Search for models suited to the project's task, inspect each candidate's task and library information, and summarize the limitations documented in its card.

### Compare repository interest

Compare downloads and likes across shortlisted repositories. Keep model and dataset download comparisons separate because Hugging Face counts them differently.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## Hugging Face model search in other agents

- [Amp](https://spiral.ai/integrations/amp/hugging-face-model-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/hugging-face-model-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/hugging-face-model-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/hugging-face-model-search)
- [Cline](https://spiral.ai/integrations/cline/hugging-face-model-search)
- [Codex](https://spiral.ai/integrations/codex/hugging-face-model-search)
- [Cursor](https://spiral.ai/integrations/cursor/hugging-face-model-search)
- [Devin](https://spiral.ai/integrations/devin/hugging-face-model-search)
- [dots](https://spiral.ai/integrations/dots/hugging-face-model-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/hugging-face-model-search)
- [Gemini](https://spiral.ai/integrations/gemini/hugging-face-model-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/hugging-face-model-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/hugging-face-model-search)
- [goose](https://spiral.ai/integrations/goose/hugging-face-model-search)
- [Grok](https://spiral.ai/integrations/grok/hugging-face-model-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/hugging-face-model-search)
- [Hermes](https://spiral.ai/integrations/hermes/hugging-face-model-search)
- [Instinct](https://spiral.ai/integrations/instinct/hugging-face-model-search)
- [Manus](https://spiral.ai/integrations/manus/hugging-face-model-search)
- [Muse](https://spiral.ai/integrations/muse/hugging-face-model-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/hugging-face-model-search)
- [Notion](https://spiral.ai/integrations/notion/hugging-face-model-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/hugging-face-model-search)
- [opencode](https://spiral.ai/integrations/opencode/hugging-face-model-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/hugging-face-model-search)
- [Raycast](https://spiral.ai/integrations/raycast/hugging-face-model-search)
- [VS Code](https://spiral.ai/integrations/vscode/hugging-face-model-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/hugging-face-model-search)
- [Zapier](https://spiral.ai/integrations/zapier/hugging-face-model-search)

## More n8n guides

- [Hugging Face model details](https://spiral.ai/integrations/n8n/hugging-face-model-details)
- [Hugging Face repository card](https://spiral.ai/integrations/n8n/hugging-face-repository-card)
- [Hugging Face dataset search](https://spiral.ai/integrations/n8n/hugging-face-dataset-search)
- [IBM Cloud catalog revision](https://spiral.ai/integrations/n8n/ibm-cloud-catalog-revision)
- [Hugging Face dataset details](https://spiral.ai/integrations/n8n/hugging-face-dataset-details)
- [IBM Cloud catalog search](https://spiral.ai/integrations/n8n/ibm-cloud-catalog-search)

## Questions about Hugging Face model search in n8n

**Can n8n use Hugging Face model search?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Hugging Face model search like any built-in tool.

**How much does Hugging Face model search cost in n8n?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need an Alexandria account to use Hugging Face model search in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs Hugging Face model search on its own Alexandria account.

**How long does it take to set up Hugging Face model search in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while Hugging Face model search runs?**

Hugging Face model search runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**Does this cover models and datasets outside Hugging Face?**

The data comes from repositories on Hugging Face Hub. A model or dataset hosted only elsewhere is outside this repository coverage.

**How complete are repository records?**

Many Hub metadata attributes are optional, and search listings contain fewer attributes than individual repository responses. Model cards are recommended to document training, evaluations, and limitations, but that recommendation does not establish that every card includes them.

**What period do download counts cover?**

The standard Hub downloads attribute covers the last 30 days for models and datasets. Cumulative downloads are defined separately.

**Are download counts counts of people?**

Model downloads count requests to designated files, including GET and HEAD requests. Dataset downloads combine files fetched from one repository within a five-minute window for the same IP-based user, so the two totals use different counting rules.

**Where do license and language labels come from?**

Hugging Face uses repository card metadata for these labels. Dataset cards can declare license, language, and size, while model cards also carry publisher-supplied metadata.

