AP

apinetwork/piapi-mcp-server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

75 stars 22 forks Качество 83 Тренд 22MIT

apinetwork/piapi-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/apinetwork/piapi-mcp-server.

Обзор

apinetwork/piapi-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/apinetwork/piapi-mcp-server.

Обзор (машинный перевод)

Реализация TypeScript сервера Model Context Protocol (MCP), который интегрируется с API PiAPI. PiAPI позволяет пользователю создавать медиаконтент с помощью Midjourney/Flux/Kling/LumaLabs/Udio/Chrip/Trellis непосредственно из Claude или любых других MCP-совместимых приложений.

##Особенности (скоро появятся)

Потребляющие время инструменты, такие как генерация видео, могут не завершиться из-за ограничений времени Клода.

  • [x] Инструментарий базового изображения
  • [x] Базовый инструментарий видео
  • [x] Флюкс генерация изображений из текста / изображения [x] Генерация видео Hunyuan из текста / изображения
  • [x] Поколение видео Skyreels из оперативного изображения
  • [x] Генерация видео из текста / изображения MMAudio Музыкальное поколение из видео TTS Zero-Shot голосовое поколение Поколение изображений Midjourney
  • Представь себе.
  • [] другой Поколение видео и эффектов Kling Luma Dream Machine видео генерация Поколение Suno Music
  • [] Поколение лирики Суно Поколение Udio Music and Lyrics Треллис 3D модель поколения от изображения
  • [ ] Планирование рабочих процессов внутри LLM

Работа с Claude Desktop Пример

Предпосылки

Node.js 16.x или выше

  • npm или пряжу
  • ключ API PiAPI (получить его на piapi.ai)

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

piapi-mcp-server

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)

Note: Time-consuming tools like video generation may not complete due to Claude’s timeout limitations

  • [x] Base Image toolkit
  • [x] Base Video toolkit
  • [x] Flux Image generation from text/image prompt
  • [x] Hunyuan Video generation from text/image prompt
  • [x] Skyreels Video generation from image prompt
  • [x] Wan Video generation from text/image prompt
  • [x] MMAudio Music generation from video
  • [x] TTS Zero-Shot voice generation
  • [ ] Midjourney Image generation
    • [x] imagine
    • [ ] other
  • [x] Kling Video and Effects generation
  • [x] Luma Dream Machine video generation
  • [x] Suno Music generation
  • [ ] Suno Lyrics generation
  • [ ] Udio Music and Lyrics generation
  • [x] Trellis 3D model generation from image
  • [ ] Workflow planning inside LLMs

Working with Claude Desktop Example

Prerequisites

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

Installation

Installing via Smithery

To install PiAPI MCP Server for Claude Desktop automatically via Smithery:

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

Manual Installation

  1. Clone the repository:
git clone https://github.com/apinetwork/piapi-mcp-server
cd piapi-mcp-server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

After building, a dist/index.js file will be generated. You can then configure this file with Claude Desktop and other applications. For detailed configuration instructions, please refer to the Usage section.

  1. (Optional) Test server with MCP Inspector:

First, create a .env file in the project root directory with your API key:

PIAPI_API_KEY=your_api_key_here

Then run the following command to start the MCP Inspector:

npm run inspect
Открыть полный README на GitHub

Установка

npx -y @smithery/cli install piapi-mcp-server --client claude
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

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