Microcap Mcp

io.github.monoxide-xenPublished by GitHub account monoxide-xenv0.1.1Updated Oct 24, 2026

Simulate, generate and draw analog circuits in Micro-Cap 12: SPICE analyses, sweeps and schematics

VerifiedSTDIODesktop onlyDeveloper ToolsAI & ML

Overview

AI-generated overview

Lets an assistant build, simulate, and draw analog circuits in Micro-Cap 12 through its batch mode.

What you can do
The server drives Micro-Cap 12's documented batch mode to run SPICE analyses such as transient, AC, DC, distortion, and stability, plus operating points and sweeps. It can generate circuits from scratch using eight amplifier and network templates with automatic biasing, and it renders .CIR files to SVG in a layout matching Micro-Cap, optionally annotated with operating-point voltages. It also searches and simulates roughly 490 example circuits shipped with Micro-Cap.
When to use it
Use it when an assistant needs to design or check analog circuits, run SPICE simulations, sweep parameters, or produce schematic drawings and plots without opening the Micro-Cap GUI. It suits electronics work where Micro-Cap 12 is already the tool of choice.
Requirements
Windows, Python 3.11 or newer, and an installed copy of Micro-Cap 12. The package is distributed on PyPI and can be launched with uvx. The optional environment variable MICROCAP_HOME points to the folder containing mc12_64.exe when automatic discovery fails. No accounts or API keys are declared.
Before you install
The server runs Micro-Cap 12 locally and writes simulation and schematic output files; review generated files before relying on them. It is desktop-only and requires the proprietary Micro-Cap 12 installation, which is not bundled. Simulation results come from an external solver and should be checked against expectations.

Installation

In SourceWeft

  1. Open Microcap Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

microcap-mcp

ИИ-агент строит, считает и рисует аналоговые схемы в Micro-Cap 12.

[tests] [License: MIT] [Python 3.11+] [Windows] [MCP]

Русский · English

[Сгенерированный каскад с общим эмиттером, отрисованный 1:1 с Micro-Cap, с наложенной рабочей точкой] [АЧХ, посчитанная Micro-Cap]

Схему нарисовал сам сервер (1:1 с Micro-Cap, с рабочей точкой) · график посчитал Micro-Cap


Работает через штатный batch-режим Micro-Cap (MC12 @batch.bat) — headless, без GUI-автоматизации и без модификации программы.

Что делает

🔧 Строит схемы с нуля — 8 генераторов каскадов (общий эмиттер, повторитель, MOSFET, дифпара, токовое зеркало, каскод, ОУ, RLC) с авто-смещением. Каждый сверен с теорией: усиление, рабочая точка, резонанс.

📊 Считает — transient / AC / DC / искажения / устойчивость, рабочая точка, свипы. Комплексный вывод как {re, im}, диагностика солвера.

🎨 Рисует — сам рендерит .CIR в SVG 1:1 с Micro-Cap: родные символы из библиотеки MC, сетка, все повороты и отражения, раскладка подписей. Накладывает напряжения рабочей точки. /IC в batch-режиме MC этого не умеет — а сервер умеет.

Установка

Нужен Windows, Python 3.11+ и установленный Micro-Cap 12 (фримварь). Клонировать ничего не надо — укажи в MCP-клиенте, и uvx сам скачает пакет:

jsonc
{  "mcpServers": {    "microcap": {      "command": "uvx",      "args": ["microcap-mcp"],      "env": { "MICROCAP_HOME": "E:/Tools/MC12" }   // только если автопоиск не нашёл    }  }}

Драйвер сам ищет Micro-Cap в типовых местах; MICROCAP_HOME укажи на папку с mc12_64.exe, если он лежит нестандартно.

Из исходников
bash
git clone https://github.com/monoxide-xen/microcap-mcpcd microcap-mcpuv sync
jsonc
{  "mcpServers": {    "microcap": {      "command": "uv",      "args": ["--directory", "C:/path/to/microcap-mcp", "run", "microcap-mcp"]    }  }}

Инструменты

ИнструментЧто делает
simulate · sweep · plotпосчитать SPICE-нетлист, свип по .DEFINE, график в JPEG
generate_transistor_amplifier · _emitter_follower · _mosfet_amplifierкаскады на транзисторе / MOSFET, авто-смещение под середину питания
generate_differential_pair · _current_mirror · _cascode · _amplifierдифпара, зеркало, каскод, усилитель на ОУ
generate_schematicисточник + R/C/L последовательно и параллельно (RC/RL/RLC, делители, контуры)
simulate_schematic · plot_schematicпосчитать / построить график произвольной .CIR
draw_schematic · annotate_schematicнарисовать .CIR в SVG (1:1 с MC) · с рабочей точкой на схеме
simulate_example · search_examples · get_example · describe_example · list_domains~490 эталонных схем из поставки MC: поиск, исходник, анализы

Плюс ресурсы microcap://guide и microcap://domains и промпт analyse_circuit — чтобы агент не дал MC молча соврать.

Тесты

bash
uv run pytest        # 138 юнит без Micro-Cap; +30 интеграционных против физики (нужен MC)

Без Micro-Cap интеграционные пропускаются — CI остаётся зелёным.

Как это устроено

  • Особенности Micro-Cap — поведение, которого нет в мануале (а местами оно мануалу противоречит).
  • eval/harness.py — прогон всех ~490 схем поставки с раскладкой провалов по причинам (сейчас 88% отвечают).

Лицензия

MIT на код репозитория. Micro-Cap 12 принадлежит Spectrum Software — не включён, не перезалит, не модифицирован: используется его документированный CLI.

Source: README.md at commit db9c4d0

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts