← Back to directory
P

PiAPI MCP Server

Community
Generate media content directly from Claude or any MCP-compatible app
GitHub source repository ↗
★ 74 Stars Category · Other Popular Source revision 86240f5a1b9c
48FMRS · D
Reliability
8/20
Security and permissions
8/20
Maintenance
10/20
Documentation
12/20
Setup experience
10/20

This server integrates multiple media generation capabilities via MCP, offering a rich feature set but with potential timeout issues and reliance on a third-party service. It is suitable for users who do not require real-time generation.

Read the FMRS scoring method →

PiAPI MCP Server is a TypeScript implementation of an MCP server that integrates with PiAPI's API, enabling users to generate images, videos, music, and 3D models using models like Midjourney, Flux, Kling, Luma, Udio, Suno, and Trellis directly from Claude or other MCP-compatible applications.

Tools

piapi_qubico_flux1_schnell_txt2img
Generate images from text quickly using Flux
piapi_midjourney_imagine
Generate images using Midjourney
piapi_kling_video_generation
Generate videos and effects using Kling
piapi_luma_dream_machine
Generate videos using Luma
piapi_suno_music_generation
Generate music using Suno
piapi_trellis_3d_model
Generate 3D models from images using Trellis

Setup

Clone the repository, install dependencies, build the project, configure MCP settings in Claude Desktop or Cursor, and set the PIAPI_API_KEY environment variable to your PiAPI API key.

claude_desktop_config.json
{
  "mcpServers": {
    "piapi": {
      "command": "node",
      "args": ["/absolute/path/to/piapi-mcp-server/dist/index.js"],
      "env": {
        "PIAPI_API_KEY": "your_api_key_here"
      }
    }
  }
}

Fit and risk

Best for

  • Creative professionals who need to generate various media quickly
  • Developers who want to integrate media generation into automated workflows
  • Users of Claude Desktop or Cursor who need media generation capabilities

Not for

  • Users who require instant results due to potential timeouts
  • Those needing a solution with a stable, guaranteed third-party service

Required permissions

  • Requires a valid PiAPI API key
  • Sends requests to PiAPI remote servers
  • May require local TypeScript compilation

Risks and side effects

  • Media generation can be time-consuming and may exceed client timeouts
  • Sharing your API key with others may lead to misuse
  • Dependence on PiAPI service availability and reliability

Troubleshooting

  1. Ensure Node.js version is 16.x or higher
  2. Check that the API key is correctly set
  3. If generation times out, consider using MCP Inspector with increased timeout
  4. Check logs for compilation errors

Use cases

Generate images, videos, music, and other media directly in conversations
Quickly generate visual assets for creative workflows
Generate 3D models for design or game development

Supported clients

Claude DesktopFull support
CursorFull support