Higgsfield AI MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Higgsfield AI MCP Server
A Model Context Protocol (MCP) server that provides access to Higgsfield AI's cinematic-grade image and video generation capabilities. Built with FastMCP.
š§ Recent Fix (Nov 2, 2025)
Video generation now works correctly! The generate_video function has been fixed to use the proper API format:
Added required
promptparameter (optional, auto-generated if not provided)Fixed API payload structure from
image_urltoinput_imagesarray formatAdded comprehensive documentation and examples
See HIGGSFIELD_VIDEO_GENERATION_GUIDE.md in the parent directory for detailed usage.
Related MCP server: TensorsLab MCP Server
Features
Text-to-Image Generation: Create high-quality images using the Soul model
Image-to-Video: Convert static images into cinematic 5-second videos with motion presets
Character Consistency: Create reusable character references for consistent appearance across generations
Style Presets: Browse and apply cinematic style presets
Motion Library: Access pre-designed motion effects for video generation
Installation
Prerequisites
Python 3.10 or higher
pip (Python package installer)
Higgsfield AI account with API credentials (Sign up)
Setup
Clone or download this repository
Install dependencies (choose one method):
Option A: Using pip (recommended for simplicity)
cd higgsfield_ai_mcp pip install -r requirements.txtOption B: Using Poetry
cd higgsfield_ai_mcp poetry installConfigure API credentials (choose one method):
Option A: Environment variables (recommended for .env file)
cp .env.example .envEdit
.envand add your Higgsfield AI credentials:HF_API_KEY=your-api-key-here HF_SECRET=your-secret-key-hereOption B: Command line arguments
Pass credentials directly when running the server:
python -m higgsfield_mcp.server --api-key YOUR_KEY --secret YOUR_SECRETGet your API keys from: https://cloud.higgsfield.ai/api-keys
Usage
Local Development & Testing
Test the server:
# Run directly with Python
python -m higgsfield_mcp.server
# Or with command line arguments
python -m higgsfield_mcp.server --api-key YOUR_KEY --secret YOUR_SECRET
# Run in development mode with auto-reload (if using Poetry)
poetry shell
fastmcp dev src/higgsfield_mcp/server.pyClaude Desktop Integration
Add this server to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
Method 1: Using Python directly with environment variables (recommended)
{
"mcpServers": {
"higgsfield": {
"command": "python",
"args": [
"-m",
"higgsfield_mcp.server"
],
"cwd": "/absolute/path/to/higgsfield_ai_mcp",
"env": {
"HF_API_KEY": "${HF_API_KEY}",
"HF_SECRET": "${HF_SECRET}"
}
}
}
}Method 2: Using command line arguments
{
"mcpServers": {
"higgsfield": {
"command": "python",
"args": [
"-m",
"higgsfield_mcp.server",
"--api-key",
"${HF_API_KEY}",
"--secret",
"${HF_SECRET}"
],
"cwd": "/absolute/path/to/higgsfield_ai_mcp"
}
}
}Method 3: Using Poetry (if you installed with Poetry)
{
"mcpServers": {
"higgsfield": {
"command": "/Users/YOUR_USERNAME/.local/bin/poetry",
"args": [
"run",
"python",
"-m",
"higgsfield_mcp.server"
],
"cwd": "/absolute/path/to/higgsfield_ai_mcp",
"env": {
"HF_API_KEY": "${HF_API_KEY}",
"HF_SECRET": "${HF_SECRET}"
}
}
}
}Notes:
Replace
/absolute/path/to/higgsfield_ai_mcpwith the actual path to this directoryFor Method 1 & 2, ensure
HF_API_KEYandHF_SECRETare set in your shell environmentFor Method 3 with Poetry, use the full path (no
~expansion)After adding the configuration, restart Claude Desktop
FastMCP Cloud Deployment
Deploy to FastMCP Cloud for remote access:
# Install FastMCP CLI
pip install fastmcp
# Deploy (requires FastMCP Cloud account)
fastmcp deploy src/higgsfield_mcp/server.pyAvailable Tools
generate_image
Generate high-quality images from text prompts.
Parameters:
prompt(required): Detailed text descriptionquality: "720p" or "1080p" (default)character_id: Optional character reference ID for consistencystyle_id: Optional style preset ID
Example:
Generate an image: "A woman with sharp eyes sitting on a minimalist bench in a desert garden, wearing a sand-colored suit, late afternoon sunlight"generate_video
Convert images to cinematic videos with motion effects.
Parameters:
image_url(required): Source image URL (must be publicly accessible via HTTPS)motion_id(required): Motion preset ID (browse withhiggsfield://motionsresource)prompt(optional): Description of the image/scene. Auto-generated if not provided.quality: "lite", "turbo", or "standard" (default)
Example:
generate_video(
image_url="https://cdn.example.com/beach-selfie.png",
motion_id="31177282-bde3-4870-b283-1135ca0a201a",
prompt="A woman taking a selfie at a beach construction site",
quality="turbo"
)Important Notes:
Image URL must be publicly accessible (Higgsfield servers need to download it)
Processing takes 20-60 seconds depending on quality
Poll
get_generation_statusevery 10 seconds to check completionResults are cached for 7 days
create_character
Create a reusable character reference for consistent generation.
Parameters:
name(required): Descriptive name for the characterimage_urls(required): List of 1-5 image URLs showing the face
Cost: 40 credits ($2.50)
get_generation_status
Check job status and retrieve results.
Parameters:
job_set_id(required): Job ID from generate_image/generate_video
Job Statuses:
queued: Waiting to startin_progress: Currently generatingcompleted: Done! Results availablefailed: Generation failednsfw: Content filter triggered
list_characters
List all your created character references with IDs and status.
Available Resources
Browse data sources using MCP resources:
higgsfield://styles: Available Soul image style presetshiggsfield://motions: Video motion presets for DoP modelhiggsfield://characters: Your created character references
Workflow Example
Browse available styles:
Access
higgsfield://stylesresource to see style options
Generate an image:
generate_image( prompt="Professional headshot in modern office", quality="1080p", style_id="1cb4b936-77bf-4f9a-9039-f3d349a4cdbe" )ā Returns
job_set_idCheck status and get results:
get_generation_status(job_set_id="...")ā Returns download URLs when complete
Create character for consistency (optional):
create_character( name="Jane Doe", image_urls=["https://example.com/face1.jpg", "https://example.com/face2.jpg"] )ā Returns
character_idGenerate with character:
generate_image( prompt="Same person in a different scene", character_id="3eb3ad49-775d-40bd-b5e5-38b105108780" )Animate the result:
Browse
higgsfield://motionsfor motion presets
generate_video( image_url="https://result-from-step-5.jpg", motion_id="motion-preset-id", quality="standard" )
Pricing
Credits are charged when generation completes successfully (not on failures):
Image Generation (Soul):
720p: 1.5 credits ($0.09) per image
1080p: 3 credits ($0.19) per image
First 1000 generations: 1 credit ($0.06) for 1080p
Video Generation (DoP):
Lite: 2 credits ($0.125)
Turbo: 6.5 credits ($0.406) - 2x speed
Standard: 9 credits ($0.563) - Highest quality
Character Creation: 40 credits ($2.50) one-time
Rate: $1 = 16 credits Add credits at: https://cloud.higgsfield.ai/credits
Troubleshooting
"Missing required environment variables"
Ensure
.envfile exists withHF_API_KEYandHF_SECRETOr set environment variables in your shell or Claude Desktop config
"401 Unauthorized"
Verify your API key and secret are correct
Check they haven't expired or been revoked
"402 Payment Required"
Add credits to your Higgsfield account
Server not appearing in Claude Desktop
Check the
cwdpath is absolute, not relativeVerify Poetry is installed and accessible
Restart Claude Desktop after config changes
Check Claude Desktop logs for errors
Generation stuck in "queued"
Wait a few seconds and poll again
Check your account has sufficient credits
During high load, jobs may take longer
Project Structure
mcp_creator/
āāā src/
ā āāā higgsfield_mcp/
ā āāā __init__.py
ā āāā server.py # FastMCP server with tools & resources
ā āāā client.py # Async Higgsfield API wrapper
āāā pyproject.toml # Poetry configuration
āāā .env.example # Credential template
āāā .env # Your credentials (gitignored)
āāā .gitignore
āāā README.mdDevelopment
Running Tests
poetry shell
fastmcp dev src/higgsfield_mcp/server.pyAdding New Tools
Edit src/higgsfield_mcp/server.py and add new @mcp.tool decorated functions.
Adding New API Methods
Edit src/higgsfield_mcp/client.py to add new API client methods.
Resources
License
MIT License - See LICENSE file for details
Contributing
Contributions welcome! Please open an issue or pull request.
Support
Higgsfield AI Support: https://cloud.higgsfield.ai/support
MCP Documentation: https://modelcontextprotocol.io
File issues: Create an issue in this repository
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate AI images and videos from your agent: list models, start jobs, and fetch the results.
Image and video AI tools and your own pipelines, run from any AI assistant.
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
Create images and videos from prompts, with options for image mixing, reference images, and start/ā¦
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to generate images and videos through natural language using ImaginePro's API. Supports text-to-image generation, video creation, image upscaling, variants, inpainting, and multi-modal generation with real-time progress tracking.849 npmMIT
- AlicenseBqualityDmaintenanceEnables AI-powered image and video generation through the TensorsLab API using models like SeeDream and SeeDance. It supports tasks such as creating high-resolution media from text prompts, image-to-video conversion, and monitoring generation status.9MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to generate, manage, and download AI-generated videos using OpenAI's Sora models, supporting text prompts, image-to-video, remixing, and more.9MIT
- AlicenseNot gradedqualityNot gradedmaintenanceGives AI assistants the ability to generate and iteratively refine images and videos with Google AI Studio models, including image creation/editing, Veo and Omni video generation, and async job tracking. Also lets them analyze existing media and list the models available with their API key.1ISC