Vivado MCP Server
The Vivado MCP Server enables LLM clients to control a persistent AMD/Xilinx Vivado TCL session natively on Windows via the Model Context Protocol (MCP), avoiding repeated startup costs and without creating distracting command prompt windows.
Start a session (
start_session): Launch a persistent Vivado TCL session (vivado.bat -mode tcl), optionally specifying a custom path tovivado.bat. Reuses an existing session if one is already running.Execute TCL commands (
run_tcl_command): Send arbitrary TCL commands to the live Vivado session and retrieve the output. Auto-starts a session if none is active. Supports an optional per-command timeout.Check session status (
session_status): Retrieve the current status and statistics of the running session (e.g., uptime, command counts).Stop the session (
stop_session): Gracefully terminate the Vivado process and free associated resources.
Allows controlling an AMD/Xilinx Vivado TCL session for FPGA design, including starting sessions, executing TCL commands, checking status, and stopping sessions.
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 Serverrun the TCL command: synth_design -top top_module"
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 (Windows-Native)
Vivado MCP Server is a Model Context Protocol (MCP) server that lets LLM clients control a persistent AMD/Xilinx Vivado TCL session on Windows.
It is designed to avoid the pexpect dependency and run reliably on native
Windows by using subprocess.Popen plus a background stdout reader thread.
Why use this
Persistent Vivado process to avoid repeated startup cost.
Windows-native process handling (no POSIX pseudo-terminal requirement).
Clean tool API for MCP clients.
No command prompt popup windows (
CREATE_NO_WINDOW).
Related MCP server: Vivado MCP
Requirements
Windows 10/11
Python 3.10+
Vivado installed locally
uv(recommended) orpip
Quick install
Option A: local development install (uv)
git clone <your-repo-url>
cd vivado-mcp-win
uv syncOption B: install from package index (when published)
pip install vivado-mcp-winVivado path configuration
The server resolves vivado.bat in this order:
start_sessiontool argumentvivado_pathEnvironment variable
VIVADO_BAT_PATHPATH lookup (
vivado.batorvivado)Fallback
C:\VIVADO\2025.2\Vivado\bin\vivado.bat
Recommended: set VIVADO_BAT_PATH explicitly.
PowerShell example:
$env:VIVADO_BAT_PATH = "C:\Xilinx\Vivado\2025.2\bin\vivado.bat"Run the MCP server
From source checkout:
uv run vivado-mcpFrom installed package:
vivado-mcpNote: this is a stdio MCP server, so it waits for MCP messages from a client. Running it directly in a terminal will appear idle.
MCP client configuration
Use the vivado-mcp command as a stdio server in your MCP client config.
Generic example:
{
"mcpServers": {
"vivado": {
"command": "vivado-mcp",
"args": [],
"env": {
"VIVADO_BAT_PATH": "C:\\VIVADO\\2025.2\\Vivado\\bin\\vivado.bat"
}
}
}
}If your client runs inside this repository, you can also use:
{
"mcpServers": {
"vivado": {
"command": "uv",
"args": ["run", "vivado-mcp"],
"env": {
"VIVADO_BAT_PATH": "C:\\VIVADO\\2025.2\\Vivado\\bin\\vivado.bat"
}
}
}
}Exposed MCP tools
start_session: starts or reuses a persistent Vivado session.run_tcl_command: executes TCL in the live session.session_status: returns session status and metrics.stop_session: stops the running session.
Development
Install dev dependencies:
uv sync --group devRun lint:
uv run ruff check .Run tests:
uv run pytestPublish checklist
Update project URLs in
pyproject.toml.Bump version.
Build package:
uv buildPublish (example with trusted publisher or token):
uv publishTroubleshooting
Error
Vivado executable not found: setVIVADO_BAT_PATHor passvivado_pathtostart_session.Session timeout on startup: increase startup timeout in code or ensure Vivado installation is healthy and licensed.
Import errors in editor for
mcp.*: runuv syncand ensure VS Code uses the project virtual environment.
Available Tools
4 toolsrun_tcl_commandA
Send an arbitrary TCL command to the persistent Vivado session and return its output. Auto-starts a session if none exists.
Inputs: command (required), timeout.
session_statusA
Return status/statistics for the current Vivado session.
Inputs: no named parameters.
start_sessionA
Start a persistent Vivado TCL session (vivado.bat -mode tcl). Optionally override the vivado.bat path. Reuses an existing session if one is already running.
Inputs: vivado_path.
stop_sessionB
Stop the running Vivado session and free resources.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
TDQS
Scored across 4 tools
Each tool targets a distinct aspect: running commands, querying status, starting, and stopping the session. No ambiguity between them.
All tools use consistent snake_case verb_noun naming (run_tcl_command, session_status, start_session, stop_session), following the same pattern.
For a Vivado session manager, 4 tools is slightly thin but covers the essential lifecycle and command execution. Could be expanded with project or file operations.
The set covers session management and command execution fully. Missing an explicit health check or reset, but most workflows are supported.
Maintenance
Related MCP Connectors
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI clients to directly launch, control, and analyze AMD/Xilinx Vivado on Windows and Linux, supporting project management, synthesis, implementation, bitstream generation, timing/resource analysis, and simulation through a persistent Tcl session.43 PyPIMIT
- AlicenseBqualityCmaintenanceEnables AI coding assistants to drive Xilinx Vivado through natural language, letting users open .xpr projects, run synthesis, implementation, and bitstream generation, inspect timing, resource, and clock reports, and launch simulations to read signal values or set breakpoints. It also exposes design hierarchy queries and arbitrary TCL execution, so FPGA design flows can be operated conversationally on Windows.40MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI agents such as Claude Code, Cursor, and Codex to safely drive a locally installed Xilinx Vivado through 32 curated tools spanning GUI, Tcl, and attach sessions, synthesis, implementation, timing, CDC, XDC, IP, waveforms, and device programming. It provides structured timing evidence with baseline comparison, offline VCD queries for unknown values and handshake events, environment self-checks, and Chinese-language diagnosis of timing issues and CRITICAL WARNINGs.-
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to safely drive a locally installed Xilinx Vivado FPGA flow, covering session control, synthesis, implementation, timing and CDC analysis, XDC constraints, IP inspection, waveform queries, and device programming with structured, evidence-based diagnostics.-