@runapi.ai/flux-kontext-mcp
Click 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-kontext-mcpgenerate an image of a cat in space using flux-kontext-max"
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-kontext-mcp
RunAPI MCP server for the Flux Kontext model line. Create image tasks, poll their status, and check pricing through a single RunAPI API key.
Tools
text_to_image— create a Flux Kontext task and (optionally) poll until it reaches a terminal status. Returns the task id, status, output URLs, and a price snapshot. Models:flux-kontext-max,flux-kontext-pro.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: Image Generation MCP 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-kontext-mcpAdd it to an MCP client (see examples/ for per-client configs):
{
"mcpServers": {
"flux-kontext": {
"command": "npx",
"args": ["-y", "@runapi.ai/flux-kontext-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-kontext-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server