# microcap-mcp

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 5 repo stars
- Author: monoxide-xen
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/monoxide-xen/microcap-mcp
- Updated: 2026-07-26
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/microcap-mcp

## What it 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.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `MICROCAP_HOME` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env MICROCAP_HOME=<MICROCAP_HOME> --transport stdio microcap-mcp -- uvx microcap-mcp
```
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>

### Codex

**Platform CLI**
```bash
codex mcp add microcap-mcp --env MICROCAP_HOME=<MICROCAP_HOME> -- uvx microcap-mcp
```
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>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "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>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "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>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e MICROCAP_HOME=<MICROCAP_HOME> microcap-mcp uvx microcap-mcp
```
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>

## When to use it
- 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
- 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

## Similar
- [Multisim MCP](https://affpapa.org/en/nevibecode/mcp/multisim-mcp.md) — MCP server · ★ 48 repo stars
- [spice-sim](https://affpapa.org/en/nevibecode/skills/spice-sim.md) — skill · 1300 installs
- [spice](https://affpapa.org/en/nevibecode/skills/spice.md) — skill · 790 installs
- [emc](https://affpapa.org/en/nevibecode/skills/emc.md) — skill · 783 installs
- [mil-hdbk-338](https://affpapa.org/en/nevibecode/skills/mil-hdbk-338.md) — skill · ★ 93 repo stars
- [rftools](https://affpapa.org/en/nevibecode/mcp/rftools.md) — MCP server · ★ 8 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
