这是一个用于与 Placid.app API 集成的 MCP 服务器实现。该服务器提供了列出模板以及通过模型上下文协议生成图像和视频的工具。
<a href="https://glama.ai/mcp/servers/xeklsydon0"> <img width="380" height="200" src="https://gips3.baidu.com/it/u=2594861483,2412890391&fm=3081&app=3081&f=PNG?w=760&h=400" /> </a>node --version
npm --version
最简单的方法是使用 Smithery,它会自动配置所有设置:
npx -y @smithery/cli install @felores/placid-mcp-server --client claude
如果您希望手动配置,请在您的 Claude Desktop 或 Cline 设置中添加以下内容:
{
"mcpServers": {
"placid": {
"command": "npx",
"args": ["@felores/placid-mcp-server"],
"env": {
"PLACID_API_TOKEN": "your-api-token"
}
}
}
}
# 在开发模式下运行并启用热重载
npm run dev
# 运行测试
npm test
列出可用的 Placid 模板,并提供过滤选项。每个模板包括其标题、ID、预览图像 URL、可用层和标签。
collection_id(可选):按集合 ID 过滤模板custom_data(可选):按自定义参考数据过滤tags(可选):用于过滤模板的标签数组返回一个模板数组,每个模板包含:
uuid:模板的唯一标识符title:模板名称thumbnail:预览图像 URL(如果可用)layers:包含各层名称和类型的可用层数组tags:模板标签数组通过结合 Placid 模板和动态内容(如视频、图像和文本)来生成视频。对于较长的视频(>60 秒处理时间),您将收到一个作业 ID,以便在 Placid 仪表板中检查状态。
template_id(必需):要使用的模板的 UUIDlayers(必需):包含模板层动态内容的对象
{ "layerName": { "video": "https://video-url.com" } }{ "layerName": { "image": "https://image-url.com" } }{ "layerName": { "text": "Your content" } }audio(可选):mp3 音频文件的 URLaudio_duration(可选):设置为 'auto' 以根据视频长度修剪音频audio_trim_start(可选):修剪起始点的时间戳(例如 '00:00:45' 或 '00:00:45.25')audio_trim_end(可选):修剪结束点的时间戳(例如 '00:00:55' 或 '00:00:55.25')返回一个对象,包含:
status:当前状态("finished"、"queued" 或 "error")video_url:下载生成视频的 URL(当状态为 "finished" 时)job_id:在 Placid 仪表板中检查状态的 ID(对于较长的视频){
"template_id": "template-uuid",
"layers": {
"MEDIA": { "video": "https://example.com/video.mp4" },
"PHOTO": { "image": "https://example.com/photo.jpg" },
"LOGO": { "image": "https://example.com/logo.png" },
"HEADLINE": { "text": "My Video Title" }
},
"audio": "https://example.com/background.mp3",
"audio_duration": "auto"
}
通过结合 Placid 模板和动态内容(如文本和图像)来生成静态图像。
template_id(必需):要使用的模板的 UUIDlayers(必需):包含模板层动态内容的对象
{ "layerName": { "text": "Your content" } }{ "layerName": { "image": "https://image-url.com" } }返回一个对象,包含:
status:完成时为 "finished"image_url:下载生成图像的 URL{
"template_id": "template-uuid",
"layers": {
"headline": { "text": "Welcome to My App" },
"background": { "image": "https://example.com/bg.jpg" }
}
}
有关 Placid API 的更详细信息,请访问 Placid API 文档。
MIT