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: fattly
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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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 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.
Connect MCP clients to 2,000+ AI models without managing provider API keys.
Plan, compare, price, generate, and recover AI video from compatible MCP clients.
Related MCP Servers
- 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.161206MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that enables AI assistants to generate images, video, and audio via the FATTLY API.171MIT
- AlicenseAqualityBmaintenanceEnables AI agents to run Flux image generation tasks, poll results, and check pricing through a single MCP server.551Apache 2.0
- AlicenseAqualityCmaintenanceEnables MCP-capable AI models to write, validate, and render Manic animations using the Manic platform's authoring guide and API, without any AI generation credits.519MIT
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