MeshLab-mcp

MeshLab-mcp

MCP bridge for MeshLab enabling mesh operations via HTTP and TCP backends using pymeshlab. Allows MCP clients to perform 3D mesh processing tasks through natural language.

Category
Visit Server

README

MeshLab-MCP

A minimal, extensible Model Context Protocol (MCP) bridge for MeshLab, using FastAPI (HTTP) and a custom TCP (JSON) backend for mesh operations via pymeshlab.


Features

  • HTTP API for MCP clients (web UIs, orchestrators) using FastAPI
  • TCP (JSON) backend to communicate with a MeshLab process (using pymeshlab)
  • Extensible: Add new mesh tools and protocol commands easily

Project Structure

MeshLab-mcp/
├── meshlab_tcp_server.py   # TCP server wrapping pymeshlab
├── meshlab_tcp_client.py   # TCP client for server communication
├── meshlab_mcp.py          # Core MCP protocol logic (extensible)
├── mcp_server.py           # FastAPI HTTP server (entrypoint)
├── mcp_client.py           # HTTP client for testing
├── requirements.txt
└── README.md

Setup Instructions

  1. Clone the repository and cd into the directory.

  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Add Python Scripts directory to PATH (if not already):

    • Example: C:\Users\<your-username>\AppData\Roaming\Python\Python313\Scripts\
    • Restart your terminal after changing PATH.
  4. Start the MeshLab TCP server (in a terminal):

    python meshlab_tcp_server.py
    
  5. Start the HTTP MCP server (in another terminal):

    python -m uvicorn mcp_server:app --reload
    

    If uvicorn is not recognized, use the full path or the python -m uvicorn ... form as above.

  6. Test with the HTTP client (optional):

    python mcp_client.py
    

    You should see output like:

    {'mesh_loaded': False, 'current_mesh_name': None}
    

MCP Client Configuration Example (for MeshLab integration)

To connect MeshLab (or an orchestrator) to this MCP server, use a configuration like:

{
  "mcpServers": {
    "meshlab": {
      "command": "uvx",
      "args": [
        "meshlab-mcp"
      ],
      "host": "127.0.0.1",
      "port": 8000
    }
  }
}
  • command: The command to launch your MCP HTTP server (e.g., uvx meshlab-mcp or python -m uvicorn mcp_server:app --reload)
  • host/port: Where the HTTP API is reachable.

How It Works

  • MCP clients (web UI, orchestrator) send HTTP requests to the FastAPI server.
  • The FastAPI server bridges these requests to the MeshLab TCP server (which runs mesh operations using pymeshlab).
  • The TCP server responds with JSON results.

Extending

  • Add new mesh tools/commands in meshlab_tcp_server.py and expose them in the protocol.
  • Add corresponding methods in meshlab_tcp_client.py and new HTTP endpoints in mcp_server.py.

Troubleshooting

  • If uvicorn is not recognized, ensure your Python Scripts directory is in PATH or use python -m uvicorn ....
  • Always start the TCP server before the HTTP server.
  • For mesh operations, ensure your mesh files are present in the working directory.

Next Steps

  • Start building new mesh tools and protocol commands!
  • For advanced integration with MeshLab's GUI or other tools, refer to MeshLab's documentation and MCP specs.

If you have questions or want to add new features, just ask!

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured