Vivado MCP Server
Allows AI assistants to interact with AMD/Xilinx Vivado FPGA development tools, enabling session management, project management, design flow (synthesis, implementation, bitstream), reports and analysis, design queries, and simulation control.
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., "@Vivado MCP Server Open my project and run synthesis"
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.
Vivado MCP Server
A Model Context Protocol (MCP) server that enables AI assistants like Claude to directly interact with AMD/Xilinx Vivado FPGA development tools.
Features
Session Management: Start/stop persistent Vivado TCL sessions (avoids 30s startup per command)
Project Management: Open/close Vivado projects (.xpr files)
Design Flow: Run synthesis, implementation, and bitstream generation
Reports & Analysis: Get timing summaries, utilization reports, and design analysis
Design Queries: Explore hierarchy, ports, nets, and cells
Simulation: Control Vivado's integrated simulator (xsim)
Raw TCL: Execute arbitrary Vivado TCL commands for advanced operations
Related MCP server: KiCAD MCP Server
Requirements
Python 3.10+
AMD/Xilinx Vivado installed (tested with 2023.2+)
Vivado must be in your PATH, or specify the full path when starting a session
Installation
From GitHub
git clone https://github.com/coreyhahn/vivado_mcp.git
cd vivado_mcp
pip install -e .Configure Claude Code
Add to your Claude Code MCP configuration (~/.claude/claude_desktop_config.json or project-level .mcp.json):
{
"mcpServers": {
"vivado": {
"command": "vivado-mcp"
}
}
}Or if you want to specify the Python interpreter:
{
"mcpServers": {
"vivado": {
"command": "python",
"args": ["-m", "vivado_mcp"]
}
}
}Usage
Once configured, Claude can interact with Vivado through natural language. Example workflow:
Start Vivado session: "Start a Vivado session"
Open project: "Open my project at /path/to/project.xpr"
Run synthesis: "Synthesize the design"
Check timing: "What's the timing summary? Is timing met?"
Check utilization: "Show me the resource utilization"
Close session: "Stop the Vivado session"
Available Tools
Session Management
start_session- Start a persistent Vivado TCL sessionstop_session- Stop the Vivado sessionsession_status- Get session statistics
Project Management
open_project- Open a Vivado project (.xpr)close_project- Close the current projectget_project_info- Get project information (part, directory, etc.)
Design Flow
run_synthesis- Run synthesisrun_implementation- Run place and routegenerate_bitstream- Generate bitstream
Reports & Analysis
get_timing_summary- Get timing summary (WNS, TNS, WHS, THS)get_timing_paths- Get detailed timing paths for failing/critical pathsget_utilization- Get resource utilization (LUTs, FFs, BRAMs, DSPs)get_clocks- Get clock informationget_messages- Get synthesis/implementation messages
Design Queries
get_design_hierarchy- Get module/instance hierarchyget_ports- Get top-level portsget_nets- Search for netsget_cells- Search for cells/instances
Simulation
launch_simulation- Launch behavioral/post-synth/post-impl simulationrun_simulation- Run simulation for specified timerestart_simulation- Restart from time 0close_simulation- Close the simulatorget_simulation_time- Get current simulation timeget_signal_value- Get a signal's current valueget_signal_values- Get multiple signal values by patternadd_signals_to_wave- Add signals to waveform viewerset_simulation_top- Set the testbench moduleget_simulation_objects- List signals in a scopeget_scopes- List hierarchy scopesstep_simulation- Step simulationadd_breakpoint- Add signal breakpointremove_breakpoints- Remove all breakpoints
Advanced
run_tcl- Execute raw TCL commandsgenerate_full_report- Generate full reports to fileread_report_section- Read portions of large reportsrequest_feature- Request new featureslist_feature_requests- List submitted requests
Architecture
┌─────────────────┐ MCP Protocol ┌─────────────────┐
│ Claude Code │◄────(JSON-RPC)────────►│ Vivado MCP │
│ (AI Client) │ over stdio │ Server │
└─────────────────┘ └────────┬────────┘
│
│ pexpect
│ (TCL commands)
▼
┌─────────────────┐
│ Vivado Process │
│ (TCL mode) │
└─────────────────┘The server maintains a persistent Vivado process in TCL mode. Commands are sent via pexpect and output is captured by waiting for the Vivado prompt. This avoids the ~30 second startup overhead that would occur if Vivado were launched for each command.
Recreating This MCP Server with Claude
This MCP server was created entirely through conversation with Claude. Here's how you can create similar MCP servers:
1. Start with a Clear Goal
Tell Claude what you want to build:
"I want to create an MCP server that lets you control Vivado FPGA tools. You should be able to start Vivado, open projects, run synthesis, check timing, etc."
2. Describe the Architecture
Explain the key technical challenges:
"Vivado takes 30 seconds to start, so we need a persistent session. Vivado has a TCL interface we can use. We need to parse Vivado's text output into structured data."
3. Iterate on Tools
Start with basic tools and add more:
Session management (start/stop)
Project management
Design flow commands
Reports and queries
Simulation control
4. Key Design Patterns Used
Singleton Session: Only one Vivado process runs at a time
_session: Optional[VivadoSession] = None
def get_session() -> VivadoSession:
global _session
if _session is None:
_session = VivadoSession()
return _sessionpexpect for Process Management: Keeps Vivado alive between commands
self.child = pexpect.spawn(
f'{self.vivado_path} -mode tcl -nojournal -nolog',
encoding='utf-8',
timeout=self.timeout
)
self.child.expect('Vivado%', timeout=10) # Wait for promptOutput Parsing: Convert text reports to structured JSON
def parse_timing_summary(output: str) -> dict:
wns_match = re.search(r"WNS\(ns\)\s*:\s*([-\d.]+)", output)
if wns_match:
result["wns"] = float(wns_match.group(1))Response Truncation: Handle large outputs gracefully
def truncate_response(content: str, max_chars: int) -> dict:
if len(content) > max_chars:
return {"content": content[:max_chars], "truncated": True}5. MCP Server Structure
Every MCP server needs:
from mcp.server import Server
from mcp.server.stdio import stdio_server
from mcp.types import Tool, TextContent
server = Server("your-server-name")
@server.list_tools()
async def list_tools() -> list[Tool]:
return [Tool(name="...", description="...", inputSchema={...})]
@server.call_tool()
async def call_tool(name: str, arguments: dict) -> list[TextContent]:
# Handle tool calls
return [TextContent(type="text", text=json.dumps(result))]
async def main():
async with stdio_server() as (read_stream, write_stream):
await server.run(read_stream, write_stream,
server.create_initialization_options())6. Prompt for Creating Your Own MCP Server
Use this prompt template with Claude:
I want to create an MCP server for [YOUR TOOL].
Background:
- [Tool] is a [description] that [what it does]
- It has a [CLI/API/etc] interface that accepts [commands/requests]
- Key operations I want to support: [list operations]
Technical considerations:
- [Startup time, persistent state, output formats, etc.]
Please help me create an MCP server with:
1. Session/connection management
2. Core operations as tools
3. Proper error handling
4. Structured JSON responses
5. Comprehensive code comments
Start with the basic structure and we'll iterate from there.Contributing
Contributions welcome! Please feel free to submit issues and pull requests.
License
MIT License - see LICENSE file for details.
Acknowledgments
Created with Claude (Anthropic)
Uses the Model Context Protocol specification
Integrates with AMD/Xilinx Vivado
Available Tools
40 toolsadd_breakpointB
Add a simulation breakpoint on a signal condition
Inputs: signal (required), condition.
add_signals_to_waveB
Add signals to the waveform viewer
Inputs: signals (required).
check_session_healthA
Check if Vivado session is responsive and recover if needed. Use this if commands are timing out or behaving unexpectedly.
Inputs: auto_recover.
close_projectB
Close the current project
Inputs: no named parameters.
close_simulationA
Close the current simulation
Inputs: no named parameters.
generate_bitstreamB
Generate bitstream for the implemented design
Inputs: no named parameters.
generate_full_reportA
Generate a full Vivado report to a file. Use when inline reports are truncated or you need the complete output.
Inputs: report_type (required), options, output_file.
get_cellsB
Search for cells (instances) in the design
Inputs: pattern, limit.
get_clocksA
Get clock information and constraints
Inputs: no named parameters.
get_design_hierarchyB
Get the design hierarchy (modules and instances)
Inputs: max_depth, instance_pattern.
get_host_statusA
Get status of this Vivado MCP server host including hostname, free memory, and session state. If free memory is below 64GB, use vivado-snoke instead.
Inputs: no named parameters.
get_messagesB
Get synthesis/implementation messages (errors, warnings)
Inputs: severity.
get_netsB
Search for nets in the design
Inputs: pattern, limit.
get_portsA
Get top-level ports of the design
Inputs: no named parameters.
get_project_infoC
Get information about the currently open project
Inputs: no named parameters.
get_scopesC
List available scopes (hierarchy) in the simulation
Inputs: parent.
get_signal_valueB
Get the current value of a signal in simulation
Inputs: signal (required), radix.
get_signal_valuesB
Get current values of multiple signals matching a pattern
Inputs: pattern (required), radix.
get_simulation_messagesC
Get simulation log messages (errors, warnings, info)
Inputs: severity.
get_simulation_objectsA
List simulation objects (signals, variables) in a scope
Inputs: scope, filter.
get_simulation_timeA
Get the current simulation time
Inputs: no named parameters.
get_timing_pathsA
Get timing paths for failing or critical paths. Returns structured summary (slack, source, dest, clocks) by default. Use generate_full_report for verbose path details.
Inputs: num_paths, slack_threshold, path_type, from_pin, +4 more.
get_timing_summaryA
Get timing summary (WNS, TNS, WHS, THS). Returns parsed metrics only by default. Use generate_full_report for raw output.
Inputs: report_type, detail_level.
get_utilizationA
Get resource utilization (LUT, FF, BRAM, DSP, IO). Returns parsed metrics only by default. Use generate_full_report for hierarchical details.
Inputs: hierarchical, detail_level, module_filter, threshold_percent.
launch_simulationC
Launch behavioral simulation (xsim). Opens the simulator and loads the design.
Inputs: mode.
list_feature_requestsA
List all feature requests that have been submitted
Inputs: no named parameters.
open_projectB
Open a Vivado project (.xpr file)
Inputs: project_path (required).
read_report_sectionC
Read a section of a previously generated report file
Inputs: report_id, file_path, start_line, num_lines, +1 more.
remove_breakpointsB
Remove all breakpoints
Inputs: no named parameters.
request_featureA
Request a new feature or capability for the Vivado MCP server. Use this when you encounter a limitation or wish you had a tool that doesn't exist.
Inputs: title (required), description (required), use_case, priority.
restart_simulationA
Restart the simulation from time 0
Inputs: no named parameters.
run_implementationB
Run implementation (place and route) on the current project
Inputs: jobs, timeout.
run_simulationC
Run the simulation for a specified time
Inputs: time (required).
run_synthesisD
Run synthesis on the current project
Inputs: jobs, timeout.
run_tclA
Execute a raw TCL command in Vivado. Use for advanced operations not covered by other tools.
Inputs: command (required).
session_statusB
Get status and statistics of the current Vivado session
Inputs: no named parameters.
set_simulation_topB
Set the top module for simulation
Inputs: top_module (required), fileset.
start_sessionA
Start a persistent Vivado TCL session. Must be called before other commands.
Inputs: vivado_path.
step_simulationB
Step the simulation by a delta cycle or time step
Inputs: count.
stop_sessionA
Stop the Vivado TCL session and free resources
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 40 tools
Most tools have clearly distinct purposes, but there is some overlap between get_simulation_objects and get_scopes (both list simulation objects), and between get_signal_value and get_signal_values (single vs pattern). Overall, an agent can distinguish most tools.
All tool names consistently use verb_noun in snake_case (e.g., add_breakpoint, generate_bitstream, run_synthesis). No mixed conventions or inconsistent patterns.
40 tools is high but appropriate for a comprehensive FPGA design tool covering synthesis, implementation, simulation, reporting, and session management. Slightly above typical MCP server count, but each tool serves a specific purpose.
The tool surface covers the main Vivado workflows: project management, synthesis, implementation, bitstream generation, simulation, and reporting. Minor gaps exist (e.g., updating constraints, IP management), but core operations are present.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Related MCP Servers
- FlicenseCqualityDmaintenanceAn AI-centric MCP server that enables automated Xilinx Vivado workflows, including project management, synthesis, implementation, and timing analysis. It allows AI agents to drive hardware design processes while integrating directly with the official Vivado GUI for visual context.154-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with KiCAD for PCB design automation.63 npmMIT
- FlicenseBqualityDmaintenanceA Model Context Protocol server that lets AI clients operate AMD Vivado through safe, workflow-level tools while allowing the user to watch and interact with the Vivado GUI.211-
- AlicenseNot gradedqualityDmaintenanceA lean MCP server that lets AI agents drive Xilinx Vivado for synthesis, implementation, simulation, and diagnostics through 30 curated tools and raw Tcl execution.Apache 2.0