flatkey-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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: Korpi API MCP server
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
Generate AI video, images and audio, and browse your history, from any MCP client.
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.
Generate images, video, audio and short films with 140+ AI models from any MCP client.
Related MCP Servers
- 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.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients such as Claude and Cursor to list available AI models, generate video, image, and text outputs, and check video job status through a single prepaid API key.53 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to generate images and videos, synthesize speech, and clone or design voices through integrated AI APIs.549 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to generate images and videos, synthesize speech, clone voices, and create custom voices through AI APIs.549 npmMIT