# openroad-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/The-OpenROAD-Project/openroad-mcp  
**GitHub Stars:** 39  
**npm Downloads (last month):** 375  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/openroad-mcp

## Description
The OpenROAD MCP server - interactive EDA sessions via Model Context Protocol

## Tools
Capabilities this server exposes over MCP:

- **interactive_openroad_query** — Execute a read-only OpenROAD command (report_*, get_*, check_*, sta, help, etc.). Use this for querying design state, generating reports, and inspecting timing. Commands that modify design state are blocked — use interactive_openroad_exec instead. Results carry `truncated`, `bytes_discarded` and `total_bytes`: when `truncated` is true the output lost its beginning to the session buffer and is a PARTIAL answer, so do not treat it as complete — narrow the command and re-run.
- **interactive_openroad_exec** — Execute a state-modifying OpenROAD command (set_*, create_*, read_*, write_*, flow commands). Use this for loading designs, running placement/routing, applying constraints, and writing output files. Only the BLOCKED_COMMANDS list (quit, socket, load, glob, etc.) is rejected; read-only commands such as report_* are also accepted here. Use interactive_openroad_query instead for queries to keep state changes visible and auditable. Results carry `truncated`, `bytes_discarded` and `total_bytes`: when `truncated` is true the output lost its beginning to the session buffer and is a PARTIAL answer, so do not treat it as complete — narrow the command and re-run.
- **list_interactive_sessions** — List all active interactive OpenROAD sessions.
- **create_interactive_session** — Create a new interactive OpenROAD session.
- **terminate_interactive_session** — Terminate an interactive OpenROAD session.
- **inspect_interactive_session** — Get detailed inspection data for an interactive OpenROAD session.
- **get_session_history** — Get command history for an interactive OpenROAD session.
- **get_session_metrics** — Get comprehensive metrics for all interactive OpenROAD sessions.
- **list_report_images** — List available report images from ORFS runs organized by stage.
- **read_report_image** — Read a report image (congestion, IR-drop, placement, clock tree) and return it as a viewable image alongside its metadata. Optionally pass max_size_kb to override the configured base64 budget for this call; larger budgets keep more detail in heatmaps.
- **grep_session_output** — Search the output of commands already run in a session, without re-running them or re-sending a large result. `pattern` is a regular expression, falling back to a substring search if it does not compile. Use `context_lines` to see surrounding lines and `command_number` to search one command's output. Only recent output is retained (OPENROAD_OUTPUT_HISTORY_CHARS, default 256 KB); the result reports how much was searched and whether older output has been evicted.
- **read_orfs_metrics** — Read an ORFS design's per-stage metrics, its rules-base.json gate thresholds evaluated against those metrics, and the tagged errors/warnings from each stage log. Prefer this over shelling out to find/cat/jq/grep in the flow tree. `stage` accepts a step name (cts, place, route, floorplan, synth, finish), an ORFS metric namespace (globalroute, detailedroute, placeopt, detailedplace), an exact file stem (4_1_cts), or `all` (the default). `platform` is inferred from `design` when unambiguous. Note that ORFS records some metrics once per sub-run: any key listed in `repeated_metrics` has an array of values in file order rather than a scalar.
- **run_orfs_stage** — Run an ORFS flow stage (synth, floorplan, place, cts, grt, route, finish, or a clean_* target) via make, streaming output to a file rather than the session buffer. Returns a job_id immediately so a multi-hour route does not block the call; pass wait_seconds to get the finished result inline when the stage is short. `overrides` become make command-line assignments (e.g. {"CTS_CLUSTER_SIZE": "20"}), which take precedence over both the environment and the Makefile. Poll with get_orfs_job for live progress, and the parsed stage metrics and gate verdicts once it finishes. Set dry_run to see what make would do without running it.
- **get_orfs_job** — Poll a flow run started by run_orfs_stage: status, elapsed time, the ORFS stage currently executing, detailed-route iteration and live DRC violation count, CPU and memory, and the tail of the run log. Once the run succeeds it also carries the parsed stage metrics and rules-base gate verdicts. Omit job_id to list every run.
- **cancel_orfs_job** — Terminate a running flow job and every process it spawned, so no orphaned openroad process is left behind.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "openroad-mcp": {
    "command": "npx",
    "args": ["-y","openroad-mcp"]
  }
}
```

## Documentation

## What openroad-mcp MCP server does

The openroad-mcp MCP server gives an MCP client access to OpenROAD, an open-source digital physical-design tool, and optionally to OpenROAD-flow-scripts (ORFS). It is intended for interactive design analysis and operation rather than providing a separate EDA implementation.

An AI assistant can create several independent interactive sessions, run OpenROAD commands, inspect session state, review command history, and retrieve performance metrics. When ORFS output is available, the server can also find report images and return them for inspection in the client.

## How it works

The server runs over standard input/output and can be launched with the published package through Node.js and `npx`. Each interactive session uses a PTY-backed OpenROAD process. The available query and execution tools distinguish read-oriented interaction from state-changing commands: commands that modify state should be sent through `interactive_openroad_exec`, while `interactive_openroad_query` is intended for queries.

Session-management tools support creating, listing, inspecting, and terminating sessions. History and metrics tools expose activity from those sessions so an agent can examine what ran and how the process performed. Report-image tools use the configured ORFS flow location to locate and read generated images.

## Setup and configuration

Node.js 22 or newer is required for the `npx` distribution. OpenROAD must be installed and available to the server. ORFS is optional, but it is needed for complete RTL-to-GDS flows and report-image visualization.

A typical MCP configuration uses `npx -y openroad-mcp`. The package normally does not require cloning the repository or setting path variables manually. At startup, it inherits the MCP client's environment and searches for OpenROAD using the current `PATH`, the login-shell path, and several common installation locations. Set `PATH` in the client's environment when OpenROAD is installed elsewhere.

`ORFS_FLOW_PATH` identifies the ORFS flow directory. It defaults to `~/OpenROAD-flow-scripts/flow`, with additional detection when ORFS is located next to the OpenROAD binary. The published package does not read a `.env` file; environment settings must come from the MCP client. Set `LOG_LEVEL=DEBUG` when additional server diagnostics are needed.

## Tools and capabilities

The server exposes these tools:

- `interactive_openroad_query` for read-oriented OpenROAD interaction.
- `interactive_openroad_exec` for commands that may change design state.
- `create_interactive_session`, `list_interactive_sessions`, and `terminate_interactive_session` for session lifecycle management.
- `inspect_interactive_session` for examining an individual session.
- `get_session_history` and `get_session_metrics` for execution records and performance data.
- `list_report_images` and `read_report_image` for ORFS report-image access.

## Limitations and notes

OpenROAD is a runtime dependency, so session creation can fail if the executable cannot be found. ORFS-dependent image operations also depend on the correct flow path and available report files. The server supports Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Cline, Roo Code, Continue, and Zed configurations documented by the project. Docker and the MCP Registry are also provided as distribution options, but client-specific setup still depends on the selected MCP host.

_Full upstream README: https://allmcps.com/mcp/openroad-mcp/readme_

