The EDA Tools MCP Server provides a comprehensive interface that enables AI assistants like Claude Desktop and Cursor IDE to perform electronic design automation tasks, including Verilog synthesis, simulation, ASIC design flows, and waveform analysis through a unified Model Context Protocol (MCP) interface.
Before using the MCP server, you need to install several EDA tools:
macOS (Homebrew):
brew install yosys
Ubuntu/Debian:
sudo apt-get update
sudo apt-get install yosys
From Source:
# Install prerequisites
sudo apt-get install build-essential clang bison flex \
libreadline-dev gawk tcl-dev libffi-dev git \
graphviz xdot pkg-config python3 libboost-system-dev \
libboost-python-dev libboost-filesystem-dev zlib1g-dev
# Clone and build
git clone https://github.com/YosysHQ/yosys.git
cd yosys
make -j$(nproc)
sudo make install
Alternatively, you can download the complete OSS CAD Suite toolchain from GitHub.
macOS (Homebrew):
brew install icarus-verilog
Ubuntu/Debian:
sudo apt-get install iverilog
macOS (Homebrew):
brew install --cask gtkwave
Ubuntu/Debian:
sudo apt-get install gtkwave
Download and install Docker Desktop for your platform from the official website.
After installation:
docker run hello-world# Install OpenLane via pip
pip install openlane
# Pull the Docker image
docker pull efabless/openlane:latest
# Verify installation
docker run hello-world
macOS (Homebrew):
brew install --cask klayout
Ubuntu/Debian:
sudo apt install klayout
git clone https://github.com/NellyW8/mcp-EDA
cd mcp-EDA
npm install
npm run build
npx tsc
This method uses Docker Desktop's built-in MCP extension for the easiest setup experience.
Install Docker Desktop Extension:
Configure Docker MCP Connection:
Add Your EDA MCP Server:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"MCP_DOCKER": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"alpine/socat",
"STDIO",
"TCP:host.docker.internal:8811"
]
},
"eda-mcp": {
"command": "node",
"args": [
"/absolute/path/to/your/eda-mcp-server/build/index.js"
],
"env": {
"PATH": "/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin",
"HOME": "/your/home/directory"
}
}
}
}
Restart Claude Desktop and verify both servers are running in Settings > Developer.
Open Cursor Settings:
Ctrl + Shift + P (Windows/Linux) or Cmd + Shift + P (macOS)Add MCP Server: Click "Add new MCP server" and configure:
{
"mcpServers": {
"MCP_DOCKER": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"alpine/socat",
"STDIO",
"TCP:host.docker.internal:8811"
]
},
"eda-mcp": {
"command": "node",
"args": [
"/absolute/path/to/your/eda-mcp-server/build/index.js"
],
"env": {
"PATH": "/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin",
"HOME": "/your/home/directory"
}
}
}
}
Enable MCP Tools:
Ask Claude: "Can you synthesize this counter module for an ice40 FPGA?"
module counter(
input clk,
input rst,
output [7:0] count
);
reg [7:0] count_reg;
assign count = count_reg;
always @(posedge clk or posedge rst) begin
if (rst)
count_reg <= 8'b0;
else
count_reg <= count_reg + 1;
end
endmodule
Ask Claude: "Please simulate this adder with a testbench"
// Design
module adder(
input [3:0] a,
input [3:0] b,
output [4:0] sum
);
assign sum = a + b;
endmodule
// Testbench will be generated automatically or you can provide one
Ask Claude: "Run the complete ASIC flow for this design with a 10ns clock period"
module simple_cpu(
input clk,
input rst,
input [7:0] data_in,
output [7:0] data_out
);
// Your RTL design here
endmodule
What you get after completion:
runs/RUN_*/final/gds/design.gds - Final GDSII layoutruns/RUN_*/openlane.log - Complete execution logruns/RUN_*/reports/ - Timing, area, power analysis reportsAsk Claude: "View the waveforms from the simulation with project ID: abc123"
MCP Server Not Detected:
Docker Permission Errors:
sudo groupadd docker
sudo usermod -aG docker $USER
sudo reboot
Tool Not Found Errors:
yosys --version, iverilog -V, gtkwave --version/opt/homebrew/binOpenLane Timeout:
GTKWave/KLayout GUI Issues:
Check MCP Server Logs:
~/Library/Logs/Claude/mcp*.log (macOS)Test Tools Manually:
yosys -help
iverilog -help
docker run hello-world
gtkwave --version
klayout -v
Verify Node.js Environment:
node --version
npm --version
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "eda-mcp" '{"command":"node","args":["/absolute/path/to/your/eda-mcp-server/build/index.js"],"env":{"PATH":"/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin","HOME":"/your/home/directory"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
"mcpServers": {
"eda-mcp": {
"command": "node",
"args": [
"/absolute/path/to/your/eda-mcp-server/build/index.js"
],
"env": {
"PATH": "/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin",
"HOME": "/your/home/directory"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
"mcpServers": {
"eda-mcp": {
"command": "node",
"args": [
"/absolute/path/to/your/eda-mcp-server/build/index.js"
],
"env": {
"PATH": "/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin",
"HOME": "/your/home/directory"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect