Piapi MCP Server logo

Piapi MCP Server

by apinetwork

Generate images, video, music, speech, and 3D models through PiAPI from MCP-compatible clients.

Install Piapi MCP Server

Run the project’s own setup commands, in order.

Setup steps from the project

apinetwork/piapi-mcp-server installs with its own commands rather than a config we can generate, so these are copied as-is. Run them in order in a terminal. Source: github.com

  1. 1. Install
    npx -y @smithery/cli install piapi-mcp-server --client claude
    
  2. 2. Install
    git clone https://github.com/apinetwork/piapi-mcp-server
    
  3. 3. Install
    cd piapi-mcp-server
    
  4. 4. Install
    2. Install dependencies:
    
  5. 5. Install
    npm install
    
  6. 6. Start the server
    3. Build the project:
    

Overview

apinetwork/piapi-mcp-server exposes PiAPI media-generation capabilities through the Model Context Protocol. It runs locally as a TypeScript and Node.js server, using a PiAPI API key to submit generation tasks for supported models and media types. The server can be configured with Claude Desktop or Cursor, and is suitable for agent workflows that need image, video, audio, speech, or 3D generation. Long-running video tasks may exceed Claude's timeout limits.

Use cases

  • Generate images from text or image prompts
  • Create videos through supported PiAPI models
  • Produce music or speech in an agent workflow
  • Generate Trellis 3D models from images
  • Test PiAPI MCP tools in Claude Desktop or Cursor

Key features

  • Flux image generation
  • Video generation with multiple PiAPI models
  • Suno and MMAudio music capabilities
  • Zero-shot text-to-speech generation
  • Trellis 3D model generation
  • Contract-backed MCP tool registration

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/24 checks healthy over the last 94d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8/22/2026 via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars76Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How Piapi MCP Server works

What apinetwork/piapi-mcp-server MCP server does

apinetwork/piapi-mcp-server MCP server connects MCP-compatible clients to PiAPI's media-generation API. It provides tools for creating several kinds of content, including images, videos, music, speech, and 3D models. The repository describes support for Flux image generation, Hunyuan, Skyreels, Wan, Kling, and Luma video generation, along with Suno music, MMAudio generation from video, zero-shot text-to-speech, and Trellis 3D model generation from an image.

The project also includes base image and base video toolkits. Midjourney's imagine capability is listed as implemented, while other Midjourney functions are not complete. Suno lyrics, Udio music and lyrics, and workflow planning are listed as unfinished.

How it works

The server is implemented in TypeScript and communicates with PiAPI using the PIAPI_API_KEY environment variable. MCP clients invoke the exposed tools, which submit requests to PiAPI for the selected model or task. The repository registers contract-backed tools using deterministic names based on a model and task type, while retaining hand-written convenience tools for selected workflows.

The contract-backed surface is generated from a committed catalog of PiAPI capabilities. A synchronization process compares that catalog with PiAPI Manager's versioned API contract and can report new APIs, deprecated APIs, parameter changes, and description changes. The sync process is separate from normal client use and includes offline tests and commands for creating or accepting a baseline.

Setup and configuration

To build apinetwork/piapi-mcp-server MCP server locally, use Node.js 16 or newer, clone the repository, install dependencies with npm or yarn, and run the project's build command. The build creates dist/index.js, which can then be registered as a local MCP process.

Claude Desktop and Cursor configurations shown by the project start Node with the built dist/index.js file and pass PIAPI_API_KEY through the server environment. The API key must be obtained from PiAPI. After changing a client configuration, restart or refresh the MCP entry as appropriate.

The repository also documents installation through Smithery for Claude Desktop. MCP Inspector can be used for local testing after setting the API key, with a configurable timeout for longer operations.

Tools and capabilities

Supported or listed capabilities include:

  • Generate images from text or image prompts with Flux.
  • Generate videos with Hunyuan, Skyreels, Wan, Kling, and Luma.
  • Generate music with Suno or create music from video with MMAudio.
  • Generate zero-shot speech and Trellis 3D models from images.
  • Use Midjourney's implemented imagine operation.
  • Access contract-backed tools for committed PiAPI model and task combinations.

Limitations and notes

apinetwork/piapi-mcp-server MCP server depends on a PiAPI API key and the availability of the corresponding PiAPI capabilities. The README warns that video generation and other time-consuming operations may not finish before Claude's timeout. Several listed functions remain incomplete, including additional Midjourney operations, Suno lyrics, Udio music and lyrics, and workflow planning.

The synchronization commands fetch or compare PiAPI Manager contract data. They are intended for maintaining the server's tool catalog rather than for ordinary MCP client configuration. A private Manager repository may require the separate MCP_SYNC_GITHUB_TOKEN secret for synchronization tasks.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Piapi MCP Server

Clone the repository, install its Node.js dependencies with npm or yarn, and run `npm run build`. The generated `dist/index.js` file is then configured as the MCP server entry point.

Yes. The README provides a Claude Desktop configuration using Node, the built `dist/index.js` file, and the `PIAPI_API_KEY` environment variable.

Yes.

It requires a PiAPI API key, supplied through the `PIAPI_API_KEY` environment variable.

Yes.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPiapi MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/apinetwork-piapi-mcp-server?style=directory)](https://allmcps.com/mcp/apinetwork-piapi-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/apinetwork-piapi-mcp-server"><img src="https://allmcps.com/api/badge/apinetwork-piapi-mcp-server?style=directory" alt="Piapi MCP Server on AllMCPs" /></a>