microcap-mcp — Claude Code MCP server: what it does, how to install
microcap-mcp is a Claude Code MCP server that designs, simulates, and renders analog circuits via Micro-Cap 12. It executes SPICE batch runs in the background and exports SVG schematics.
MIT ★ 5 updated 2026-07-26
claude mcp add --env MICROCAP_HOME=<MICROCAP_HOME> --transport stdio microcap-mcp -- uvx microcap-mcpWhat microcap-mcp does
The server connects an assistant to Micro-Cap 12 using its native batch execution CLI without GUI automation. It constructs standard analog topologies with calculated DC bias points, including common-emitter amplifiers, source followers, differential pairs, current mirrors, cascodes, and op-amp stages.
Available tools handle transient, AC, DC, stability, and parameter sweep analyses. The built-in renderer converts .CIR files into SVG drawings using original component symbols, overlaying calculated operating-point voltages. The server also indexes roughly 490 factory example circuits provided with the simulator.
Execution requires Windows, Python 3.11 or newer, and an installed copy of Micro-Cap 12. When mc12_64.exe resides outside default directories, point the MICROCAP_HOME environment variable to its folder.
What it helps with
- run SPICE transient and AC sweeps inside Micro-Cap 12
- synthesize transistor amplifier stages with automatic DC bias
- convert .CIR schematics into standalone SVG diagrams with operating points
- inspect and simulate built-in Micro-Cap reference designs
Example prompts for the agent
- Synthesize an emitter follower stage for 9V supply and calculate its frequency response
- Simulate the operating point of this differential pair circuit and draw the annotated SVG
- Search the Micro-Cap example database for bandpass filter designs and run a sweep
How to install microcap-mcp
Platform CLI
claude mcp add --env MICROCAP_HOME=<MICROCAP_HOME> --transport stdio microcap-mcp -- uvx microcap-mcpReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from microcap-mcp <command>
Platform CLI
codex mcp add microcap-mcp --env MICROCAP_HOME=<MICROCAP_HOME> -- uvx microcap-mcpReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from microcap-mcp <command>
Config file
{
"mcpServers": {
"microcap-mcp": {
"command": "uvx",
"args": [
"microcap-mcp"
],
"env": {
"MICROCAP_HOME": "<MICROCAP_HOME>"
}
}
}
}Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from microcap-mcp <command>
Config file
{
"servers": {
"microcap-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"microcap-mcp"
],
"env": {
"MICROCAP_HOME": "<MICROCAP_HOME>"
}
}
}
}Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from microcap-mcp <command>
Platform CLI
gemini mcp add -e MICROCAP_HOME=<MICROCAP_HOME> microcap-mcp uvx microcap-mcpReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from microcap-mcp <command>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about microcap-mcp
How to install microcap-mcp in Claude Code?
Run claude mcp add microcap-mcp -- uvx microcap-mcp. If Micro-Cap is not in a standard directory, pass the variable: claude mcp add --env MICROCAP_HOME=<MICROCAP_HOME> --transport stdio microcap-mcp -- uvx microcap-mcp.
What does microcap-mcp do?
It gives AI agents access to Micro-Cap 12 for analog circuit design, automated headless SPICE simulations, and circuit diagram rendering.
What is required to run microcap-mcp?
You need Windows, Python 3.11+, uvx, and an installation of Micro-Cap 12. Non-standard installation folders require configuring MICROCAP_HOME.