1. Conduid
  2. Blockchain
  3. Vivado MCP
MCP server · Blockchain

Vivado MCP

Vivado MCP server — 让 Claude Code / Cursor / Codex 驱动本地 FPGA 全流程。30 个精选工具、8 个证据驱动 Prompt、doctor 环境自检、GUI/Tcl/attach 会话,以及时序和 CRITICAL WARNING 中文诊断。

82Strong

Scored 4 hours ago · breakdown

About Vivado MCP

Vivado MCP is an MCP server published by mapleleavessssssss-wq in the Blockchain category: vivado MCP server — 让 Claude Code / Cursor / Codex 驱动本地 FPGA 全流程。30 个精选工具、8 个证据驱动 Prompt、doctor 环境自检、GUI/Tcl/attach 会话,以及时序和 CRITICAL WARNING 中文诊断。. Conduid read 32 tools from its source: check_bitstream_readiness, compare_xci, generate_bitstream, get_cdc_report, get_critical_warnings, get_io_report and 26 more. It is published to PyPI as vivado-mcp and runs with uvx.

The repository has 181 stars and 41 forks, is licensed Apache-2.0, and its last commit was on 2 Nov 2026. The latest release is v0.3.26 (22 Sep 2026): 本版将 FPGA 诊断与工作流升级正式打包发布:32 个 MCP 工具、11 个 Prompt、5 份 Skills。 主要变化 时序证据:支持结构化 JSON、离线报告与基线比较;修正设计阶段和烧录就绪的证据判断。 CDC 报告:新增 get_cdc_report,支持现场与离线分析,区分检查项、时钟对、明细及豁免;缺失证据保持未验证… It follows v0.3.25 (9 Aug 2026), and the 4 most recent releases go back to v0.3.23 (15 Jun 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Dependencies pinned. Its topics include eda, fpga, hardware-debugging, tcl, verilog and vivado.

Install

uvx
uvx vivado-mcp
pip
pip install vivado-mcp
From source
git clone https://github.com/mapleleavessssssss-wq/vivado-mcp

Tools (32)

check_bitstream_readiness检查比特流生成前的实现状态、时序摘要和严重警告。
ParameterTypeDescription
impl_runstring实现 run 名称,默认 "impl_1"。
session_idstring目标会话 ID。
compare_xci对比两个 XCI 文件的 IP 配置差异。
ParameterTypeDescription
file_a *string第一个 XCI 文件路径(如基准/正常配置)。
file_b *string第二个 XCI 文件路径(如待检查/异常配置)。
show_allboolean是否显示所有参数(默认仅显示差异)。
generate_bitstream生成比特流文件。在实现完成后执行。
ParameterTypeDescription
forceboolean跳过 CRITICAL WARNING 安全检查,默认 False。
impl_runstring实现 run 名称,默认 "impl_1"。
jobsinteger并行任务数,默认 4。
session_idstring目标会话 ID。
timeout_minutesinteger超时分钟数,默认 30。
get_cdc_report解析 CDC 报告,按时钟对、严重级别和规则计数并返回有界明细 JSON。
ParameterTypeDescription
max_detailsinteger返回明细上限,0..500;超过上限仍统计完整输入并明确截断。
report_filestring可选本地原始 report_cdc -details 文本,最多 16 MiB,无需会话。
session_idstring现场查询会话 ID。
get_critical_warnings提取并分类 CRITICAL WARNING / ERROR / 非标错误,统一失败诊断入口。
ParameterTypeDescription
compare_with_lastbooleanTrue 时追加一段与上次快照的差分报告(仅对综合/实现有效)。
run_namestringrun / fileset 名称(如 ``synth_1`` / ``impl_1`` / ``sim_1``), 默认 ``impl_1``。``sim_*`` 走 simulation 日志诊断路径。
session_idstring目标会话 ID。
tail_ninteger非标错误扫描时每个日志 tail 的末尾行数,默认 50,范围 1~500。 仿真模式适用于每个 xsim 子日志。
get_io_report获取结构化 IO 引脚报告(JSON)。
ParameterTypeDescription
session_idstring目标会话 ID。
get_ip_status检查项目中所有 IP 的版本状态(哪个需要升级、哪个已锁定)。
ParameterTypeDescription
session_idstring目标会话 ID。
get_next_suggestion根据当前项目状态推断下一步应该做什么。
ParameterTypeDescription
session_idstring目标会话 ID。
get_pre_commit_summary生成一段可以贴进 git commit body 的工程摘要(时序/资源/CW)。
ParameterTypeDescription
impl_runstring用来查 runme.log 计数的 run(默认 impl_1)。
session_idstring目标会话 ID。
get_project_info获取当前 Vivado 项目的综合信息(项目名 / part / 顶层 / 文件列表 / IP / run 状态)。
ParameterTypeDescription
session_idstring目标会话 ID。
get_run_progress查看 run 的运行进度(适合长任务等待时看"走到哪一步")。
ParameterTypeDescription
run_namestringrun 名称(如 "synth_1" / "impl_1"),默认 "impl_1"。
session_idstring目标会话 ID。
tail_linesinteger日志尾部要读多少行,默认 30。
get_timing_report获取结构化时序报告。
ParameterTypeDescription
baseline_filestring可选之前保存的完整 JSON 返回值路径,最多 4 MiB。
output_formatstringtext(默认)或 json;json 模式错误也返回 JSON。
report_filestring可选原始时序报告路径,最多 16 MiB;不是 JSON 快照。
session_idstring目标会话 ID。
get_utilization_report获取资源占用摘要(LUT/FF/BRAM/DSP/IO)。
ParameterTypeDescription
detailbooleanTrue 时末尾附加 Block RAM 明细段(RAMB36/FIFO* / RAMB36E1 only / RAMB18 的 used/available)。默认 False,输出与原有格式一致。
session_idstring目标会话 ID。
inspect_ip_params查询 IP 实例的所有配置参数(含 GUI 中隐藏的参数)。
ParameterTypeDescription
filter_keywordstring可选过滤关键词(如 "gt"、"loc"、"lane"),不区分大小写。
ip_name *stringIP 实例名称(如 "xdma_0")。
session_idstring目标会话 ID。
list_sessions列出所有活跃的 Vivado 会话及其状态。
parse_bit_header离线解析 .bit 比特流文件头部,无需启动 Vivado。
ParameterTypeDescription
file_path *string.bit 文件的绝对路径。
parse_ltx离线解析 ILA 调试探针文件(.ltx),无需连板 / 启动 Vivado。
ParameterTypeDescription
file_path *string.ltx 文件的绝对路径。
parse_xpr离线解析 Vivado 工程文件(.xpr),无需启动 Vivado。
ParameterTypeDescription
file_path *string.xpr 工程文件的绝对路径。
program_device编程 FPGA 设备。封装 open_hw_manager → connect → program 多步操作。
ParameterTypeDescription
bitstream_path *string比特流文件路径(.bit 文件)。
hw_server_urlstring硬件服务器地址,默认 "localhost:3121"。
session_idstring目标会话 ID。
targetstring目标设备过滤器,默认 "*"(第一个可用设备)。
query_waveform离线发现 VCD 信号或查询有界波形变化,返回 JSON。
ParameterTypeDescription
conditionobject可选结构化条件,信号须已选中,位值为二进制字符串(可 x/z)。 {"op":"equals","signal":"top.data","value":"0001"}; {"op":"change","signal":"top.data"}; {"op":"unknown","signal":"top.data"}; {"op":"all_equals","values":{"top.valid":"1","top.ready":"1"}}。 不支持表达式、通配符或 eval;短位值按 VCD 宽度扩展。
end_timeinteger包含此时刻的结束 tick,默认读到文件末尾。
file_path *string本地 VCD 文件路径。
max_eventsinteger1..1000,变化/条件匹配上限,发现模式用作信号上限。
signalsarray最多 32 个精确层级路径,如 top.data;为空时发现信号/层级。
start_timeinteger非负整数 VCD tick,默认 0。
run_implementation启动实现(布局布线);默认等待完成,也可异步提交。
ParameterTypeDescription
jobsinteger并行任务数,默认 4。
run_namestring实现 run 名称,默认 "impl_1"。
session_idstring目标会话 ID。
timeout_minutesinteger超时分钟数,默认 60。
waitbooleanTrue 等待完成并诊断;False 启动后立即返回 job_id。
run_synthesis启动综合;默认等待完成,也可异步提交后查询状态。
ParameterTypeDescription
jobsinteger并行任务数,默认 4。
run_namestring综合 run 名称,默认 "synth_1"。
session_idstring目标会话 ID。
timeout_minutesinteger超时分钟数,默认 30。
waitbooleanTrue 等待完成并诊断;False 启动后立即返回 job_id。
run_tcl执行任意 Vivado Tcl 命令。支持所有 Vivado Tcl API。
ParameterTypeDescription
command *stringTcl 命令文本(支持多行)。
session_idstring目标会话 ID,默认 "default"。
timeoutinteger命令执行超时秒数,默认 120。注意超时语义:超时只是 MCP 停止 等待并返回错误,**命令在 Vivado 里仍在继续跑**(不会被取消),后续 命令会排队等它跑完。长任务(综合/实现/比特流)请改用 run_synthesis / run_implementation / generate_bitstream (Python 轮询不阻塞),或按预期耗时调大本值。
safe_tcl执行带参数的 Tcl 命令模板,自动用 Tcl list 规则转义参数。
ParameterTypeDescription
argsarray参数值列表,将被自动转义。
session_idstring目标会话 ID,默认 "default"。
template *stringTcl 命令模板,用 {0}/{1}/... 表示参数位置。
timeoutinteger命令执行超时秒数,默认 120。
set_wave_analog把信号设为模拟(Analog)波形显示(纯 Tcl 配方,实测 Vivado 2019.1 可渲染)。
ParameterTypeDescription
heightinteger行高像素(存盘后在 wcfg 里叫 CellHeight)。
interpstring插值方式,白名单 LINEAR / HOLD。
maxnumberAnalogMax(必传,与 min 成对)。
minnumberAnalogMin(必传,与 max 成对)。
session_idstring目标会话 ID。
signals *array信号列表(短名或全路径,须已 add_wave 进波形)。
set_wave_zoom设置波形时间缩放窗口(改 wcfg XML 后 close -force + open 重载)。
ParameterTypeDescription
end_ns *number缩放结束时间(ns)。
session_idstring目标会话 ID。
start_ns *number缩放起始时间(ns),须 < end_ns。
wcfgstring显式 wcfg 磁盘路径;缺省自动解析 current_wave_config。
start_session启动一个新的 Vivado 会话。
ParameterTypeDescription
modestring``"gui"`` / ``"tcl"`` / ``"attach"``,默认 ``"gui"``。
portintegerTCP 端口语义(B 方案): - ``gui`` 默认 ``9999``:先 probe 9999,命中现有 vmcp server 则直接复用/ attach(单 GUI 自动复用,也避免抢端口产生孤儿);无则 spawn 并绑 9999。 - **多开独立实例**:传 ``port=0`` 自动分配一个空闲端口启动全新实例(零手动 配端口、跳过 probe),或给不同端口的显式值。注意:不传 port 时即便换 session_id 也会 probe/attach 到 9999 的同一个 GUI(不会自动多开),要独立 实例就传 ``port=0`` 或显式不同端口。 - ``attach`` 模式:要连接的现有 GUI 的显式端口(默认 9999)。
session_idstring会话标识符,默认 "default"。
timeoutinteger启动超时秒数,GUI 模式建议 120+。默认 120。
vivado_pathstring可选,自定义 Vivado 可执行文件路径。留空则自动检测。
stop_session关闭指定的 Vivado 会话。
ParameterTypeDescription
session_idstring要关闭的会话标识符。
verify_io_placement_tool验证 IO 引脚分配:比对 XDC 约束与实际布局。
ParameterTypeDescription
session_idstring目标会话 ID。
verilog_compile_check用 iverilog / verilator 做 Verilog 语法 + 连接性检查(比 Vivado 综合快 50 倍)。
ParameterTypeDescription
files *arrayVerilog / SystemVerilog 文件路径列表(.v / .sv)。 .vhd/.vhdl 不支持,返回 SKIP 并附替代方案指引(check_syntax)。
timeoutnumber子进程超时秒数,默认 30。
toolstring"auto"(默认,优先 iverilog) / "iverilog" / "verilator"。
xdc_auto_fix自动修复 XDC 文件中能安全自修的问题(MISSING_IOSTANDARD / CLOCK_NO_PERIOD)。
ParameterTypeDescription
boardstring板卡名,影响默认 IOSTANDARD 和时钟周期。支持: basys3 / nexys-a7 / arty-a7 / zybo / kc705。留空用 LVCMOS33 兜底。
dry_runbooleanTrue(默认)只输出补丁预览不改文件;False 实际写回。
session_idstring目标会话 ID(仅在不传 xdc_paths 时使用)。
xdc_pathsarrayXDC 文件路径列表。不传则从当前 session 的项目里抓。
xdc_lint对 XDC 约束文件做静态检查(pure Python,不依赖 Vivado 综合)。
ParameterTypeDescription
session_idstring目标会话 ID(仅在不传 xdc_paths 时使用)。
xdc_pathsarray要检查的 XDC 文件路径列表。若不传,则从当前 session 的项目里 自动抓取所有 constrs_1 下的 XDC 文件。

Security checks

Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 2.7K words.
  • ✓License declaredThe repository declares the Apache-2.0 license.
  • ✓Tests presentA test suite exists in the repository.
  • !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
  • ✓No dynamic code executionScanned 52 source files and found no eval, dynamic Function or shell execution.

1 check has not been run yet.

What the source scan found

Transport
stdiosrc/vivado_mcp/__main__.py:108
Starts other programs
5 callssrc/vivado_mcp/analysis/verilog_compile_check.py:281, src/vivado_mcp/vivado/gui_session.py:667, src/vivado_mcp/vivado/gui_session.py:949
Outbound network calls
No outbound network calls
Writes or deletes files
16 callssrc/vivado_mcp/analysis/warning_snapshot.py:115, src/vivado_mcp/analysis/warning_snapshot.py:205, src/vivado_mcp/analysis/wcfg_editor.py:110
Lockfile
None in the repository

Pattern matches on the source text of 52 files: places to read, not proof of what the code does at run time.

Releases

v0.3.26vivado-mcp v0.3.26 · 22 Sep 2026本版将 FPGA 诊断与工作流升级正式打包发布:32 个 MCP 工具、11 个 Prompt、5 份 Skills。 主要变化 时序证据:支持结构化 JSON、离线报告与基线比较;修正设计阶段和烧录就绪的证据判断。 CDC 报告:新增 `get_cdc_report`,支持现场与离线分析,区分检查项、时钟对、明细及豁免;缺失证据保持未验证。 波形查询:新增只读 `query_waveform`,支持 VCD 时间窗、值匹配、变化和 X/Z 查询。 五份 Skills…
v0.3.25vivado-mcp v0.3.25 · 9 Aug 2026重点更新 新增 `vivado-mcp doctor` 与稳定的 `--json` 输出,一次检查 Vivado、init Tcl、随机 token TCP 协议以及 Claude Code / Codex 配置。 新增受限的 `doctor --fix`:只修复明确可自动处理的配置,首次备份、原子替换,并通过内容 CAS 避免覆盖并发修改。 工作流 Prompt 从 5 个扩展到 8 个,新增仿真启动、CDC 审计和 ILA…
v0.3.24v0.3.24 — MCP SDK v2 compatibility + diagnostics and community fixes · 8 Aug 2026修复新安装环境被解析到 MCP Python SDK 2.x 后启动失败的问题,并发布 PR #3 的 SDK v2 迁移、社区兼容修复、诊断增强与 README 展示页改进。安装依赖现明确约束为 mcp>=2.0.0,<3。 What's Changed Handle IPDEF-only Vivado IP metadata by @czaozhiyuan in…
v0.3.23v0.3.23 — 3 离线 introspection 工具(parse_xpr/parse_bit_header/parse_ltx)+ 0.3.22 体检轮 · 15 Jun 2026[0.3.23] — 2026-06-15 本次 PyPI 发布(v0.3.23)同时包含下方 [0.3.22] 体检轮(此前已 commit 未 tag)。 2026-06-15 场景轮:discovery workflow(53 候选 → 对抗 facade 过滤掉 33 → 20 存活 → 7 shortlist)+ 真机经验性验证,落 3 个 G4 离线 introspection parser (用户选定)。工具数 27 → 30,全部纯 Python、零…

README

The repository's README runs to about 2.7K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Vivado MCP

How do I install Vivado MCP?

Run uvx vivado-mcp, then add the server to your MCP client's configuration.

Is Vivado MCP safe to use with an AI agent?

Its trust score is 82 out of 100 (strong). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Dependencies pinned. Conduid's scan of 52 source files found that it serves MCP over stdio, starts other programs (5 calls) and writes or deletes files (16 calls). It has no ConduID identity yet, so agent calls to it are not receipted.

Is Vivado MCP still maintained?

Yes — the latest release is v0.3.26 (22 Sep 2026), and the last commit was 29 days ago. The repository has 181 stars and 4 open issues.

What tools does Vivado MCP provide?

Conduid read 32 tools from the source: check_bitstream_readiness, compare_xci, generate_bitstream, get_cdc_report, get_critical_warnings, get_io_report, get_ip_status, get_next_suggestion and 24 more. 31 of them publish their parameters, listed under Tools above.

What license is Vivado MCP released under?

The repository declares the Apache-2.0 license. That applies to the latest release, v0.3.26, as well.