drio
Open app

piapi-mcp-server

Source

Mirror of

Catalog onlyCatalog onlySTDIO

Overview

piapi-mcp-server is a TypeScript implementation of a Model Context Protocol (MCP) server that integrates with PiAPI's API, allowing users to generate media content using various AI tools directly from MCP-compatible applications.

To use piapi-mcp-server, clone the repository, install the dependencies, set up your PiAPI API key in a .env file, and run the server. Connect it to compatible applications like Claude Desktop by configuring the appropriate settings.

  • Flux Image generation from text descriptions - Midjourney Image generation - Kling video generation - Luma Dream Machine video generation - AI song generation with Suno/Udio - 3D model generation with Trellis - Workflow planning inside LLMs
  1. Generating images from text prompts for creative projects.
  2. Creating videos using AI tools for marketing or educational content.
  3. Developing interactive applications that utilize AI-generated media.

Add to your AI client

Use these steps to connect piapi-mcp-server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "apinetwork-piapi-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-apinetwork-piapi-mcp-server-mcp-mirror"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "apinetwork-piapi-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-apinetwork-piapi-mcp-server-mcp-mirror"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "apinetwork-piapi-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-apinetwork-piapi-mcp-server-mcp-mirror"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "apinetwork-piapi-mcp-server-mcp-mirror": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-apinetwork-piapi-mcp-server-mcp-mirror"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "apinetwork-piapi-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-apinetwork-piapi-mcp-server-mcp-mirror"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "apinetwork-piapi-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-apinetwork-piapi-mcp-server-mcp-mirror"
      ]
    }
  }
}

FAQ

What is required to run piapi-mcp-server?

You need Node.js 16.x or higher, npm or yarn, and a PiAPI API key.

Is there a graphical interface for piapi-mcp-server?

No, it is primarily a server-side application that integrates with other MCP-compatible applications.

Can I use piapi-mcp-server for commercial purposes?

Yes, as long as you comply with the licensing terms.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1167,"uuid":"b36d996d-e2c5-4c75-bd30-81a3471a3cba","name":"apinetwork_piapi-mcp-server","title":"piapi-mcp-server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"$D2025-01-28T02:35:58.820Z","updated_at":"$D2025-02-23T07:20:29.412Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"piapi,mcp-server,media-generation","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/apinetwork_piapi-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/70db751106f72447c41cf1e22e7f55f387bbb1f94df423912248bbbc9d3e70b9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576562736974652d70696170692e61692d626c75653f7374796c653d666c61742d737175617265266c6f676f3d696e7465726e65742d6578706c6f726572","type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]