Meshy AI MCP Server

Meshy AI MCP Server

Enables to generate 3D models from text and images, apply textures, and remesh models using the Meshy AI API.

Category
访问服务器

README

Meshy AI MCP Server

This is a Model Context Protocol (MCP) server for interacting with the Meshy AI API. It provides tools for generating 3D models from text and images, applying textures, and remeshing models.

Features

  • Generate 3D models from text prompts
  • Generate 3D models from images
  • Apply textures to 3D models
  • Remesh and optimize 3D models
  • Stream task progress in real-time
  • List and retrieve tasks
  • Check account balance

Installation

  1. Clone this repository:

    git clone https://github.com/pasie15/scenario.com-mcp-server
    cd meshy-ai-mcp-server
    
  2. (Recommended) Set up a virtual environment:

    Using venv:

    python -m venv .venv
    # On Windows
    .\.venv\Scripts\activate
    # On macOS/Linux
    source .venv/bin/activate
    

    Using Conda:

    conda create --name meshy-mcp python=3.9  # Or your preferred Python version
    conda activate meshy-mcp
    
  3. Install the MCP package:

    pip install mcp
    
  4. Install dependencies:

    pip install -r requirements.txt
    
  5. Create a .env file with your Meshy AI API key:

    cp .env.example .env
    # Edit .env and add your API key
    

Usage

Starting the Server

You can start the server directly with Python:

python src/server.py

Or using the MCP CLI:

mcp run config.json

Editor Configuration

Add this MCP server configuration to your Cline/Roo-Cline/Cursor/VS Code settings (e.g., .vscode/settings.json or user settings):

{
  "mcpServers": {
    "meshy-ai": {
      "command": "python",
      "args": [
        "path/to/your/meshy-ai-mcp-server/src/server.py"  // <-- Make sure this path is correct!
      ],
      "disabled": false,
      "autoApprove": [],
      "alwaysAllow": []
    }
  }
}

Recommended: Using MCP dev mode (starts inspector)

For development and debugging, run the server using mcp dev:

mcp dev src/server.py

When running with mcp dev, you'll see output like:

Starting MCP inspector...
⚙️ Proxy server listening on port 6277
🔍 MCP Inspector is up and running at http://127.0.0.1:6274 🚀
New SSE connection

You can open the inspector URL in your browser to monitor MCP communication.

Available Tools

The server provides the following tools:

Creation Tools

  • create_text_to_3d_task: Generate a 3D model from a text prompt
  • create_image_to_3d_task: Generate a 3D model from an image
  • create_text_to_texture_task: Apply textures to a 3D model using text prompts
  • create_remesh_task: Remesh and optimize a 3D model

Retrieval Tools

  • retrieve_text_to_3d_task: Get details of a Text to 3D task
  • retrieve_image_to_3d_task: Get details of an Image to 3D task
  • retrieve_text_to_texture_task: Get details of a Text to Texture task
  • retrieve_remesh_task: Get details of a Remesh task

Listing Tools

  • list_text_to_3d_tasks: List Text to 3D tasks
  • list_image_to_3d_tasks: List Image to 3D tasks
  • list_text_to_texture_tasks: List Text to Texture tasks
  • list_remesh_tasks: List Remesh tasks

Streaming Tools

  • stream_text_to_3d_task: Stream updates for a Text to 3D task
  • stream_image_to_3d_task: Stream updates for an Image to 3D task
  • stream_text_to_texture_task: Stream updates for a Text to Texture task
  • stream_remesh_task: Stream updates for a Remesh task

Utility Tools

  • get_balance: Check your Meshy AI account balance

Resources

The server also provides the following resources:

  • health://status: Health check endpoint
  • task://{task_type}/{task_id}: Access task details by type and ID

Configuration

The server can be configured using environment variables:

  • MESHY_API_KEY: Your Meshy AI API key (required)
  • MCP_PORT: Port for the MCP server to listen on (default: 8081)
  • TASK_TIMEOUT: Maximum time to wait for a task to complete when streaming (default: 300 seconds)

Examples

Generating a 3D Model from Text

from mcp.client import MCPClient

client = MCPClient()
result = client.use_tool(
    "meshy-ai",
    "create_text_to_3d_task",
    {
        "request": {
            "mode": "preview",
            "prompt": "a monster mask",
            "art_style": "realistic",
            "should_remesh": True
        }
    }
)
print(f"Task ID: {result['id']}")

Checking Task Status

from mcp.client import MCPClient

client = MCPClient()
task_id = "your-task-id"
result = client.use_tool(
    "meshy-ai",
    "retrieve_text_to_3d_task",
    {
        "task_id": task_id
    }
)
print(f"Status: {result['status']}")

License

This project is licensed under the MIT License - see the LICENSE file for details.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选