Back to MCP Servers
🔌

apinetwork/piapi-mcp-server

MITAPI key required

📇 ☁️ PiAPI MCP server makes users able to generate media content with Midjourney/Flux/Kling/Hunyuan/Udio/Trellis directly from Claude or any other MCP-compatible apps.

TypeScriptAPIs

Install

npx -y -y @smithery/cli

Required environment variables

PIAPI_API_KEYSet in your MCP config

claude_desktop_config.json

claude_desktop_config.json
{
  "mcpServers": {
    "apinetwork-piapi-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "-y",
        "@smithery/cli"
      ],
      "env": {
        "PIAPI_API_KEY": "<YOUR_PIAPI_API_KEY>"
      }
    }
  }
}

Add this to your Claude Desktop config file. Find it at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS.