PiAPI-MCP Server
piapi-mcp-server
A TypeScript implementation of a Model Context Protocol (MCP) server that integrates with PiAPI's API. PiAPI makes user able to generate media content with Midjourney/Flux/Kling/LumaLabs/Udio/Chrip/Trellis directly from Claude or any other MCP-compatible apps.
<a href="https://glama.ai/mcp/servers/ywvke8xruo"><img width="380" height="200" src="https://glama.ai/mcp/servers/ywvke8xruo/badge" alt="PiAPI-Server MCP server" /></a>
Features (more coming soon)
- Flux Image generation from text descriptions
- Flux Image generation with image prompt
- Midjourney Image generation
- Kling video generation
- Luma Dream Machine video generation
- Suno/Udio ai song generation
- Trellis 3D model generation
- Workflow planning inside LLMs
Working with Claude Desktop
Prerequisites
- Node.js 16.x or higher
- npm or yarn
- A PiAPI API key (get one at piapi.ai)
Installation
- Clone the repository:
- Install dependencies:
- Create a
.env
file in the project root:
- Build the project:
Usage
Running the Server
Connecting to Claude Desktop
Add this to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json
on macOS or %APPDATA%\Claude\claude_desktop_config.json
on Windows):
Development
Project Structure
License
MIT
You must be authenticated.
A TypeScript-based Model Context Protocol (MCP) server enabling integration with PiAPI for media content generation using platforms like Midjourney, Flux, and others through MCP-compatible applications.