Diana_mcp
by Oscar-wu747
Overview
Provides a local Model Context Protocol (MCP) server for VS Code/Cursor to interact with and control a Diana robotic arm, including fetching joint positions and executing movements.
Installation
conda activate mcp-demo && python -m server.mcp_serverEnvironment Variables
- DIANA_API_ROOT
- DIANA_API_LIB_DIR
- PYTHONPATH
- FASTMCP_NO_BANNER
Security Notes
The server allows specifying an arbitrary IP address for robot control functions (`move_joint_positions`, `move_linear_pose`, `stop_motion`, `get_joint_positions`). If the MCP server itself is compromised or exposed, an attacker could potentially send commands to any reachable IP address, controlling unintended robotic systems. The project also loads native shared libraries (`libDianaApi.so` or `DianaApi.dll`) using `ctypes.CDLL`, whose security cannot be verified from the provided Python source code. Environment variables (`DIANA_API_ROOT`, `DIANA_API_LIB_DIR`) can override library paths, which is a potential vulnerability if manipulated.
Similar Servers
ros2_mcp
The ROS2 MCP server allows AI tooling to connect with ROS 2 nodes, topics, services, and actions using the Model Context Protocol over stdio or SSE for real-time robotic control, data analysis, and AI-powered debugging.
zeromcp
A minimal, pure Python Model Context Protocol (MCP) server for exposing tools, resources, and prompts via HTTP/SSE and Stdio transports.
atlantis-mcp-server
Provides a local Model Context Protocol (MCP) server for dynamically hosting and managing Python functions and third-party MCP servers, primarily for AI agent interaction, with optional cloud integration.
agents-mcp-usage
Demonstrates a Model Context Protocol (MCP) server integration with various AI agent frameworks.