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.

What this does

apinetwork/piapi-mcp-server exposes a set of tools to Claude over the Model Context Protocol. After you add it to claude_desktop_config.json (snippet above) and restart Claude Desktop, those tools become callable inside any conversation. That makes it useful when you want Claude to reach into external HTTP APIs without copy-pasting context every turn.

Requirements

This server needs the following environment variables to be set before it can run:

PIAPI_API_KEY

Set these via the env object in your MCP config (see claude_desktop_config.json snippet above).

Common use cases

  • Call REST or GraphQL endpoints against an authenticated upstream service
  • Translate between Claude's natural-language requests and a structured API
  • Compose several API calls in a single Claude turn (read user → fetch order → annotate)