/ Directory / Playground / PiAPI MCP
● Community apinetwork ⚡ Instant

PiAPI MCP

by apinetwork · apinetwork/piapi-mcp-server

Generate media with Midjourney/Flux/Kling/LumaLabs/Udio/Trellis directly from Claude.

Generate media with Midjourney/Flux/Kling/LumaLabs/Udio/Trellis directly from Claude.

Live Demo

What it looks like in practice

piapi-mcp-server.replay ▶ ready
0/0

Install

Pick your client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "piapi-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "piapi-mcp-server"
      ]
    }
  }
}

Open Claude Desktop → Settings → Developer → Edit Config. Restart after saving.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "piapi-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "piapi-mcp-server"
      ]
    }
  }
}

Cursor uses the same mcpServers schema as Claude Desktop. Project config wins over global.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "piapi-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "piapi-mcp-server"
      ]
    }
  }
}

Click the MCP Servers icon in the Cline sidebar, then "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "piapi-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "piapi-mcp-server"
      ]
    }
  }
}

Same shape as Claude Desktop. Restart Windsurf to pick up changes.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "piapi-mcp-server",
      "command": "npx",
      "args": [
        "-y",
        "piapi-mcp-server"
      ]
    }
  ]
}

Continue uses an array of server objects rather than a map.

~/.config/zed/settings.json
{
  "context_servers": {
    "piapi-mcp-server": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "piapi-mcp-server"
        ]
      }
    }
  }
}

Add to context_servers. Zed hot-reloads on save.

claude mcp add piapi-mcp-server -- npx -y piapi-mcp-server

One-liner. Verify with claude mcp list. Remove with claude mcp remove.

Use Cases

Real-world ways to use PiAPI MCP

Get started with PiAPI MCP

When to use: When you want to bring PiAPI MCP into your Claude workflow.

Flow
  1. Install the MCP server in your client (see Install tab).
  2. Authenticate or configure required tokens.
  3. Ask Claude to use the new tools.
    Use PiAPI MCP to help me with a task.✓ Copied

Outcome: Claude can interact with PiAPI MCP directly from your IDE.

More

Resources

📖 Read the official README on GitHub

🐙 Browse open issues

🔍 Browse all 400+ MCP servers and Skills