Rigol DL3021 MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Rigol DL3021 MCP Server
A Model Context Protocol (MCP) server for controlling Rigol DL3021 electronic loads via Ethernet. Enables AI agents to perform automated load testing workflows through SCPI commands over VISA TCP/IP.
Features
Ethernet-only communication via PyVISA TCP/IP
Network auto-discovery when no IP is configured
22 MCP tools covering measurements, input control, mode configuration, and device management
Available Tools
Category | Tools |
Connection |
|
Device |
|
Measurements |
|
Input Control |
|
Mode |
|
CC Mode |
|
CP Mode |
|
Related MCP server: Instrument MCP Server
Installation
First, install the package and its dependencies:
pip install -e .Or with uv:
uv pip install -e .This installs the following dependencies:
pyvisa >= 1.11.0- VISA instrument communicationpyvisa-py- Pure Python VISA backendfastmcp >= 2.10.6- MCP server framework
Configuration
The server uses environment variables for configuration:
Variable | Description | Default |
| Device IP address (optional, auto-discovers if not set) | None |
| SCPI port |
|
Claude Code
After installing the package, add the following to your ~/.claude.json file under the mcpServers key:
{
"mcpServers": {
"rigol-dl3021": {
"type": "stdio",
"command": "uv",
"args": [
"run",
"--with", "fastmcp",
"--with", "pyvisa",
"--with", "pyvisa-py",
"fastmcp", "run",
"/path/to/rigol_dl3021_mcp_server/mcp_rigol_dl3021.py"
],
"env": {
"RIGOL_DL3021_PORT": "5555"
}
}
}
}Replace /path/to/rigol_dl3021_mcp_server/ with the actual path to this repository.
Cursor
After installing the package, add the following to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project-level):
{
"mcpServers": {
"rigol-dl3021": {
"command": "uv",
"args": [
"run",
"--with", "fastmcp",
"--with", "pyvisa",
"--with", "pyvisa-py",
"fastmcp", "run",
"/path/to/rigol_dl3021_mcp_server/mcp_rigol_dl3021.py"
],
"env": {
"RIGOL_DL3021_PORT": "5555"
}
}
}
}Replace /path/to/rigol_dl3021_mcp_server/ with the actual path to this repository.
Usage
Running Directly
python mcp_rigol_dl3021.pyWith FastMCP
fastmcp run mcp_rigol_dl3021.pyAs Installed Package
rigol-dl3021-mcpNetwork Discovery
To find your DL3021 on the network:
python rigol_dl3021/find_dl3021.pyTo test a specific IP:
python rigol_dl3021/test_ip.py 192.168.1.100Project Structure
rigol_dl3021_mcp_server/
├── mcp_rigol_dl3021.py # MCP server (22 tools)
├── pyproject.toml # Package configuration
└── rigol_dl3021/
├── comm_base.py # Ethernet-only VISA communication
├── dl3021.py # DL3021 SCPI driver
├── find_dl3021.py # Network auto-discovery
└── test_ip.py # Single IP connectivity testLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Protocol-native energy infrastructure orchestration for AI data centers. Provides 46 MCP tools across 8 grid protocols (IEC-61850, DNP3, Modbus, OCPP, OpenADR, IEEE 2030.5, IEC 60870-5-104, ICCP) with 5 core API primitives: connect, dispatch, settle, comply, and intel. Enables AI agents to programmatically interact with substations, grid interfaces, and energy assets for real-time workload-grid coordination.
Create, test, and manage uptime monitors for websites and APIs from your AI agent.
IP intelligence, network diagnostics, and AI service availability tools for AI agents.
AI agent infrastructure for discovery, authorization, execution, identity, and signed receipts.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables AI agents to control Copper Mountain Vector Network Analyzers over TCP/IP SCPI, offering 45 tools for sweep configuration, calibration, measurement, and Touchstone export.492AGPL 3.0
- AlicenseCqualityBmaintenanceEnables natural language control of test instruments like spectrum analyzers and power supplies via SCPI commands, with auto-discovery and multi-instrument session support.1001MIT
- AlicenseNot gradedqualityDmaintenanceControls Rigol DP832 programmable power supplies via Ethernet using VISA TCP/IP, enabling AI agents to manage channels, measurements, and protection settings.1MIT
- AlicenseBqualityDmaintenanceEnables agentic coding harnesses to control benchtop test equipment — waveform generator, multimeter, oscilloscope, and power supply — over SCPI, with typed tools and raw passthrough for investigating circuits.761MIT