flatkey-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., "@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: Aetherwave Studio
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceEnables AI-powered image and video generation using Higgsfield AI models through MCP-compatible clients like Claude Desktop and Perplexity.331MIT
- AlicenseAqualityBmaintenanceOne MCP server for music, image, video, and audio generation across Suno, Grok Imagine, Seedance, Kling, Hailuo, Wan, VEO, Ideogram, and GPT Image 2. Generate, edit, upscale, reframe, and master through one API key and one credit pool.16515MIT
- Flicense-qualityCmaintenanceMCP server that enables AI assistants to generate images, video, and audio via the FATTLY API.
- AlicenseAqualityAmaintenanceEnables generating game-ready 3D models, images, and animations from any MCP client via PicoBerry's multi-engine API.1396MIT
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for Flux AI image generation
MCP server for Kling AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/mguozhen/flatkey-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server