This MCP server provides integration with the Meshy API, allowing users to create 3D mesh renderers through Anthropic models. It's designed to transform text descriptions into visual 3D objects by leveraging mesh generation capabilities.
To install and run the MCP server, follow these steps:
Clone the repository:
git clone https://github.com/yourusername/mcp-meshy-server.git
cd mcp-meshy-server
Install required dependencies:
pip install -r requirements.txt
Set up environment variables for your API keys:
export MESHY_API_KEY="your_meshy_api_key"
export ANTHROPIC_API_KEY="your_anthropic_api_key" # If using Claude
Start the MCP server by running:
python server.py --port 8000
The server will start and listen for connections on the specified port (default: 8000).
You can interact with the MCP server either through direct API calls or via an Anthropic model configured to use this tool.
Send a POST request to the server with your 3D object description:
curl -X POST http://localhost:8000/generate-mesh \
-H "Content-Type: application/json" \
-d '{"description": "A red sports car with sleek design"}'
The server will return a JSON response with a URL to the generated 3D mesh.
If using Claude with MCP:
Example prompt:
I need a 3D model of a medieval castle with high towers and a moat. Can you create this using the mesh generation tool?
The server supports several configuration options:
--port
: The port number to run the server on (default: 8000)--host
: The host address to bind to (default: 0.0.0.0)--quality
: The quality of mesh generation (options: low, medium, high)Example with custom configuration:
python server.py --port 9000 --host 127.0.0.1 --quality high
Successful responses will include:
mesh_url
: Direct URL to the generated 3D meshpreview_url
: URL to a 2D preview image of the meshstatus
: Generation statusIf you encounter issues:
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.