About apinetwork/piapi-mcp-server
apinetwork/piapi-mcp-server is an MCP server published by apinetwork in the Commerce category: 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. Conduid read 23 tools from its source: derive_image, generate_3d_model, generate_image, generate_image_controlnet, generate_music_for_video, generate_music_suno and 17 more. No package is published for it, so it installs from a source checkout.
The repository has 76 stars and 21 forks, is licensed MIT, and its last commit was on 17 Sep 2026. Conduid has no tagged release on record for it. It passes 3 of the 6 static checks Conduid ran on the repository; it does not pass Tests present, Dependencies pinned and Scoped permissions. Its topics include commerce.
Install
git clone https://github.com/apinetwork/piapi-mcp-serverTools (23)
derive_imageDerive a image using Qubico Flux, variation| Parameter | Type | Description |
|---|---|---|
| height | any | The height of the image to generate, must be between 128 and 1024, defaults to 1024 |
| negativePrompt | string | The negative prompt to derive an image from |
| prompt * | string | The prompt to derive an image from |
| referenceImage * | string | The reference image to derive an image from, must be a valid image url |
| steps | any | The number of steps to generate the image |
| width | any | The width of the image to generate, must be between 128 and 1024, defaults to 1024 |
generate_3d_modelGenerate a 3d model using Qubico Trellis| Parameter | Type | Description |
|---|---|---|
| image * | string | The image to generate a 3d model from |
generate_imageGenerate a image using Qubico Flux| Parameter | Type | Description |
|---|---|---|
| height | any | The height of the image to generate, must be between 128 and 1024, defaults to 1024 |
| lora | string | The lora to use for image generation, only available for 'dev' model, defaults to '' |
| model | string | The model to use for image generation, 'schnell' is faster and cheaper but less detailed, 'dev' is slower but more detailed |
| negativePrompt | string | The negative prompt to generate an image from |
| prompt * | string | The prompt to generate an image from |
| referenceImage | string | The reference image to generate an image from, must be a valid image url |
| steps | any | The number of steps to generate the image |
| width | any | The width of the image to generate, must be between 128 and 1024, defaults to 1024 |
generate_image_controlnetGenerate a image using Qubico Flux with ControlNet| Parameter | Type | Description |
|---|---|---|
| controlType | string | The control type to use for image generation |
| height | any | The height of the image to generate, must be between 128 and 1024, defaults to 1024 |
| lora | string | The lora to use for image generation |
| negativePrompt | string | The negative prompt to generate an image from |
| prompt * | string | The prompt to generate an image from |
| referenceImage * | string | The reference image to generate an image from, must be a valid image url |
| steps | any | The number of steps to generate the image |
| width | any | The width of the image to generate, must be between 128 and 1024, defaults to 1024 |
generate_music_for_videoGenerate a music for a video using Qubico MMAudio| Parameter | Type | Description |
|---|---|---|
| negativePrompt | string | The negative prompt to generate a music from |
| prompt * | string | The prompt to generate a music from |
| video * | string | The video to generate a music from |
generate_music_sunoGenerate music using Suno| Parameter | Type | Description |
|---|---|---|
| makeInstrumental | boolean | Whether to make the music instrumental, defaults to false. Not compatible with title, tags, negativeTags |
| negativeTags | string | The negative tags of the music, limited to 200 characters |
| prompt * | string | The prompt to generate a music from, limited to 3000 characters |
| tags | string | The tags of the music, limited to 200 characters |
| title | string | The title of the music, limited to 80 characters |
generate_video_effect_klingGenerate a video effect using Kling| Parameter | Type | Description |
|---|---|---|
| effectName | string | The effect name to generate, must be either 'squish' or 'expansion', defaults to 'squish' |
| image * | string | The reference image to generate a video effect from |
generate_video_hailuoGenerate a video using Hailuo| Parameter | Type | Description |
|---|---|---|
| expandPrompt | boolean | Whether to expand the prompt |
| imageUrl | string | The image URL for image-to-video models |
| model | string | The model to use for video generation. t2v models are text-to-video, i2v models are image-to-video, s2v-01 requires human face detection |
| prompt * | string | The prompt to generate a video from (max 2000 characters) |
generate_video_hunyuanGenerate a video using Qubico Hunyuan| Parameter | Type | Description |
|---|---|---|
| aspectRatio | string | The aspect ratio of the video to generate, must be either '16:9', '1:1', or '9:16', defaults to '16:9' |
| model | string | The model to use for video generation, 'hunyuan' is slower but more detailed, 'fastHunyuan' is faster but less detailed, both for txt2video. 'hunyuanReplace' sticks to reference image, and 'hunyuanConcat' allows for more creative movement, both for img2video |
| negativePrompt | string | The negative prompt to generate a video from |
| prompt * | string | The prompt to generate a video from |
| referenceImage | string | The reference image to generate a video from, must be a valid image url |
generate_video_klingGenerate a video using Kling| Parameter | Type | Description |
|---|---|---|
| aspectRatio | string | The aspect ratio of the video to generate, must be either '16:9', '1:1', or '9:16', defaults to '16:9' |
| duration | string | The duration of the video to generate, defaults to 5 seconds |
| negativePrompt | string | The negative prompt to generate a video from |
| prompt * | string | The prompt to generate a video from |
| referenceImage | string | The reference image to generate a video with |
generate_video_lumaGenerate a video using Luma| Parameter | Type | Description |
|---|---|---|
| aspectRatio | string | The aspect ratio of the video, defaults to 16:9 |
| duration | string | The duration of the video, defaults to 5s. If keyFrame is provided, only 5s is supported |
| keyFrame | string | The key frame to generate a video with |
| prompt * | string | The prompt to generate a video from |
generate_video_skyreelsGenerate a video using Qubico Skyreels| Parameter | Type | Description |
|---|---|---|
| aspectRatio | string | The aspect ratio of the video to generate, must be either '16:9', '1:1', or '9:16', defaults to '16:9' |
| negativePrompt | string | The negative prompt to generate a video from |
| prompt * | string | The prompt to generate a video from |
| referenceImage * | string | The reference image to generate a video from, must be a valid image url, only available for 'wan14b' model |
generate_video_wanGenerate a video using Qubico Wan| Parameter | Type | Description |
|---|---|---|
| aspectRatio | string | The aspect ratio of the video to generate, must be either '16:9', '1:1', or '9:16', defaults to '16:9' |
| model | string | The model to use for video generation, must be either 'wan1_3b' or 'wan14b', 'wan1_3b' is faster but less detailed, 'wan14b' is slower but more detailed |
| negativePrompt | string | The negative prompt to generate a video from |
| prompt * | string | The prompt to generate a video from |
| referenceImage | string | The reference image to generate a video from, must be a valid image url, only available for 'wan14b' model |
image_faceswapFaceswap an image| Parameter | Type | Description |
|---|---|---|
| swapImage * | string | The URL of the image to swap |
| targetImage * | string | The URL of the target image |
image_rmbgRemove the background of an image| Parameter | Type | Description |
|---|---|---|
| image * | string | The URL of the image to remove the background |
image_segmentSegment an image| Parameter | Type | Description |
|---|---|---|
| image * | string | The URL of the image to segment |
| negativePrompt | string | The negative prompt to segment the image |
| prompt * | string | The prompt to segment the image |
| segmentFactor | number | The factor to segment the image |
image_upscaleUpscale an image to a higher resolution| Parameter | Type | Description |
|---|---|---|
| faceEnhance | boolean | Whether to enhance the face of the image |
| image * | string | The URL of the image to upscale |
| scale | number | The scale of the image to upscale, defaults to 2 |
midjourney_imagineGenerate a image using Midjourney Imagine| Parameter | Type | Description |
|---|---|---|
| aspectRatio | string | The aspect ratio of the image |
| prompt * | string | The prompt to generate a image from |
modify_imageModify a image using Qubico Flux, inpaint or outpaint| Parameter | Type | Description |
|---|---|---|
| model * | string | The model to use for image modification |
| negativePrompt | string | The negative prompt to modify an image from |
| paddingBottom | any | The padding bottom of the image, only available for outpaint |
| paddingLeft | any | The padding left of the image, only available for outpaint |
| paddingRight | any | The padding right of the image, only available for outpaint |
| paddingTop | any | The padding top of the image, only available for outpaint |
| prompt * | string | The prompt to modify an image from |
| referenceImage * | string | The reference image to modify an image from, must be a valid image url |
| steps | any | The number of steps to generate the image |
show_imageShow an image with pixels less than 768*1024 due to Claude limitation| Parameter | Type | Description |
|---|---|---|
| url * | string | The URL of the image to show |
tts_zero_shotZero-shot TTS using Qubico f5-tts| Parameter | Type | Description |
|---|---|---|
| genText * | string | The text to generate a speech from |
| refAudio * | string | The reference audio to generate a speech from |
| refText | string | The reference text to generate a speech from, auto detect from refAudio if not provided |
video_faceswapFaceswap a video| Parameter | Type | Description |
|---|---|---|
| swapImage * | string | The URL of the image to swap |
| targetVideo * | string | The URL of the video to faceswap |
video_upscaleUpscale video resolution to 2x| Parameter | Type | Description |
|---|---|---|
| video * | string | The URL of the video to upscale |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.3K words.
- ✓License declaredThe repository declares the MIT license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- ✓No dynamic code executionScanned 9 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/index.ts:46
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 6 callssrc/index.ts:1739, src/index.ts:1775, src/sync/fetchers.ts:35
- Writes or deletes files
- No file writes or deletes
- Lockfile
- None in the repository
Pattern matches on the source text of 9 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 1.3K words, fetched a month ago. The original in the repository is authoritative.
Read full README