higgsfield-mcp

higgsfield-mcp

MCP server for Higgsfield AI that enables image and video generation using 16+ models through Claude, Cursor, or any MCP-compatible client.

Category
访问服务器

README

Higgsfield MCP

MCP server for Higgsfield AI — generate images and videos with 16+ models through Claude, Cursor, or any MCP-compatible client.

Models

Image

Model ID Key Features
Nano Banana 2 nano-banana-2 Fast, reference images (up to 16), 1k/2k/4k
Nano Banana 1 nano-banana-1 Reference images, multi-ref
Soul v2 soul-v2 Stylized, 720p/1080p/2k
OpenAI Hazel openai-hazel GPT-Image-1.5, low/medium/high/4k

Video

Model ID Key Features
Kling 3.0 kling3 Best quality, start/end frames, sound, 720p/1080p, std/pro
Kling 3.0 Omni FLF kling-o3-flf First/last frame control
Kling 2.6 kling2-6 Balanced quality/cost
Kling 2.5 Turbo kling2-5-turbo Unlimited plan credits
Kling 2.1 kling Budget option
Grok Video grok xAI video model
Wan 2.6 wan2-6 Open-source model
Wan 2.5 wan2-5-video 16:9 or 9:16 only
Seedance 1.5 seedance1-5 ByteDance latest
Seedance Pro seedance ByteDance pro
Veo 3 veo3 Google DeepMind
Sora 2 sora2-video OpenAI, 4/8/12s durations
Image2Video image2video Requires input image

Tools

Tool Description
higgsfield_generate_image Generate images (returns job_id)
higgsfield_generate_video Generate videos (returns job_id)
higgsfield_wait_for_job Poll job(s) until complete, return result URLs
higgsfield_get_job Check single job status (no polling)
higgsfield_list_jobs List recent jobs with status and URLs
higgsfield_cancel_job Cancel a running job
higgsfield_check_cost Dry-run cost estimate for image generation
higgsfield_get_credits Account balance and plan info
higgsfield_list_models List all models with supported parameters
higgsfield_video_pricing Static pricing reference
higgsfield_browser_status Check Helm daemon connection
higgsfield_refresh_token Manually set JWT token
higgsfield_refresh_credentials Update Clerk session cookies for auto-refresh

Prerequisites

  • Bun runtime
  • A Higgsfield AI account (with credits)
  • Helm daemon running with Chrome extension — used to get auth tokens from your browser session
  • (Optional) curl-impersonate — improves reliability for GET requests. Set CURL_IMPERSONATE_BIN env var if the binary isn't in PATH. Falls back to native fetch if not installed.

Setup

# Clone
git clone https://github.com/jfikrat/higgsfield-mcp.git
cd higgsfield-mcp

# Install dependencies
bun install

# Run the server
bun run src/index.ts

Claude Code / Claude Desktop

Add to your MCP config (~/.claude/claude_desktop_config.json or MCP settings):

{
  "mcpServers": {
    "higgsfield": {
      "command": "bun",
      "args": ["run", "/path/to/higgsfield-mcp/src/index.ts"]
    }
  }
}

Authentication

The server authenticates via Clerk session tokens from your Higgsfield browser session. There are three methods (tried in order):

  1. Auto-refresh — Clerk API refresh using saved session cookies (preferred)
  2. Helm browser bridge — Extracts token from your logged-in Chrome session via Helm daemon
  3. Manual — Paste a JWT token via higgsfield_refresh_token

First-time setup:

  1. Log in to higgsfield.ai in Chrome
  2. Make sure the Helm daemon is running (systemctl --user start helm-daemon)
  3. Use higgsfield_browser_status to verify the connection
  4. The server will auto-extract tokens from your browser session

If auto-refresh stops working (tokens expire ~every 7 days):

  1. Open Chrome DevTools on higgsfield.ai
  2. Copy cookies from the clerk.higgsfield.ai domain
  3. Run higgsfield_refresh_credentials with the cookie string

Settings are stored at ~/.config/higgsfield-mcp/settings.json (permissions: 600).

Architecture

src/
├── index.ts          # MCP server entry point
├── models.ts         # Model metadata, validation, param builders
├── api.ts            # HTTP client (GET/POST/DELETE)
├── auth.ts           # Token management (Clerk refresh + browser fallback)
├── browser-post.ts   # Helm daemon bridge for browser-based POST
├── curl-fetch.ts     # curl-impersonate wrapper with native fallback
├── config.ts         # Secure settings storage (~/.config/higgsfield-mcp/)
├── tracker.ts        # Generation gallery tracker
└── tools/
    ├── account.ts    # Account, credits, model listing tools
    ├── image.ts      # Image generation tools
    └── video.ts      # Video generation + job polling tools

How It Works

Higgsfield uses DataDome bot protection that blocks non-browser POST requests. This server handles it with a two-layer approach:

  • GET/DELETE requests go through curl-impersonate (or native fetch as fallback) with browser-like TLS fingerprints
  • POST requests are routed through the Helm daemon, which executes fetch() inside your actual Chrome tab on higgsfield.ai — DataDome sees a real browser

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选