Xcelium MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Xcelium MCP Server find when top.dut.error_flag becomes 1'b1 using binary search"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Xcelium MCP Server
MCP (Model Context Protocol) server that enables AI assistants to control Cadence Xcelium/SimVision in real time via a Tcl socket bridge. Supports automated RTL/gate-level debugging with watchpoints, binary search, checkpoints, and SHM probe control.
Architecture
┌──────────────┐ stdio ┌───────────────────┐ TCP ┌─────────────────────┐
│ AI Assistant │ <------> │ Python FastMCP │ <-----> │ mcp_bridge.tcl │
│ (Claude, etc) │ │ Server (25 tools) │ :9876 │ inside xmsim/SV │
└──────────────┘ └────────────────────┘ │ (13 meta commands) │
└─────────────────────┘Related MCP server: EDA Tools MCP Server
Installation
pip install -e .
# With screenshot support (requires ghostscript)
pip install -e ".[screenshot]"
# With dev dependencies
pip install -e ".[dev]"Setup
1. Simulator Side (Linux server)
Load the Tcl bridge when launching xmsim or SimVision:
# Batch mode (no GUI license needed)
xmsim -64bit -input mcp_bridge.tcl top
# SimVision GUI mode
simvision -64bit -input mcp_bridge.tcl dump.shmThe bridge listens on TCP port 9876 by default. Override with:
export MCP_BRIDGE_PORT=9877Bridge signals readiness by creating /tmp/mcp_bridge_ready_9876.
2. AI Tool Configuration
Claude Code (~/.claude.json):
{
"mcpServers": {
"xcelium-mcp": {
"type": "stdio",
"command": "ssh",
"args": ["-o", "BatchMode=yes", "sim-server", "/path/to/xcelium-mcp"]
}
}
}Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"xcelium": {
"command": "xcelium-mcp"
}
}
}3. SSH Tunnel (remote server)
# Forward port 9876 in ~/.ssh/config
Host sim-server
LocalForward 9876 localhost:9876Available Tools (25)
Connection & Control (1-7)
Tool | Description |
| Connect to bridge (host, port, timeout) |
| Disconnect (for reconnection only) |
| Run simulation with duration and timeout (default 600s for gate sim) |
| Stop a running simulation |
| Restart from time 0 |
| Get current time, scope, state |
| Set conditional breakpoint |
Signal Inspection (8-13)
Tool | Description |
| Read current signal values |
| Get signal type, width, direction |
| Find all drivers (X/Z debugging) |
| List signals in a scope |
| Force a value onto a signal |
| Release a deposited signal |
Waveform (14-16)
Tool | Description |
| Add signals to waveform viewer |
| Set waveform time range |
| Set waveform cursor position |
Debug & Screenshot (17-18)
Tool | Description |
| Capture waveform as PNG |
| Full debug snapshot with checklist |
Advanced Debug (19-25)
Tool | Description |
| Safe shutdown preserving SHM waveform data |
| Set watchpoint to stop at exact clock edge when condition is true |
| Clear watchpoints (specific ID or all) |
| Enable/disable SHM recording, optionally per scope |
| Save simulation state for later restoration |
| Restore to a saved checkpoint |
| Binary search to find when a condition first becomes true |
Debugging Workflows
Quick Bug Hunt (watchpoint)
connect_simulator()
watch_signal(signal="top.dut.r_state", op="==", value="4'hF")
sim_run(duration="100us") # stops at exact clock edge
get_signal_value(signals=["top.dut.r_state", "top.dut.r_data"])
watch_clear()
shutdown_simulator() # always use this, never disconnectAutomated Time Search (bisect)
connect_simulator()
bisect_signal(
signal="top.dut.r_error", op="==", value="1'b1",
start_ns=0, end_ns=1000000, # 0-1ms range
precision_ns=100 # 100ns precision
)
# Returns iteration log + final narrowed time range
shutdown_simulator()Long Simulation with SHM Control
connect_simulator()
probe_control(mode="disable") # no SHM recording
sim_run(duration="50ms") # skip uninteresting region
probe_control(mode="enable") # start recording
sim_run(duration="10ms") # capture region of interest
shutdown_simulator()Checkpoint & Replay
connect_simulator()
sim_run(duration="10ms")
save_checkpoint(name="before_bug")
sim_run(duration="5ms") # analyze bug region
restore_checkpoint(name="before_bug") # go back
sim_run(duration="5ms") # try different analysis
shutdown_simulator()Key Rules
Always specify duration in
sim_runto prevent hang on infinite loopsAlways use
shutdown_simulatorto end sessions (preserves SHM data)Never use
disconnect_simulatorto end sessions (SHM not flushed)Gate-level sim: increase timeout with
sim_run(timeout=1800)if neededBridge ready: check
/tmp/mcp_bridge_ready_<port>file instead of TCP ping
Tcl Bridge Meta Commands
The bridge (mcp_bridge.tcl) accepts these meta commands over TCP:
Command | Description |
| Health check |
| Close connection |
| Capture waveform to PostScript |
| Safe shutdown (database close + finish) |
| Non-blocking sim run |
| Query sim time during async run |
| Set signal watchpoint |
| List active watchpoints |
| Delete watchpoints |
| Toggle SHM recording |
| Save checkpoint |
| Restore checkpoint |
| Binary search |
Any other input is evaluated as a raw Tcl/SimVision command.
Testing
pytest tests/Requirements
Python >= 3.10
mcp >= 1.0.0
xmsim or SimVision (Cadence Xcelium) with Tcl console
ghostscript (optional, for EPS to PNG screenshot conversion)
License
MIT
Available Tools
25 toolsbisect_signalA
Find when a signal condition first becomes true using automated binary search.
Internally saves checkpoints and repeatedly restores/runs with watchpoints to narrow down the exact time. Returns iteration log and final time range.
Args: signal: Full hierarchical signal path. op: Comparison operator (e.g. "=="). value: Target value (e.g. "8'h11"). start_ns: Start of search range in nanoseconds. end_ns: End of search range in nanoseconds. precision_ns: Stop when range is narrower than this (default 1000ns).
Inputs: signal (required), op (required), value (required), start_ns (required), +2 more. Returns: result
connect_simulatorA
Connect to a SimVision instance running mcp_bridge.tcl.
Args: host: SimVision host (use localhost with SSH tunnel for remote). port: TCP port of the Tcl bridge (default 9876). timeout: Connection timeout in seconds.
Inputs: host, port, timeout. Returns: result
cursor_setB
Set a waveform cursor to a specific time.
Args: time: Simulation time (e.g. "50ns"). cursor_name: Cursor name (default "TimeA").
Inputs: time (required), cursor_name. Returns: result
deposit_valueB
Force-deposit a value onto a signal.
Args: signal: Full hierarchical signal path. value: Value to deposit (e.g. "1'b1", "8'hFF", "0").
Inputs: signal (required), value (required). Returns: result
describe_signalA
Get detailed information about a signal (type, width, direction).
Args: signal: Full hierarchical signal path.
Inputs: signal (required). Returns: result
disconnect_simulatorB
Disconnect from the SimVision bridge.
Inputs: no named parameters. Returns: result
find_driversA
Find all drivers of a signal (useful for X/Z debugging).
Args: signal: Full hierarchical signal path.
Inputs: signal (required). Returns: result
get_signal_valueA
Read current values of one or more signals.
Args: signals: List of signal paths (e.g. ["/tb/dut/clk", "/tb/dut/data[7:0]"]).
Inputs: signals (required). Returns: result
list_signalsB
List signals in a scope, optionally filtered by pattern.
Args: scope: Hierarchical scope path (e.g. "/tb/dut"). pattern: Glob pattern to filter signals (default "*").
Inputs: scope (required), pattern. Returns: result
probe_controlA
Control SHM waveform recording to manage dump file size.
Disable probes during uninteresting simulation periods to save disk space. Re-enable before the region of interest. Optionally target a specific scope.
Args: mode: "enable" to start recording, "disable" to pause, "status" to check. scope: Hierarchical scope to target (e.g. "top.hw.u_ext"). Empty = all probes.
Inputs: mode (required), scope. Returns: result
release_signalB
Release a previously deposited signal, restoring driven value.
Args: signal: Full hierarchical signal path.
Inputs: signal (required). Returns: result
restore_checkpointA
Restore simulation to a previously saved checkpoint.
Args: name: Checkpoint name to restore. Empty = last saved checkpoint.
Inputs: name. Returns: result
run_debugger_modeB
Comprehensive debug snapshot: simulation state + signal values + screenshot + debugging guide.
Returns a combined text report and waveform screenshot for AI-assisted hardware debugging.
Inputs: no named parameters.
save_checkpointA
Save a simulation checkpoint for later restoration.
Checkpoints capture the complete simulator state. Use restore_checkpoint to return to this point without re-simulating from time 0.
Args: name: Checkpoint name (alphanumeric, e.g. "chk_10ms"). Auto-generated if empty.
Inputs: name. Returns: result
set_breakpointA
Set a conditional breakpoint in the simulation.
Args: condition: Tcl expression (e.g. "{/tb/dut/state == 3}"). name: Optional breakpoint name.
Inputs: condition (required), name. Returns: result
shutdown_simulatorA
Safely shutdown the simulator, preserving SHM waveform data.
Closes all SHM databases and terminates xmsim gracefully. Always use this instead of disconnect_simulator when ending a debug session. WARNING: exit or pkill will lose SHM data. This is the only safe way.
Inputs: no named parameters. Returns: result
sim_restartA
Restart the simulation from time 0.
Inputs: no named parameters. Returns: result
sim_runA
Run the simulation, optionally for a specified duration.
Args: duration: Simulation time to run (e.g. "100ns", "1us"). Empty = run until breakpoint or end. timeout: MCP response timeout in seconds (default 600s for gate-level sim support).
Inputs: duration, timeout. Returns: result
sim_statusA
Get current simulation status (time, scope, state).
Inputs: no named parameters. Returns: result
sim_stopB
Stop a running simulation.
Inputs: no named parameters. Returns: result
take_waveform_screenshotA
Capture a screenshot of the SimVision waveform window.
Returns the screenshot as a PNG image that Claude can analyze.
Inputs: no named parameters.
watch_clearC
Clear watchpoints. Use "all" to clear all, or a specific stop ID.
Args: watch_id: Watchpoint ID to clear, or "all" for all watchpoints.
Inputs: watch_id. Returns: result
watch_signalA
Set a watchpoint to stop simulation when a signal matches a condition.
The simulation will automatically stop at the exact clock edge where the condition becomes true. Much more efficient than manual probing.
Args: signal: Full hierarchical signal path (e.g. "top.dut.r_state[3:0]"). op: Comparison operator ("==", "!=", ">", "<", ">=", "<="). value: Target value in Verilog format (e.g. "8'h10", "4'b1010").
Inputs: signal (required), op, value. Returns: result
waveform_add_signalsB
Add signals to the SimVision waveform viewer.
Args: signals: List of signal paths to add. group_name: Optional group name for organizing signals.
Inputs: signals (required), group_name. Returns: result
waveform_zoomB
Set the waveform viewer time range (zoom to region).
Args: start_time: Start time (e.g. "0ns"). end_time: End time (e.g. "100ns").
Inputs: start_time (required), end_time (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
Most tools have clearly distinct purposes (e.g., deposit_value vs. release_signal, save_checkpoint vs. restore_checkpoint). Minor potential confusion exists between disconnect_simulator and shutdown_simulator (both end sessions but differ in data preservation), and between watch_signal and bisect_signal (both detect conditions but via different mechanisms). Descriptions clarify these distinctions.
Generally follows verb_noun convention (e.g., connect_simulator, set_breakpoint, find_drivers). Consistent prefixes group related functionality (sim_*, watch_*, waveform_*). Minor deviations include cursor_set (noun_verb inversion compared to set_breakpoint) and run_debugger_mode (slightly vague compared to specific action names).
With 25 tools, this is at the upper boundary of the 16-25 range, feeling heavy for an MCP server. While the hardware simulation domain is complex and justifies extensive coverage (signals, checkpoints, waveforms, debugging), the surface area is large enough that an agent may struggle to select the optimal tool without careful description reading.
Provides comprehensive coverage for hardware debugging workflows: connection lifecycle, simulation control (run/stop/restart), signal inspection/manipulation, checkpoint management, conditional breakpoints/watchpoints, and waveform visualization. Minor gaps include lack of explicit 'step' (single-cycle advance) or direct Tcl command execution, though set_breakpoint allows Tcl expressions.
Maintenance
Related MCP Connectors
Design circuits, simulate and verify embedded firmware, and lay out PCBs with AI agents.
Provides UX capabilities to enhance the design output and understanding of AI systems.
Live browser debugging for AI assistants — DOM, console, network via MCP.
Read-only AI coding tools for change verification, release readiness, capacity, and guidance.
Related MCP Servers
- AlicenseCqualityFmaintenanceEnables RTL simulation and hardware verification with Verilator through automatic testbench generation, natural language queries about simulations, waveform analysis, and protocol-aware testing for Verilog/SystemVerilog designs.44MIT
- AlicenseAqualityNot gradedmaintenanceEnables AI assistants to perform Electronic Design Automation (EDA) tasks including Verilog synthesis, simulation, ASIC design flows, and waveform analysis through a unified interface.6ISC
- AlicenseAqualityDmaintenanceConnects AI assistants to Siemens Questa Visualizer, enabling natural language control of HDL simulation such as opening waveforms, running simulation, and examining signal values.123MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to analyze RTL simulation and synthesis logs through deterministic tools for compile-log summaries, signal tie-off safety checks, and regression result statistics.-