CoppeliaSim MCP server for robotics simulation control

CoppeliaSim MCP server for robotics simulation control

coppeliaslim-mcpserver•byalsak0de

An MCP server that connects to CoppeliaSim via ZeroMQ to expose joint control and robot/scene description tools, with FastAPI and FastMCP backends.

License: MIT•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Rotates a joint of the connected CoppeliaSim model to a specified angle.
  • •Lists all joints in the simulation with their types and limits.
  • •Provides a detailed, LLM-friendly description of all robot elements and scene objects.
  • •Supports HTTP/SSE and stdio transports, enabling distributed setups where CoppeliaSim, server, and client run on different machines.

BEST FOR

  • •LLM or agent workflows that need to inspect and manipulate a CoppeliaSim robot simulation programmatically.
  • •Production deployments needing a web-server-backed MCP endpoint with standard web tooling.

ABOUT COPPELIASLIM-MCPSERVER

CoppeliaSim MCP server for robotics simulation control is cataloged as an MCP server attributed to alsak0de. An MCP server that connects to CoppeliaSim via ZeroMQ to expose joint control and robot/scene description tools, with FastAPI and FastMCP backends. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for CoppeliaSim MCP server for robotics simulation control are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which server option is recommended for production deployments?

The FastAPI-based server in coppelia_mcp.py is recommended for most production deployments, especially when standard web server features or custom endpoints are needed.

What CoppeliaSim version is required?

CoppeliaSim version 4.3 or newer is required, with the ZeroMQ remote API enabled.

上游原版 README

在 GitHub 查看同一版本原文

README.md · cb6593b40c57 · 采集于 2026-11-13 12:45:34 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

CoppeliaSim MCP Server

A Python-based MCP (Motion Control Protocol) server implementation for CoppeliaSim robotics simulation, supporting both FastAPI and FastMCP backends.

Features

  • JSON-RPC 2.0 protocol
  • Joint control and robot/scene description tools
  • Supports both HTTP/SSE and stdio transports
  • Flexible, LLM-friendly output

Requirements

  • Python 3.x
  • CoppeliaSim (formerly V-REP) version 4.3 or newer (ZeroMQ remote API required)
  • Required Python packages (see requirements.txt)

Installation

It is highly recommended to use a conda environment to avoid dependency conflicts:

conda create -n coppelia-mcp python=3.10
conda activate coppelia-mcp

You can then proceed with the steps below.

1. Clone the repository and install requirements

git clone https://github.com/alsak0de/CoppeliaSlim-mcpserver.git
cd CoppeliaSlim-mcpserver
pip install -r requirements.txt

Usage

1. Start CoppeliaSim and load your robot model

2. Run the MCP server

NOTE: MCP Servers typically run using stdio transport assuming the tools provider runs in the same machine as the MCP server and, very often, also the MCP host and client. Our project implements SSE transport and allows a complete distributed setup where CoppeliaSim, MCP Server and MCP Client can be running in different machines.

Which server should I use?

  • Option A (FastAPI-based, coppelia_mcp.py) is recommended for most production deployments, especially if you want standard web server features, integration with web tooling, or custom endpoints.
  • Option B (FastMCP-based, coppelia_fastmcp.py) is ideal for agent/LLM-native workflows, stdio transport, or pure MCP/agent integration.
  • Option C (Direct script, coppelia_mcp.py) is for development, debugging, or when you need to specify --coppeliaHost via CLI.
COPPELIASIM_HOST=<coppelia_host> uvicorn coppelia_mcp:app --host 0.0.0.0 --port 8000
  • This is the standard way to run FastAPI apps in production.
  • Set the CoppeliaSim host using the COPPELIASIM_HOST environment variable.
  • Precedence:
    1. COPPELIASIM_HOST environment variable (if set)
    2. Default: 127.0.0.1
  • Transports:
    • HTTP POST (JSON-RPC)
    • SSE at /sse endpoint
    • Stdio (via npx mcp-remote bridge, see below)

Option B: FastMCP-based server (coppelia_fastmcp.py)

  • Default:
    python coppelia_fastmcp.py --host 0.0.0.0 --port 8000 --coppeliaHost <coppelia_host>
    
    • You can specify the CoppeliaSim host with --coppeliaHost (default: 127.0.0.1).
  • Transports:
    • HTTP POST (JSON-RPC)
    • SSE at /sse endpoint
    • Stdio (native, or via npx mcp-remote if needed)

Option C: Direct script (development/debug, coppelia_mcp.py)

python coppelia_mcp.py --host 0.0.0.0 --port 8000 --coppeliaHost <coppelia_host>
  • Use this method for development, debugging, or when you need to specify --coppeliaHost via CLI.
  • Not recommended for production use; prefer Option A for deployment.

3. Connecting Clients

  • SSE/HTTP:
    • Use the /sse endpoint for SSE clients (recommended for modern LLM/agent clients)
    • Example: http://localhost:8000/sse
  • Stdio:
    • Use a bridge if your client only supports stdio:
      npx mcp-remote http://localhost:8000
      
    • Or configure your client to use stdio transport if supported natively by FastMCP

4. Auto-Approve Tool Calls

  • In most clients (e.g., Cursor), enable "Auto Approve" in the server settings to avoid confirmation prompts for each tool call.

API Tools

  • rotate_joint: Rotates a joint to a given angle
  • list_joints: Lists all joints with their types and limits
  • describe_robot: Returns a detailed, LLM-friendly description of all robot elements
  • describe_scene: Returns a description of all scene objects (excluding robot joints)

Note: All tool logic is now centralized in tools.py. To add a new tool, define your function in tools.py (taking sim as the first argument), then register it in both coppelia_mcp.py and coppelia_fastmcp.py as needed. This ensures both servers share the same tool logic and remain consistent.

Notes

  • Both servers default to 0.0.0.0:8000 but you can override with --host and --port.
  • Use the SSE endpoint for best compatibility with modern LLM/agent clients.
  • For stdio-only clients, use the npx bridge or FastMCP's native stdio support.
  • Why/When uvicorn?
    • For the FastAPI-based server (coppelia_mcp.py), you need uvicorn (or another ASGI server) to actually serve HTTP/SSE endpoints, because FastAPI is just a framework and does not include a web server.
    • For the FastMCP-based server (coppelia_fastmcp.py), you only need uvicorn if you want to serve HTTP/SSE endpoints. If you run FastMCP in stdio mode (for agent/CLI integration), you do not need uvicorn or any web server, since all communication is over stdin/stdout.

Author and Credits

Created and maintained by Albert Sagarra.
Community contributions are welcome and encouraged. Please refer to CONTRIBUTING.md for details on how to participate.

License

This project is licensed under the MIT License.
You are free to use, modify, and distribute this project under the terms of that license.

Running with Docker

This is the recommended way to ensure a clean, isolated environment for deployment or testing.

1. Build the Docker Image

docker build -t coppelia-mcp .

2. Run the MCP Server Container

Important:

  • You must specify the CoppeliaSim host using the --coppeliaHost argument so the MCP server can connect to the CoppeliaSim instance running outside the container.
  • The server always binds to 0.0.0.0 inside the container.
  • The port can be set by passing it as the first argument to docker run (default: 8000). You must expose the server port to access the API from outside the container.
  • The --rm flag is used so the container is automatically removed when stopped (no persistence is required).

Example (replace <coppelia_host> with your CoppeliaSim host IP):

docker run --rm -p 8000:8000 coppelia-mcp --coppeliaHost <coppelia_host>
  • To use a different port, pass it as the first argument and map the port:
docker run --rm -p 9000:9000 coppelia-mcp 9000 --coppeliaHost <coppelia_host>
  • Any additional arguments after the port are passed directly to the server script.
  • If CoppeliaSim is running on the same machine (but not in Docker), use --coppeliaHost host.docker.internal (on Mac/Windows) or your host's IP address (on Linux).
  • If CoppeliaSim is running in another container, ensure both containers are on the same Docker network and use the appropriate service/container name or IP.

3. Accessing the Server

  • The MCP server will be available at http://localhost:8000 (or the port you mapped).
  • Use the /sse endpoint for SSE clients, or POST to / for JSON-RPC.

Troubleshooting

  • Cannot connect to CoppeliaSim:
    • Make sure the --coppeliaHost value is correct and reachable from inside the container.
    • Check firewall and network settings.
  • Port already in use:
    • Change the host port in the -p flag (e.g., -p 8080:8000).
  • Persistent data:
    • This setup does not persist any data. If you need to persist logs or configs, mount a volume.

For advanced usage (e.g., FastMCP server, custom ports, or volumes), adjust the Docker command and arguments as needed.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for CoppeliaSim MCP server for robotics simulation control from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/coppeliaslim-mcpserver)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent