Back to MCP Directory
Piapi
Model Context Protocol moderate risk

Piapi

PiAPI MCP server enables AI models to generate media via PiAPI's API, supporting image, video, and audio creation with tools like Midjourney, Kling, and Luma.

Connections & Capabilities

Connects To

GitHubDiscord

Capabilities

readwrite

Quickstart

Install

npx -y @smithery/cli install piapi-mcp-server --client claude

Config

{
  "mcpServers": {
    "piapi": {
      "command": "node",
      "args": ["/absolute/path/to/piapi-mcp-server/dist/index.js"],
      "env": {
        "PIAPI_API_KEY": "your_api_key_here"
      }
    }
  }
}

Exposed MCP Tools (10)

moderate
Flux Image generation

Generates images from text or image prompts using Flux.

Generates content, potential for misuse.

moderate
Hunyuan Video generation

Generates videos from text or image prompts using Hunyuan.

Generates content, potential for misuse.

moderate
Skyreels Video generation

Generates videos from image prompts using Skyreels.

Generates content, potential for misuse.

moderate
Wan Video generation

Generates videos from text or image prompts using Wan.

Generates content, potential for misuse.

moderate
MMAudio Music generation

Generates music from video using MMAudio.

Generates content, potential for misuse.

moderate
TTS Zero-Shot voice generation

Generates voice from text using TTS Zero-Shot.

Generates content, potential for misuse.

moderate
Kling Video and Effects generation

Generates videos and effects using Kling.

Generates content, potential for misuse.

moderate
Luma Dream Machine video generation

Generates videos using Luma Dream Machine.

Generates content, potential for misuse.

moderate
Trellis 3D model generation

Generates 3D models from images using Trellis.

Generates content, potential for misuse.

moderate
Suno Music generation

Generates music using Suno.

Generates content, potential for misuse.

Safety Assessment

This server is relatively safe for generating media content, but the risk of unintended content generation and API key exposure exists. It's crucial to protect the API key and monitor API usage to prevent unexpected costs. Using the server in a sandboxed environment can further mitigate risks.

  • API key authentication
  • No direct shell access
  • Limited file system access
  • Access control through PiAPI's API
  • Potential for unintended media generation
  • Dependency on PiAPI's security
  • Exposure of API key if misconfigured
  • Risk of unexpected costs due to API usage