Provides a local MCP server gateway to PiAPI for image, video, and audio generation via MCP-compatible clients.
Configuration
View docs{
"mcpServers": {
"piapi": {
"command": "node",
"args": [
"/absolute/path/to/piapi-mcp-server/dist/index.js"
],
"env": {
"PIAPI_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}You run a TypeScript MCP server that connects to PiAPI so you can generate media content from Claude or other MCP-compatible apps. This server exposes a flexible bridge between your MCP client and PiAPI’s generation tools, letting you trigger image, video, and audio pipelines from your prompts.
Connect your MCP client to the PiAPI MCP Server using a local stdio setup. You run the server locally and point the client at the same runtime process, enabling you to issue prompts that translate into PiAPI-powered content generation.
Prerequisites you need before installation:
Concrete steps you follow to install the MCP server locally are shown here. Copy each command exactly as written and run in your terminal.
npx -y @smithery/cli install piapi-mcp-server --client claudeIf you prefer to install manually, follow these steps to clone, install dependencies, and build the project.
git clone https://github.com/apinetwork/piapi-mcp-server
cd piapi-mcp-server
```
```bash
npm install
```
```bash
npm run buildIf you want to test the MCP server locally, create an environment file with your API key and launch the inspector to verify the MCP integration.
# in project root
PIAPI_API_KEY=your_api_key_here
```
```bash
npm run inspectOpen the inspector interface at http://localhost:5173 to test functions, inspect requests, and adjust timeouts for time-consuming tasks like image or video generation.
Flux Image generation from text/image prompts enables creating visuals from descriptive prompts.
Hunyuan Video generation from text/image prompts for dynamic media content.
Skyreels Video generation from image prompts for video storytelling.
Wan Video generation from text/image prompts for multimedia outputs.
MMAudio Music generation from video content to produce audio tracks.
TTS Zero-Shot voice generation to synthesize voice content.
Kling Video and Effects generation for enhanced visuals.
Luma Dream Machine video generation for creative video outputs.
Suno Music generation to compose audio tracks programmatically.
Trellis 3D model generation from image prompts for 3D assets.