Verilator MCP Server is an MCP server that integrates the Verilator hardware simulation tool with AI assistants. It connects local Verilator 5.0+ installations directly to MCP clients like Claude Desktop, enabling hardware engineers, RTL developers, and verification teams to compile, simulate, and debug Verilog and SystemVerilog designs using conversational prompts. The server automatically analyzes RTL code to identify clocks, resets, parameters, and standard bus protocols such as AXI, APB, and Wishbone. When no testbench exists, it can automatically generate intelligent testbenches with directed, random, or constrained-random stimulus and built-in assertions. It executes simulations with automatic dependency resolution, captures waveform traces, collects code coverage metrics, and exposes simulation artifacts like logs and VCD files via dedicated MCP resources. Users can ask natural language questions to pinpoint assertion failures, diagnose signal states, track down unknown X or high-impedance Z values, and assess functional coverage improvements directly within their development environment.
Category: Developer Tools & Code Intelligence
Tags: fpga, hardware-design, simulation, systemverilog, verilog
bash git clone https://github.com/ssql2014/verilator-mcp.git cd verilator-mcp 3. Install project dependencies and compile the TypeScript source: bash npm install npm run build 4. Add the server to your Claude Desktop configuration file (such as ~/Library/Application Support/Claude/claude_desktop_config.json on macOS): json { "mcpServers": { "verilator": { "command": "node", "args": ["/path/to/verilator-mcp/dist/index.js"], "env": { "LOG_LEVEL": "info" } } } } 5. Replace /path/to/verilator-mcp with your actual repository path, then restart Claude Desktop.Part of MCP Servers
First install Verilator 5.0 or higher and Node.js 16 or newer. Clone the repository using git clone https://github.com/ssql2014/verilator-mcp.git, enter the folder, and run npm install followed by npm run build. Then register the built node executable in your MCP client configuration file.
The server compiles Verilog and SystemVerilog code, executes simulations via Verilator, generates testbenches with custom or protocol stimulus, and parses simulation output. It also processes natural language queries to explain design hierarchies, analyze waveforms, investigate assertion failures, and report code coverage.
Verilator MCP Server works with any client supporting the Model Context Protocol, including Claude Desktop and development environments configured for local stdio MCP server execution. Node.js is used to run the compiled index.js file.
Yes, Verilator MCP Server is open source software released under the MIT License, as documented in its repository on GitHub.