TypeScript MCP server that bridges PiAPI’s media-generation endpoints (Midjourney, Flux, Luma, Kling, Suno, etc.) to any MCP-compatible client such as Claude Desktop or Cursor.
https://github.com/apinetwork/piapi-mcp-serverStop context-switching between your development environment and separate AI media generation tools. This MCP server bridges PiAPI's comprehensive media generation APIs directly into Claude Desktop and Cursor, giving you access to Midjourney, Flux, Kling, Luma, Suno, and more without leaving your workflow.
You're building applications that need AI-generated content, but integrating with multiple media generation APIs is a pain. Each service has different authentication, rate limits, response formats, and quirks. You end up with bloated codebases managing different SDK implementations, or you're constantly switching between tools to generate assets.
This MCP server consolidates everything behind one clean interface. Instead of managing separate integrations for:
You get one TypeScript server that handles all of them through MCP.
In Claude Desktop: Type "generate a cyberpunk cityscape" and get Midjourney results directly in your conversation. No API calls to write, no separate tools to open.
In Cursor: Ask your AI coding assistant to generate placeholder images, concept art, or demo videos while you're prototyping. The media appears inline with your development workflow.
For Client Work: Generate multiple variations of logos, mockups, or content directly during client calls without switching applications.
Rapid Prototyping: Building a photo editing app? Generate test images with Flux in different styles without writing integration code first.
Content Pipeline: Creating a social media scheduler? Generate background music with Suno and accompanying visuals with Kling for your demo posts.
Client Presentations: Need concept art for a gaming project? Generate 3D models with Trellis and cinematic videos with Luma directly in your design review session.
Documentation: Writing technical docs that need visual examples? Generate diagrams and illustrations on-demand without leaving your documentation workflow.
git clone https://github.com/apinetwork/piapi-mcp-server
cd piapi-mcp-server
npm install && npm run build
Add to your Claude Desktop config:
{
"mcpServers": {
"piapi": {
"command": "node",
"args": ["/path/to/piapi-mcp-server/dist/index.js"],
"env": { "PIAPI_API_KEY": "your_key_here" }
}
}
}
Restart Claude. That's it. You now have access to enterprise-grade media generation APIs through natural language requests.
The server handles all the complexity of different API formats, authentication schemes, and response handling. You focus on building your application, not managing media generation infrastructure.
Get your PiAPI key at piapi.ai and start generating professional AI media directly in your development environment.