Back to Home
Oscar-wu747 icon

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

Run Command
conda activate mcp-demo && python -m server.mcp_server

Environment 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

Stats

Interest Score0
Security Score3
Cost ClassLow
Stars0
Forks0
Last Update2025-12-02

Tags

Robotic ControlMCP ServerPythonIndustrial AutomationFastMCP