piapi-mcp-server logo

piapi-mcp-server

by apinetwork

A TypeScript implementation of a Model Context Protocol (MCP) server that integrates with PiAPI's API. PiAPI enables users to generate media content with various tools directly from Claude or other MCP-compatible apps.

View on GitHub

Last updated: N/A

What is piapi-mcp-server?

This is a Model Context Protocol (MCP) server built with TypeScript that connects to the PiAPI API. It allows users to generate media content using tools like Midjourney, Flux, Kling, LumaLabs, Udio, Chirp, and Trellis from within Claude or other MCP-compatible applications.

How to use piapi-mcp-server?

  1. Clone the repository. 2. Install dependencies using npm install. 3. Build the project using npm run build. 4. Configure Claude Desktop or Cursor by adding the server configuration with the path to the built index.js file and your PiAPI API key. 5. Restart Claude or Cursor to enable the server.

Key features of piapi-mcp-server

  • Base Image toolkit

  • Base Video toolkit

  • Flux Image generation from text/image prompt

  • Hunyuan Video generation from text/image prompt

  • Skyreels Video generation from image prompt

  • Wan Video generation from text/image prompt

  • MMAudio Music generation from video

  • TTS Zero-Shot voice generation

  • Kling Video and Effects generation

  • Luma Dream Machine video generation

  • Suno Music generation

  • Trellis 3D model generation from image

  • Workflow planning inside LLMs

Use cases of piapi-mcp-server

  • Generating images and videos from text prompts within Claude

  • Creating 3D models from images using Trellis

  • Generating music from video using MMAudio

  • Creating zero-shot voice generation using TTS

  • Integrating media generation tools into LLM workflows

FAQ from piapi-mcp-server

What is MCP?

Model Context Protocol (MCP) is a protocol that allows applications to communicate with media generation tools.

What is PiAPI?

PiAPI is an API that provides access to various media generation tools.

How do I get a PiAPI API key?

You can get a PiAPI API key at piapi.ai/workspace/key.

What is the MCP Inspector?

The MCP Inspector is a tool for testing and debugging MCP server implementations.

Where can I find the official MCP documentation?

The official MCP documentation can be found at modelcontextprotocol.io/docs/tools/inspector.