这是一个Model Context Protocol (MCP) 服务器,封装了Meshy AI API。它使MCP客户端(如Claude Desktop、Cursor、Cline)能够直接与Meshy的生成式3D工具进行交互。
您可以使用npx直接运行服务器,无需全局安装。
{
"mcpServers": {
"meshy-ai": {
"command": "npx",
"args": [
"-y",
"meshy-ai-mcp-server"
],
"env": {
"MESHY_API_KEY": "your_meshy_api_key_here"
}
}
}
}
如果您想要修改代码或从本地源运行:
克隆仓库:
git clone <repository-url>
cd meshy-ai-mcp-server
安装依赖项:
npm install
构建项目:
npm run build
配置您的MCP客户端:
在您的MCP客户端配置中添加以下内容(例如,claude_desktop_config.json或VS Code设置):
{
"mcpServers": {
"meshy-ai": {
"command": "node",
"args": [
"/absolute/path/to/meshy-ai-mcp-server/dist/index.js"
],
"env": {
"MESHY_API_KEY": "your_meshy_api_key_here"
}
}
}
}
您需要一个Meshy AI API密钥才能使用此服务器。
MESHY_API_KEY环境变量(如上所示)。MESHY_API_BASE:覆盖API基础URL(默认:https://api.meshy.ai/openapi)。MESHY_STREAM_TIMEOUT_MS:流响应超时时间(以毫秒为单位,默认:300000即5分钟)。要在开发模式下运行服务器,并启用自动重载:
# 创建一个.env文件
echo "MESHY_API_KEY=your_key_here" > .env
# 在开发模式下运行
npm run dev
create_text_to_3d_task,retrieve_text_to_3d_task,list_text_to_3d_tasks,stream_text_to_3d_taskcreate_image_to_3d_task,retrieve_image_to_3d_task,list_image_to_3d_tasks,stream_image_to_3d_taskcreate_text_to_texture_task,retrieve_text_to_texture_task,list_text_to_texture_tasks,stream_text_to_texture_taskcreate_remesh_task,retrieve_remesh_task,list_remesh_tasks,stream_remesh_taskcreate_rigging_task,retrieve_rigging_task,list_rigging_tasks,stream_rigging_taskcreate_animation_task,retrieve_animation_task,list_animation_tasks,stream_animation_taskget_balanceMIT