flatkey-mcp
Click on "Deploy 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., "@flatkey-mcpgenerate an image of a cat wearing a hat"
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.
Flatkey MCP
Independently maintained by mguozhen for Flatkey API users. This is not yet a
flatkey-aiorganization release.
Use Flatkey from any MCP-compatible AI client. The server lists the models enabled for your Flatkey account, checks credits and status, and can generate text, images, video, speech, sound effects, and music.
Each generation tool is explicitly marked as credit-consuming so compatible clients can ask for confirmation before a paid request is sent.
Install
You need Node.js 20+ and a Flatkey API key from flatkey.ai/keys.
Codex
codex mcp add flatkey \
--env FLATKEY_API_KEY=YOUR_FLATKEY_API_KEY \
-- npx -y @mguozhen/flatkey-mcp@1.0.0Claude Code
claude mcp add --transport stdio flatkey \
--env FLATKEY_API_KEY=YOUR_FLATKEY_API_KEY \
-- npx -y @mguozhen/flatkey-mcp@1.0.0Generic MCP JSON
{
"mcpServers": {
"flatkey": {
"command": "npx",
"args": ["-y", "@mguozhen/flatkey-mcp@1.0.0"],
"env": {
"FLATKEY_API_KEY": "YOUR_FLATKEY_API_KEY"
}
}
}
}Keep your API key out of source control and public support requests.
Related MCP server: media-gen-mcp
Tools
Tool | What it does | Credits |
| Lists models enabled for the account, optionally by type | No |
| Shows remaining credit balance | No |
| Shows account/service usage status | No |
| Generates text with a selected Flatkey model | Yes |
| Creates an image | Yes |
| Creates a video request | Yes |
| Creates text-to-speech audio | Yes |
| Creates a sound effect | Yes |
| Creates music | Yes |
Call flatkey_list_models before selecting a model. The available inventory can differ by account.
Configuration
Variable | Required | Default | Purpose |
| Yes | — | API key used only to call Flatkey |
| No |
| Gateway override for development/testing |
| No |
| Model registry override for development/testing |
Development
npm install
npm test
npm run lint
npm run pack:checkRoutine tests use a mocked gateway; they do not spend Flatkey credits.
Security
The MCP server receives the API key only through
FLATKEY_API_KEY; it is never accepted as a tool argument.Tool errors are sanitized and never include an Authorization header.
The generation tools can consume credits and are marked as destructive/paid actions for client confirmation.
Catalog metadata
server.json is the canonical manifest for the Official MCP Registry and compatible catalogs. CATALOG_COPY.md contains the listing copy. Do not submit the manifest until @mguozhen/flatkey-mcp@1.0.0 and the mguozhen/flatkey-mcp repository are public: registries validate that install target.
This server cannot be deployed
Maintenance
Related MCP Connectors
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
Generate AI images and videos from any compatible MCP client.
MCP server for Pixapi: check live credit pricing and balance, then generate images and video.
Connect MCP clients to 2,000+ AI models without managing provider API keys.
Related MCP Servers
- AlicenseAqualityAmaintenanceGenerate AI images, video, voiceovers and music from Claude, Cursor or VS Code through 50+ models (Veo 3.1, Kling 3, Seedance, Nano Banana, GPT Image, ElevenLabs). Upload photos for edits and image-to-video. Tools are annotated (read-only vs. credit-spending); failed generations are refunded. Local via npx or hosted with OAuth at fattly.app.65 npmMIT
- FlicenseNot gradedqualityBmaintenanceEnables AI clients like Claude and ChatGPT to generate images and videos, animate images, create lip-synced videos, list TTS voices, and manage media via remote MCP tools.-
- AlicenseNot gradedqualityCmaintenanceEnables MCP-compatible clients to generate and upscale AI images, videos, music, and sound effects, manage generation jobs, access model catalogs, and track credits.2MIT
- AlicenseAqualityCmaintenanceEnables MCP-compatible clients to generate images and videos, and to apply 20+ image editing features such as background removal, inpainting, object eraser, relight, and virtual try-on using ImageAT account credits.438 npmMIT