
Opentrons MCP Server
A server that provides both comprehensive API documentation and direct robot control capabilities for Opentrons Flex and OT-2 robots, enabling users to manage protocols, control runs, and monitor robot health through natural language.
Tools
search_endpoints
Search Opentrons HTTP API endpoints by functionality, method, path, or any keyword
get_endpoint_details
Get comprehensive details about a specific API endpoint
list_by_category
List all endpoints in a specific functional category
get_api_overview
Get high-level overview of the Opentrons HTTP API structure and capabilities
upload_protocol
Upload a protocol file to an Opentrons robot
get_protocols
List all protocols stored on the robot
create_run
Create a new protocol run on the robot
control_run
Control run execution (play, pause, stop, resume)
get_runs
List all runs on the robot
get_run_status
Get detailed status of a specific run
robot_health
Check robot health and connectivity
control_lights
Turn robot lights on or off
home_robot
Home robot axes or specific pipette
poll_error_endpoint_and_fix
Fetch specific JSON error report and automatically fix protocols
README
Opentrons MCP Server
A Model Context Protocol (MCP) server for Opentrons robot automation and API documentation. This tool provides both comprehensive API documentation and direct robot control capabilities for Opentrons Flex and OT-2 robots.
Features
API Documentation Tools
- Search Endpoints: Find API endpoints by functionality, method, or keyword
- Endpoint Details: Get comprehensive information about specific API endpoints
- Category Browsing: List endpoints by functional category
- API Overview: High-level overview of the entire Opentrons HTTP API
Robot Automation Tools
- Protocol Management: Upload, list, and manage protocol files
- Run Control: Create runs, start/stop execution, monitor progress
- Robot Health: Check connectivity and system status
- Hardware Control: Home robot, control lights, and basic operations
Installation
From npm (recommended)
npm install -g opentrons-mcp
From source
git clone https://github.com/yerbymatey/opentrons-mcp.git
cd opentrons-mcp
npm install
Configuration
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"opentrons": {
"command": "opentrons-mcp",
"args": []
}
}
}
If installed from source:
{
"mcpServers": {
"opentrons": {
"command": "node",
"args": ["/path/to/opentrons-mcp/index.js"]
}
}
}
Available Tools
Documentation Tools
search_endpoints
Search Opentrons HTTP API endpoints by functionality, method, path, or keyword.
query
(required): Search termmethod
(optional): Filter by HTTP method (GET, POST, PUT, DELETE, PATCH)tag
(optional): Filter by API categoryinclude_deprecated
(optional): Include deprecated endpoints
get_endpoint_details
Get comprehensive details about a specific API endpoint.
method
(required): HTTP methodpath
(required): API endpoint path
list_by_category
List all endpoints in a specific functional category.
category
(required): API category (Health, Control, Protocol Management, etc.)
get_api_overview
Get high-level overview of the Opentrons HTTP API structure and capabilities.
Automation Tools
upload_protocol
Upload a protocol file to an Opentrons robot.
robot_ip
(required): Robot IP addressfile_path
(required): Path to protocol file (.py or .json)protocol_kind
(optional): "standard" or "quick-transfer" (default: "standard")key
(optional): Client tracking keyrun_time_parameters
(optional): Runtime parameter values
get_protocols
List all protocols stored on the robot.
robot_ip
(required): Robot IP addressprotocol_kind
(optional): Filter by protocol type
create_run
Create a new protocol run on the robot.
robot_ip
(required): Robot IP addressprotocol_id
(required): ID of protocol to runrun_time_parameters
(optional): Runtime parameter values
control_run
Control run execution (play, pause, stop, resume).
robot_ip
(required): Robot IP addressrun_id
(required): Run ID to controlaction
(required): "play", "pause", "stop", or "resume-from-recovery"
get_runs
List all runs on the robot.
robot_ip
(required): Robot IP address
get_run_status
Get detailed status of a specific run.
robot_ip
(required): Robot IP addressrun_id
(required): Run ID to check
robot_health
Check robot health and connectivity.
robot_ip
(required): Robot IP address
control_lights
Turn robot lights on or off.
robot_ip
(required): Robot IP addresson
(required): true to turn lights on, false to turn off
home_robot
Home robot axes or specific pipette.
robot_ip
(required): Robot IP addresstarget
(optional): "robot" for all axes, "pipette" for specific mountmount
(optional): "left" or "right" (required if target is "pipette")
Usage Examples
With Claude Desktop
Screenshot showing the Opentrons MCP server in action with Claude Desktop after asking for current protocols with opentrons for the Flex, give it the robot ip!
Once configured, you can use natural language to control your robot:
Upload a protocol:
Upload the protocol file at /path/to/my_protocol.py to my robot at 192.168.1.100
Check robot status:
Check if my robot at 192.168.1.100 is healthy and ready
Run a protocol:
List all protocols on my robot, then create and start a run for the latest one
Monitor progress:
Show me the status of run abc123 on my robot
Programmatic Usage
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
// Connect to MCP server
const client = new Client(/* transport */);
// Upload protocol
await client.request({
method: "tools/call",
params: {
name: "upload_protocol",
arguments: {
robot_ip: "192.168.1.100",
file_path: "/path/to/protocol.py",
protocol_kind: "standard"
}
}
});
Requirements
- Node.js 18+
- Opentrons robot with HTTP API enabled (port 31950)
- Network connectivity between client and robot
Robot Setup
Ensure your Opentrons robot is:
- Connected to the same network as your client
- Running robot software version 7.0.0+
- Accessible on port 31950 (default for HTTP API)
You can verify connectivity by visiting http://your-robot-ip:31950/health
in a browser.
API Reference
This tool provides access to the complete Opentrons HTTP API, including:
- Protocol Management: Upload, analyze, and manage protocol files
- Run Management: Create, control, and monitor protocol runs
- Hardware Control: Robot movement, homing, lighting, and calibration
- System Management: Health monitoring, settings, and diagnostics
- Module Control: Temperature modules, magnetic modules, thermocyclers
- Data Management: CSV files for runtime parameters
For detailed API documentation, use the search and documentation tools provided by this MCP server.
Troubleshooting
Cannot connect to robot
- Verify robot IP address is correct
- Ensure robot is powered on and connected to network
- Check that port 31950 is accessible
- Confirm robot software is running
Protocol upload fails
- Verify file path exists and is readable
- Ensure protocol file is valid Python (.py) or JSON format
- Check available disk space on robot
- Confirm protocol is compatible with robot type (OT-2 vs Flex)
Run execution issues
- Verify all required labware and modules are attached
- Check robot calibration status
- Ensure protocol analysis completed successfully
- Confirm no hardware errors or conflicts
Contributing
Contributions are welcome! Please feel free to submit issues and pull requests.
License
No license go brazy
Related Projects
推荐服务器

Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。