@runapi.ai/flux-2-mcp
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@runapi.ai/flux-2-mcpcreate an image of a golden retriever playing in snow"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@runapi.ai/flux-2-mcp
RunAPI MCP server for the Flux 2 model line. Create tasks, poll their status, and check pricing through a single RunAPI API key.
Tools
remix_image— create a Flux 2 task (remix image) and (optionally) poll until it reaches a terminal status. Returns the task id, status, output URLs, and a price snapshot. Models:flux-2-flex-remix-image,flux-2-pro-remix-image,flux-2-flex-text-to-image,flux-2-pro-text-to-image.text_to_image— create a Flux 2 task (text to image) and (optionally) poll until it reaches a terminal status. Returns the task id, status, output URLs, and a price snapshot. Models:flux-2-flex-remix-image,flux-2-pro-remix-image,flux-2-flex-text-to-image,flux-2-pro-text-to-image.get_task— fetch the current status and latest payload for a task.check_pricing— look up pricing for a model in this line.
Related MCP server: Flux Schnell Server
Configuration
Set a RunAPI API key via the RUNAPI_API_KEY environment variable, or write
it to ~/.config/runapi/config.json:
mkdir -p ~/.config/runapi
echo '{"api_key":"YOUR_KEY"}' > ~/.config/runapi/config.jsonGet an API key at https://runapi.ai. Pricing is listed at https://runapi.ai/pricing.
Usage
Run the server over stdio:
npx -y @runapi.ai/flux-2-mcpAdd it to an MCP client (see examples/ for per-client configs):
{
"mcpServers": {
"flux-2": {
"command": "npx",
"args": ["-y", "@runapi.ai/flux-2-mcp"],
"env": { "RUNAPI_API_KEY": "${RUNAPI_API_KEY}" }
}
}
}License
Apache-2.0
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/runapi-ai/flux-2-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server