multisim-mcp
Allows AI agents to automatically generate Multisim circuits, run DC/AC/transient simulations, extract experimental data, and export schematics, CSV, waveform diagrams, and Markdown experiment reports.
Click on "Install 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., "@multisim-mcpCreate a voltage divider circuit, simulate DC operating point, and generate a lab report."
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.
Multisim MCP + Skills
让 AI Agent 根据实验要求自动生成 Multisim 电路、运行仿真、提取实验数据,并导出 电路图、CSV、波形图和实验报告。
当前稳定发行版为
v1.0.0。项目非 NI 官方产品,需要本机安装并授权 Multisim 14+;当前 COM 运行时使用 32 位 Python。
四个开发阶段和 1.0 发布门禁见 1.0 路线图。
PyPI 安装包 · 官方 MCP Registry 条目 · GitHub Release
开源发布状态
1.0.0 已发布到 PyPI,并以 io.github.yxy050208/multisim-mcp 收录到官方
MCP Registry。由本地 NI 样例提取的 XML 模板不属于
MIT 代码授权范围,公开仓库默认不应包含这些文件。用户需要运行
tools/bootstrap_local_component_pack.py,从自己已授权的 Multisim 安装生成本地模板包。
请不要上传 analysis/、.ms14、解码 XML、类型库转储、实验输出或当前包含 142 个
本地模板的开发 wheel。完整发布步骤见 docs/PUBLISHING.md。
Related MCP server: SPICEBridge
已实现的完整闭环
run_circuit_experiment 可以从同一份受限 SPICE 网表完成:
网表和实验命令安全校验。
生成可编辑
.ms14原理图。由真实 Multisim 打开并反向枚举验证。
导出原理图 PNG。
运行 DC、AC、瞬态或工作点实验。
导出 raw、CSV、SVG 波形和命令日志。
生成 Markdown、中英双语独立 HTML/PDF 报告及带 SHA-256 的
manifest.json。
对于较长实验,submit_circuit_experiment 持久任务接口会立即返回
job_id,可通过 get_experiment_job、list_experiment_jobs、
cancel_experiment_job、retry_experiment_job 或 multisim://jobs/{job_id} 查询、
取消和重试任务。每个实验
运行在隔离 worker 进程中;worker 崩溃或心跳超时不会拖垮 MCP 服务,服务重启后未完成
任务会安全地重新排队。
1.0 还加入了可计算的设计验收与批量实验:
run_verified_circuit_experiment接收版本化ExperimentSpec,自动测量增益、 带宽、截止频率、上升时间、过冲、纹波、功耗等指标,并把逐项pass/fail/unverified结论写入verification.json和实验报告。measure_experiment与verify_experiment_requirements可对已注册实验重新计算 指标;信号或证据缺失时只返回unverified,不会猜测结果。plan_experiment_sweep、run_experiment_sweep、submit_experiment_sweep支持 参数、容差、温度与可复现 Monte Carlo 扫描。每次扫描最多 100 个运行点,长扫描 复用持久任务的取消、超时、崩溃恢复与输出锁。扫描输出
summary.json、扁平data.csv和每个运行点的原始产物,并通过multisim://sweeps/{sweep_id}/summary|data读取。
验收请求的核心结构如下;operator 支持 at_least、at_most、between 和
approximately:
{
"spec": {
"schema_version": 1,
"title": "分压器验收",
"netlist": "VIN vin 0 DC 10\nR1 vin vout 1k\nR2 vout 0 1k\n.end\n",
"commands": "dc VIN 0 10 1",
"requirements": [
{
"id": "gain",
"metric": "gain",
"signal": "V(vout)",
"reference_signal": "V(vin)",
"operator": "approximately",
"target": 0.5,
"tolerance_percent": 1
}
],
"theoretical_values": {"gain": 0.5}
},
"output_dir": "C:\\experiments\\divider-verified"
}扫描的 mode 可设为 parameter、tolerance、temperature 或
monte_carlo。元件数值使用有限数字替换已声明的 {{NAME}} 占位符;建议先调用
plan_experiment_sweep 检查完整展开结果,再提交真实运行。
已经在 Multisim 14.3 上完成分压器、耦合电感、数字门/JK 时序以及 函数发生器 + 示波器联合实验的真实验证。
1.0 加入不分发 NI 数据库资产的可移植元件与数据仪器:
@TRANSFORMER、@POTENTIOMETER、@RELAY、@CRYSTAL、功率二极管/MOS;@DFF、@TFF、@COUNTER4、@SHIFT_REGISTER4、@ADC1、@DAC1;read_virtual_multimeter、analyze_bode_response和analyze_logic_signals;export_formal_experiment_report,以及 5 个新的正式报告/清单 Resource。
适配器语法与社区 JSON 接口见 docs/COMPONENT_ADAPTERS.md,
真实版本边界见 docs/COMPATIBILITY.md。
1.0 真实回归覆盖适配器原理图打开/回导、变压器瞬态、继电器与功率器件工作点、
晶振 AC、DFF 瞬态以及双语正式报告的完整事务发布。
能力成熟度
稳定:
Multisim COM 连接、打开、保存、枚举和导出。
DC/AC/瞬态分析、波形输入注入、RLC 读写。
安全子集 SPICE 实验和 raw/CSV 解析。
MCP stdio、运行环境诊断和报告生成。
持久实验队列、进度/取消/超时、输出锁和崩溃/无响应 worker 恢复。
版本化实验指标、严格 PASS/FAIL/未验证判定,以及四类确定性批量扫描。
实验性:
自动原理图支持 R/L/C、标量及波形电压/电流源、B/E/F/G/H 受控源、 K/T/O/U 耦合与传输线、二极管、NPN/PNP、NMOS/PMOS、JFET/MESFET、 电压/电流控制开关、五端运放及 2–16 端通用 X 子电路;扩展族暂用通用载体符号。生成后会通过 Multisim 反向网表确认器件没有被静默丢弃。
已加入原生 NOT/AND/OR/NAND/NOR/XOR/XNOR 和 JK 触发器预览; 原理图打开/回导、组合逻辑真值表和 JK 翻转时序均已真实验证。
支持原生 XFG 函数发生器和四通道 XSC 示波器状态,实验波形同时导出为 CSV、SVG 和 Markdown 报告。
自动生成的原理图探针暂不作为实验数据来源;实验数据来自同一网表经 Multisim 命令引擎执行的结果。
快速开始
从 PyPI 安装到 32 位 Python 环境:
C:\path\to\python32\python.exe -m pip install "multisim-mcp==1.0.0"
C:\path\to\python32\Scripts\multisim-mcp.exeLinux/Docker 仅提供 MCP 工具发现和兼容性诊断,不能运行 Multisim 仿真。容器中的
runtime_status 会返回 introspection-only;所有 COM 自动化能力仍要求上述 Windows
环境。根目录 Dockerfile 用于 Glama 等目录验证 MCP 协议和工具定义。
从源码安装并生成本地元件模板包:
cd mcp_server
.\setup.ps1 -Python C:\path\to\python32\python.exe
npm install --global electronics-workbench-decoder@0.2.0
cd ..
$env:PYTHONPATH = (Resolve-Path .\mcp_server).Path
C:\path\to\python32\python.exe .\tools\bootstrap_local_component_pack.py `
--output C:\MultisimMcp\component-pack
$env:MULTISIM_MCP_TEMPLATE_DIR = 'C:\MultisimMcp\component-pack'
cd mcp_server
.\run_server.ps1模板包生成器会连接已授权的 Multisim,并新建一个临时空白电路以取得与当前安装版本 一致的工程骨架;执行前请保存正在编辑的工作。alpha 版本生成的 schema 1 包需要重建。
v1.0.0 提供安装诊断和配置生成命令。默认情况下它们不会启动
Multisim,也不会修改现有客户端配置:
# 人类可读诊断;完整工作流未就绪时给出逐项修复建议
C:\path\to\python32\Scripts\multisim-mcp.exe doctor --lang zh
# 可选:显式启动/连接 Multisim,验证许可证和 COM 激活
C:\path\to\python32\Scripts\multisim-mcp.exe doctor --lang zh --connect
# 便于 Agent/脚本解析的稳定 JSON;--strict 可用于 CI
C:\path\to\python32\Scripts\multisim-mcp.exe --json doctor
# 输出 Claude Desktop JSON 片段
C:\path\to\python32\Scripts\multisim-mcp.exe config `
--client claude-desktop `
--python C:\path\to\python32\python.exe `
--template-dir C:\MultisimMcp\component-pack
# 输出 Codex config.toml 片段
C:\path\to\python32\Scripts\multisim-mcp.exe config `
--client codex `
--python C:\path\to\python32\python.exe `
--template-dir C:\MultisimMcp\component-pack配置生成器默认只打印可复制片段;--output 写入新文件,除非再传入 --force,
否则不会覆盖已有文件。它不会自动合并 Claude Desktop 或 Codex 的现有配置。
手工 MCP 客户端配置:
{
"mcpServers": {
"multisim": {
"command": "C:\\path\\to\\python32\\python.exe",
"args": ["-m", "multisim_mcp.server"]
}
}
}详细安装、工具、安全开关和测试说明见 mcp_server/README.md。
元件覆盖和剩余边界见 docs/COMPONENT_COVERAGE.md。
从 alpha 升级请阅读 docs/MIGRATION_TO_1.0.md;任务与
实验恢复流程见 docs/RECOVERY.md。
仓库结构
mcp_server/:MCP server、COM adapter、原理图构建器和测试。skills/multisim-workflow/:面向 Agent 的实验工作流。docs/:架构、实测流程和能力边界。analysis/、tools/:互操作研究材料;发布前需要独立做来源和隐私审计。
安全
默认只允许
op、dc、ac、tran实验命令。任意 Multisim 命令文件默认关闭,需要显式不安全环境开关。
MCP 启动过程不会自动安装 Python 或 npm 依赖。
默认拒绝覆盖已有实验文件。
仅适合可信本机 stdio 使用,不应直接暴露到网络。
详见 SECURITY.md。
License
项目自有代码采用 MIT License。NI Multisim、商标、格式以及本地安装样本仍受其各自 权利和许可条款约束。本仓库不应提交 NI 二进制、许可证材料或未确认可再分发的样本。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides AI agents with instant, structured access to electronic component datasheets, pinouts, and electrical specifications without requiring PDF uploads. It enables seamless part searching, design validation, and side-by-side component comparisons across major hardware providers.12509MIT
- AlicenseBqualityDmaintenanceAI-powered circuit design through simulation — an MCP server that gives language models direct access to SPICE circuit simulation via ngspice, enabling natural language circuit description and automated netlist generation, simulation, measurement, and spec verification.2828GPL 3.0
- Alicense-qualityBmaintenanceEnables AI assistants to directly control NI oscilloscopes (e.g., PXIe-5160/5164/5110) through the Model Context Protocol, including waveform acquisition, measurement, and configuration.MIT
- Alicense-qualityBmaintenanceGenerates, simulates, and inspects LTspice circuits via MCP tools and resources, providing structured JSON interfaces for AI agents.MIT
Related MCP Connectors
Electronic component datasheets for AI agents — specs, pinouts, package data on demand.
Build, validate, and deploy multi-agent AI solutions from any AI environment.
Create and manage AI agents that collaborate and solve problems through natural language interacti…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yxy050208/multisim-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server