Spicebridge logo

Spicebridge

Community
clanker-lover

MCP server that gives AI assistants direct access to ngspice circuit simulation — design, simulate, and verify circuits through natural language

Publisherclanker-lover
Repositoryspicebridge
LanguagePython
Forks
9
Stars
41
Available tools
0
Transport typestdio
Categories
LicenseGPL-3.0
Links
  • Connect tools to AI workflows

    Spicebridge exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    41 stars and 9 forks from the linked repository.

SPICEBridge

AI-powered circuit design through simulation — an MCP server that gives language models direct access to SPICE circuit simulation via ngspice. Describe a circuit in plain English and let the AI handle netlist generation, simulation, measurement, and spec verification.

Features

  • 28 tools covering the full circuit design workflow
  • 11 built-in templates with automatic component value calculation (E24 series)
  • Simulation: AC sweep, transient, DC operating point
  • Measurement: bandwidth, gain, DC levels, transient metrics, power
  • Monte Carlo & worst-case analysis under component tolerances
  • Multi-stage composition — connect circuit stages with automatic port mapping
  • Model wizard — generate SPICE .lib models from datasheet parameters
  • KiCad export — output .kicad_sch schematics
  • Web viewer — interactive schematic viewer in the browser
  • Cloud setup wizard — one-command deployment with Cloudflare tunnels (spicebridge setup-cloud)
  • Spec verification — compare results against design targets

Install

bash
pip install spicebridge

Requirements

  • Python 3.10+
  • ngspice installed and on PATH

Quick Start

Local (Claude Code / stdio)

Add to your .mcp.json:

json
{
  "mcpServers": {
    "spicebridge": {
      "command": "spicebridge"
    }
  }
}

Cloud (Streamable HTTP)

bash
spicebridge --transport streamable-http --port 8000

Cloud Setup Wizard

One command to go from a local install to a public MCP endpoint:

bash
spicebridge setup-cloud          # interactive (named tunnel, permanent URL)
spicebridge setup-cloud --quick  # quick tunnel (temporary URL, no account needed)

The wizard handles the full deployment pipeline:

  1. Installs cloudflared automatically (macOS via Homebrew, Linux via APT) if not found
  2. Authenticates with Cloudflare (browser-based OAuth, named tunnel mode only)
  3. Creates or reuses a tunnel — prompts to pick an existing one or make a new one
  4. Configures DNS routing for your custom domain (named tunnel mode)
  5. Generates an API key for authentication
  6. Starts the SPICEBridge server and tunnel together
  7. Prints connection info with a ready-to-paste JSON config for Claude.ai

Quick tunnels give you a temporary trycloudflare.com URL instantly — no Cloudflare account required. Named tunnels give you a permanent custom domain (e.g. spicebridge.example.com).

Additional options:

bash
spicebridge setup-cloud --domain mcp.example.com  # specify custom domain
spicebridge setup-cloud --port 9000                # custom port
spicebridge setup-cloud --no-install               # skip cloudflared installation

Example

1. load_template("rc_lowpass_1st", specs={"f_3dB_hz": 1000})
   -> netlist with R=1.6k, C=100nF, circuit_id: "a1b2c3d4"

2. run_ac_analysis(circuit_id, start_freq=1, stop_freq=1e6)
   -> frequency response data

3. measure_bandwidth(circuit_id)
   -> f_3dB_hz: 995

4. compare_specs(circuit_id, specs={"f_3dB_hz": {"target": 1000, "tolerance_pct": 5}})
   -> PASS

5. draw_schematic(circuit_id)
   -> schematic SVG

Tools

Create & Configure

ToolDescription
create_circuitStore a SPICE netlist, returns a circuit ID
delete_circuitDelete a stored circuit and clean up resources
list_templatesList available circuit templates
load_templateLoad a template with parameter substitution
calculate_componentsCalculate component values from target specs
modify_componentChange a component value in a stored circuit
validate_netlistCheck a netlist for errors before simulation

Simulate

ToolDescription
run_ac_analysisAC frequency sweep
run_transientTransient (time-domain) analysis
run_dc_opDC operating point analysis

Measure

ToolDescription
measure_bandwidthFind -3 dB bandwidth from AC results
measure_gainMeasure gain at a specific frequency
measure_dcExtract DC operating point values
measure_transientMeasure time-domain characteristics
measure_powerCalculate power dissipation

Evaluate & Export

ToolDescription
get_resultsRetrieve last simulation results
compare_specsCheck measurements against target specs
draw_schematicGenerate a schematic diagram (PNG/SVG)
export_kicadExport as KiCad 8 schematic (.kicad_sch)
open_viewerStart the interactive web schematic viewer

Composition & Ports

ToolDescription
set_portsDefine port-to-node mappings for a circuit
get_portsReturn port definitions (auto-detect if unset)
connect_stagesCompose multiple stages into a single circuit

Advanced Analysis

ToolDescription
run_monte_carloMonte Carlo analysis under component tolerances
run_worst_caseWorst-case analysis at tolerance extremes
auto_designFull design loop in one call: template + simulate + verify

Model Management

ToolDescription
create_modelGenerate a SPICE .lib model from datasheet parameters
list_modelsList all saved models in the model library

Development

bash
git clone https://github.com/clanker-lover/spicebridge.git
cd spicebridge
pip install -e ".[dev]"
pytest

License

GPL-3.0-or-later

Installation

TypingMind
{
  "mcpServers": {
    "spicebridge": {
      "command": "spicebridge",
      "args": []
    }
  }
}

Use Spicebridge MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Spicebridge is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Spicebridge as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Spicebridge MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "spicebridge": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Spicebridge MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Spicebridge MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Spicebridge to help me with this task?
Spicebridge
Sure. I read it.
Here is what I found using Spicebridge.

Frequently asked questions

What is the Spicebridge MCP server used for?

Spicebridge is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Spicebridge MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Spicebridge with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Spicebridge MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Spicebridge connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Spicebridge MCP to TypingMind?

Spicebridge runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Spicebridge MCP provide in TypingMind?

Spicebridge exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Spicebridge MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Spicebridge requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇