Back to Home
foundry-mcp icon

team05-mcp-server

by foundry-mcp

Overview

The system provides a unified interface for controlling a Transmission Electron Microscope (TEAM 0.5), including various components like the microscope hardware, a Gatan Digital Micrograph system, a 4D camera, and a Distiller database, through multiple interconnected servers and MCP agents.

Installation

Run Command
python mcp_library.py

Environment Variables

  • CAM_HOST
  • CAM_PORT
  • CAM_IP
  • for_vfdaq
  • API_URL
  • API_KEY_NAME
  • API_KEY

Security Notes

CRITICAL: The use of `pickle.loads` on unauthenticated network input in `microscope_server.py` and `gatan_server.py` allows for arbitrary remote code execution (RCE). This is a severe and easily exploitable vulnerability. High Risk: `4Dcamera_commands_mcp.py` uses `paramiko` and `sshpass -e ssh` to connect via SSH using passwords retrieved from environment variables. Passing passwords directly in this manner, even from environment variables, is not a secure practice for robust automation and can expose credentials (e.g., in process lists). Moderate Risk: `subprocess.call` in `gatan_server.py` executes external `.s` scripts. While these scripts are generated from Python templates, insufficient sanitization of input parameters to the template functions could potentially lead to arbitrary command injection and execution on the Gatan PC. Network Exposure: `microscope_server.py` and `gatan_server.py` bind to all network interfaces (`tcp://*:port`), making them accessible from any device on the network. Without stringent firewall rules and network segmentation, this significantly increases the attack surface. Lack of Authentication/Encryption: Communication between servers (ZeroMQ, raw sockets for 4D camera) does not appear to have explicit authentication or encryption layers implemented in the provided code, relying solely on network-level security.

Similar Servers

Stats

Interest Score30
Security Score1
Cost ClassLow
Avg Tokens300
Stars1
Forks0
Last Update2026-01-17

Tags

Microscope ControlElectron MicroscopyLab AutomationData AcquisitionZeroMQ