piapi-mcp-server

by MCP-Mirror

309 downloads
Not rated
GitHub

About

piapi-mcp-server is a TypeScript implementation of a Model Context Protocol (MCP) server that integrates with PiAPI’s API. It allows users to generate media content (images, video, music, 3D models) directly from Claude or any MCP-compatible app, using services like Midjourney…

Details

Author
MCP-Mirror
Downloads
309
Categories
Other

- Generate Flux images from text descriptions
- Works with Claude Desktop and other MCP-compatible apps
- Easy setup with Node.js and npm
- Uses PiAPI’s unified API key authentication
- Built in TypeScript with a clean project structure

Clone the repository, install dependencies with npm install, set your PiAPI API key in a .env file (PIAPI_API_KEY=your_key_here), then build with npm run build. Start the server with npm start. To use with Claude Desktop, add the server configuration to your claude_desktop_config.json file specifying the path to dist/index.js and your API key.

piapi-mcp-server

Website Documentation Discord

A TypeScript implementation of a Model Context Protocol (MCP) server that integrates with PiAPI's API. PiAPI makes user able to generate media content with Midjourney/Flux/Kling/LumaLabs/Udio/Chrip/Trellis directly from Claude or any other MCP-compatible apps.

Features (more coming soon)

- [x] Flux Image generation from text descriptions
- [ ] Flux Image generation with image prompt
- [ ] Midjourney Image generation
- [ ] Kling video generation
- [ ] Luma Dream Machine video generation
- [ ] Suno/Udio ai song generation
- [ ] Trellis 3D model generation
- [ ] Workflow planning inside LLMs

Working with Claude Desktop

image

Prerequisites

- Node.js 16.x or higher
- npm or yarn
- A PiAPI API key (get one at piapi.ai)

Installation

1. Clone the repository:

git clone https://github.com/apinetwork/piapi-mcp-server
cd piapi-mcp-server

2. Install dependencies:

npm install

3. Create a .env file in the project root:

PIAPI_API_KEY=your_api_key_here

4. Build the project:

npm run build

Usage

Running the Server

npm start

Connecting to Claude Desktop

Add this to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):

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

Development

Project Structure

piapi-mcp-server/
├── src/
│   ├── index.ts        # Main server entry point
├── package.json
├── tsconfig.json
└── .env

License

MIT

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.