flatkey-mcp

flatkey-mcp

Enables any MCP-compatible AI client to use the Flatkey API for generating text, images, video, speech, sound effects, and music, with credit consumption tracking.

Category
Visit Server

README

Flatkey MCP

Independently maintained by mguozhen for Flatkey API users. This is not yet a flatkey-ai organization 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.0

Claude Code

claude mcp add --transport stdio flatkey \
  --env FLATKEY_API_KEY=YOUR_FLATKEY_API_KEY \
  -- npx -y @mguozhen/flatkey-mcp@1.0.0

Generic 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.

Tools

Tool What it does Credits
flatkey_list_models Lists models enabled for the account, optionally by type No
flatkey_get_credits Shows remaining credit balance No
flatkey_get_status Shows account/service usage status No
flatkey_generate_text Generates text with a selected Flatkey model Yes
flatkey_generate_image Creates an image Yes
flatkey_generate_video Creates a video request Yes
flatkey_generate_speech Creates text-to-speech audio Yes
flatkey_generate_sound_effect Creates a sound effect Yes
flatkey_generate_music Creates music Yes

Call flatkey_list_models before selecting a model. The available inventory can differ by account.

Configuration

Variable Required Default Purpose
FLATKEY_API_KEY Yes API key used only to call Flatkey
FLATKEY_BASE_URL No https://router.flatkey.ai Gateway override for development/testing
FLATKEY_MODELS_BASE_URL No https://console.flatkey.ai Model registry override for development/testing

Development

npm install
npm test
npm run lint
npm run pack:check

Routine 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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured