Logo di Higgsfield MCP Unified

Higgsfield MCP Unified

Community
Hikhakk

Local-first MCP server for the Higgsfield AI API: 85 typed image & video models (Seedance 2.5, Kling 3.0, Wan 3, Genjutsu, Soul, Cinema Studio), webhooks, cost estimates, Soul ID training. Opt-in web backend for Sora 2, Veo 3, Nano Banana.

Pubblicato daHikhakk
Repositoryhiggsfield-mcp-unified
LinguaPython
Fork
25
Stelle
98
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Higgsfield MCP Unified mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • Strumenti disponibili: 0

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni se il server li fornisce.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse della comunità open source

    Stelle: 98; fork: 25 (repository collegato).

higgsfield-mcp-unified

A local-first Model Context Protocol server for Higgsfield AI. It puts 85 models from the official Higgsfield API: Seedance 2.5, Kling 3.0 / O3 / Omni, Wan 3, Genjutsu, Cinema Studio 4, Soul, Marketing Studio, Recraft, Ideogram and more. Soul character training, webhooks, cost estimates and preset catalogs sit behind the same typed tool surface, which any MCP client (Claude Desktop, Claude Code, Cursor, …) can use. An opt-in experimental backend adds 34 consumer-app models such as Sora 2, Veo 3 and Nano Banana.

Status: alpha. The official-API path follows docs.higgsfield.ai and has been cross-checked against the open.higgsfield.ai console.

Why this over the hosted MCP

The official hosted MCP (mcp.higgsfield.ai) runs on Higgsfield's servers behind OAuth. This one runs on your machine with your API key, and adds:

  • The full API catalog, typed. Every documented endpoint has its parameters, enums, ranges and defaults, so the model picks valid values before spending credits.
  • Discovery that costs nothing. estimate_cost prices a request, while recommend_model, validate_params and preflight_check work without running a generation.
  • Structured output. Every tool returns a schema'd result (outputSchema + structuredContent), not an opaque blob.
  • Built-in reliability.
    • Every submit carries an idempotency key, so retries (backoff with jitter, plus a circuit breaker) never double-charge.
    • Errors come back as typed cases: auth, out of credits, concurrency limit, bot challenge, network.
  • Webhooks and every output type. It surfaces images, video, audio and the extra video/3D files (zip, mov, jsx, fbx, ply).

Install

The package is higgsfield-mcp-unified on PyPI, and its command is higgsfield-mcp. With uv there's nothing to install up front:

bash
uvx --from higgsfield-mcp-unified higgsfield-mcp     # starts the stdio MCP server

Or install it with pip:

bash
pip install higgsfield-mcp-unified
higgsfield-mcp

To run from source instead:

bash
git clone https://github.com/Hikhakk/higgsfield-mcp-unified
cd higgsfield-mcp-unified
uv sync
uv run higgsfield-mcp

Configure

Create an API key at open.higgsfield.ai → API keys, then set:

bash
export HIGGSFIELD_API_KEY=...        # key ID
export HIGGSFIELD_SECRET=...         # key secret

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json:

json
{
  "mcpServers": {
    "higgsfield": {
      "command": "uvx",
      "args": ["--from", "higgsfield-mcp-unified", "higgsfield-mcp"],
      "env": {
        "HIGGSFIELD_API_KEY": "...",
        "HIGGSFIELD_SECRET": "..."
      }
    }
  }
}

Claude Code

bash
claude mcp add higgsfield \
  -e HIGGSFIELD_API_KEY=... -e HIGGSFIELD_SECRET=... \
  -- uvx --from higgsfield-mcp-unified higgsfield-mcp

Cursor and other stdio clients use the same command; see examples/. If you run from source, use uv run --directory /path/to/higgsfield-mcp-unified higgsfield-mcp as the command.

First run

  1. preflight_check() confirms that credentials are configured.
  2. estimate_cost("higgsfield-ai/soul/v2/standard", {"prompt": "…"}) prices a request for free.
  3. generate_image(...) returns a job_handle. Pass it to subscribe(job_handle) to wait for the output URLs.

Outputs are kept for at least 7 days, so download anything you want to keep.

Tools

ToolWhat it does
list_models(kind?, backend?, include_unverified?)The model registry: each model's supports (accepted params) and constraints (enums, ranges, defaults, required fields).
recommend_model(intent, kind?, top?)Ranks models for a described goal (local, no API call).
validate_params(model_id, params)Checks params against a model before submitting.
estimate_cost(model_id, params)Prices a request in credits + USD without submitting it.
preflight_check()Checks credentials and backend configuration without spending a generation.
generate_image(model_id, prompt?, …, extra_params?, webhook_url?)Text-to-image, image editing, Soul character generations, ads and character sheets.
generate_video(model_id, prompt?, image_url?, …, extra_params?, webhook_url?)Text-, image-, reference- and video-to-video, edits, extensions and motion transfer.
generate_batch(requests[])Submits many image/video jobs concurrently; one failure never sinks the rest.
get_status(job_handle) / subscribe(job_handle)Polls, or waits (2s → 10s backoff) until done. Returns images, video_url, audio_urls and artifacts.
cancel_job(job_handle)Cancels a job that is still queued (refunded).
upload_image(path | data_base64, mime?)Uploads a local image, WAV or MP4 and returns a URL to pass as image_url / audio_url / video_url.
list_model_presets(model_id, search?, size?, cursor?)Genjutsu Restyle styles, Marketing Studio Image presets and AI Influencer appearance options.
create_character(name, image_urls, model_version?) / get_character / list_characters / delete_characterTrains and manages Soul ID characters (v1 / v2 / cinema) for use as soul_id.
get_balance() / list_jobs() / list_soul_styles() / list_motions() / generate_speech_video(...)Account and legacy helpers on undocumented /v1 routes; best-effort.

Model-specific fields beyond the named arguments go in extra_params, for example image_urls, video_url, generate_audio, negative_prompt, preset_id or multi_prompt. Keys a model doesn't list in supports are dropped before the request is sent.

Webhooks

Pass webhook_url (public HTTPS, official models only), and Higgsfield POSTs the final result to that URL. It's sent as the documented hf_webhook query parameter.

Your receiver should expect:

  • Payload: {request_id, status, error, payload}, with the outputs under payload.
  • Duplicates: deliveries can repeat, so dedupe by request_id + status.
  • Retries: network errors and 5xx responses are retried for up to 2 hours.

get_status is the fallback if a delivery is lost. See Webhooks.

Resources & prompts

  • Resources:
    • higgsfield://models is the full catalog.
    • higgsfield://models/{kind} filters it by kind.
    • Clients can read these instead of calling list_models repeatedly.
  • Prompts: cinematic_shot, product_360, animate_portrait, action_sequence, b_roll. These are parameterized scaffolds for the generation tools.

Models

Run list_models() for the live catalog.

Official API (85, verified). The registry is generated from each model page on docs.higgsfield.ai, using its endpoint ID and complete JSON schema. It's then cross-checked against the open.higgsfield.ai console. Where the two sources disagree, the model's constraints say so.

Models
ImageSoul, Soul V2 (text- and image-to-image), Soul Cinema, AI Influencer, Ads Studio, Marketing Studio Image (2.0, Flare, Sunburst), Grok Image 2, Ideogram 4, Qwen Image 3, Recraft v4.1 (+ Pro, Utility), Z-Image Turbo
VideoSeedance 2.0 / 2.5, Kling 2.5 Turbo / 2.6 / 3.0 (std, pro, 4K, turbo) / O3 / Omni, Kling Motion Control 2.6 / 3.0, Wan 2.6 / 2.7 / 3.0 / 3.0 Prime, Happy Horse 1.0 / 1.1, Genjutsu (motion transfer, object swap, restyle), Cinema Studio 4.0, MiniMax Hailuo 2.3 / H3, LTX 2.5, PixVerse v6, Grok Video 1.5

Availability depends on your account; the console is the source of truth.

Web backend (34, opt-in). Sora 2, Veo 3 / 3.1, Nano Banana, OpenAI Hazel, Soul v2, Kling, Seedance, Wan, Grok and others, all from the consumer app. 16 of them are marked inferred: the slug is real, but the endpoint is a best guess. They're hidden unless you pass include_unverified=true.

Experimental web backend

Some models only exist in the consumer app at higgsfield.ai. To reach them:

bash
export HIGGSFIELD_ENABLE_WEB_BACKEND=1
export HIGGSFIELD_CLERK_CLIENT=...   # __client cookie from higgsfield.ai (rotates ~weekly)
# or, for one-shot tests only:
export HIGGSFIELD_JWT=...            # __session cookie (expires in ~1 minute)

This will break. fnf.higgsfield.ai is the consumer app's private backend, not a public API. It was integrated by reverse-engineering. Expect the following:

  • Auth churn. The session JWT lasts about 1 minute and is refreshed from the __client cookie. Clerk rotates that cookie roughly every week; when it does, paste a new one.
  • Bot protection. Cloudflare fingerprints TLS. Browser-impersonating TLS (curl_cffi) gets through today, but it's brittle.
  • Schema drift. Paths and body keys are undocumented and change without notice.
  • Probably against the terms of service. Review them before you enable this.

It's off by default. Without the flag, only the official API is used.

Development

bash
uv sync --extra dev
uv run --extra dev pytest -q
uv run --extra dev ruff check . && uv run --extra dev ruff format --check .
uv run --extra dev mypy src

Design specs and phased plans live in docs/superpowers/.

Contributing

PRs are welcome; see CONTRIBUTING.md. Merges to main require code-owner approval (@Hikhakk) and green CI.

Credits

This builds on two earlier community efforts:

License

MIT; see LICENSE.

Installazione

TypingMind
{
  "mcpServers": {
    "higgsfield-mcp-unified": {
      "command": "uvx",
      "args": [
        "higgsfield-mcp"
      ],
      "env": {
        "HIGGSFIELD_API_KEY": "<HIGGSFIELD_API_KEY>",
        "HIGGSFIELD_SECRET": "<HIGGSFIELD_SECRET>"
      }
    }
  }
}

Usa Higgsfield MCP Unified MCP con più modelli AI

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Higgsfield MCP Unified, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura connettore.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura connettore e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con l’opzione «Questo dispositivo» selezionata
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Higgsfield MCP Unified come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Higgsfield MCP Unified.
  4. Salva l'elenco dei server.
  5. Se vuoi verificare che il connettore sia ancora pronto, aggiorna la pagina.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "higgsfield-mcp-unified": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Higgsfield MCP Unified, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Higgsfield MCP Unified.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Higgsfield MCP Unified per aiutarmi con questa attività?
Higgsfield MCP Unified
Certo. L’ho letto.
Ecco cosa ho trovato con Higgsfield MCP Unified.

Domande frequenti

A cosa serve il server MCP Higgsfield MCP Unified?

Higgsfield MCP Unified è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare il server MCP Higgsfield MCP Unified con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Higgsfield MCP Unified con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Higgsfield MCP Unified con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Higgsfield MCP Unified, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego il server MCP Higgsfield MCP Unified a TypingMind?

Higgsfield MCP Unified funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre il server MCP Higgsfield MCP Unified in TypingMind?

Higgsfield MCP Unified mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare il server MCP Higgsfield MCP Unified?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Higgsfield MCP Unified richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇