Logo Higgsfield MCP Unified

Higgsfield MCP Unified

Cộng đồng
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.

Nhà phát hànhHikhakk
Kho mãhiggsfield-mcp-unified
Ngôn ngữPython
Bản fork
25
Sao
98
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Higgsfield MCP Unified cung cấp các chức năng MCP cho các ứng dụng khách AI và tác nhân AI tương thích.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Mẫu cấu hình có thể sao chép ngay

    Dùng các đoạn cấu hình mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Mức độ quan tâm của cộng đồng đến kho mã

    98 sao và 25 bản fork từ kho mã được liên kết.

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.

Cài đặt

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

Dùng MCP Higgsfield MCP Unified với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Higgsfield MCP Unified, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Thiết lập trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Thiết lập trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh thiết lập trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Để tiến trình tiếp tục chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Để tiến trình tiếp tục chạy trong cửa sổ Terminal khi bạn dùng các công cụ MCP.
3

Thêm Higgsfield MCP Unified làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Higgsfield MCP Unified.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "higgsfield-mcp-unified": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Higgsfield MCP Unified, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Higgsfield MCP Unified.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện trên TypingMind dùng các công cụ MCP đã bật với mô hình AI đã chọn
Bạn có thể dùng Higgsfield MCP Unified giúp tôi làm việc này không?
Higgsfield MCP Unified
Được. Tôi đọc rồi.
Đây là kết quả tôi tìm được bằng Higgsfield MCP Unified.

Câu hỏi thường gặp

Máy chủ MCP Higgsfield MCP Unified dùng để làm gì?

Higgsfield MCP Unified là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Higgsfield MCP Unified với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Higgsfield MCP Unified với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Higgsfield MCP Unified với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Higgsfield MCP Unified, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Higgsfield MCP Unified với TypingMind?

Higgsfield MCP Unified hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Higgsfield MCP Unified cung cấp những công cụ nào trong TypingMind?

Higgsfield MCP Unified cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Higgsfield MCP Unified không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Higgsfield MCP Unified yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇