Feedback

ngspice-mcp

@gtnoble Claim

Basic information

Runtime
d
Category
License
Not specified
Transports
stdio
Author
gtnoble
Submitted by
Community
Quality
20
Stars
19

About ngspice-mcp Server

An MCP server for interfacing with the ngspice circuit simulator

ngspice-mcp is a MCP server in the Other category listed in the AddMCP.net directory, published by gtnoble. Supported transport: stdio. Runtime: d. The repository has 19 GitHub stars. Source code is hosted on github.com.

ngspice-mcp config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

ngspice-mcp tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is ngspice-mcp?

A Model Context Protocol (MCP) server that provides access to ngspice circuit simulation functionality through a standardized protocol interface. It enables AI language models to interact with ngspice in a controlled and structured way.

How to use ngspice-mcp?

Build using dub build --config=server and run ./ngspice-mcp [options]. The server exposes tools for loading netlists, running simulations (e.g., op, dc, ac, tran), and retrieving vector data with multiple representation formats. The default working directory is the current directory; use --working-dir to change it.

Key features of ngspice-mcp

  • Integration with ngspice’s shared library interface
  • Standardized MCP protocol implementation
  • Synchronous operation with structured data access
  • Comprehensive output capture and redirection
  • Vector data handling with multiple representation formats
  • Support for both server and library usage modes

Use cases of ngspice-mcp

  • Load and simulate circuit netlists (DC, AC, transient)
  • Retrieve simulation results (vector data) in magnitude‑phase or rectangular form
  • Access ngspice output streams (stdout, stderr) as MCP resources
  • Programmatically control ngspice from AI language models

Frequently asked questions

1 What is ngspice?

ngspice is a mixed‑level/mixed‑signal circuit simulator. This server wraps its shared library via the MCP protocol.

2 What are the requirements to run ngspice-mcp?

You need a D compiler (DMD/LDC), the ngspice shared library, the MCP server library (d‑mcp‑server), and the D build system (dub).

3 How are circuit files and results stored?

Circuit netlists are loaded as text (string or file). Simulation results (vector data) are returned as structured MCP tool responses; model parameters can be stored in an internal SQLite database.

4 What transports and authentication does ngspice-mcp support?

The README does not mention specific transports (e.g., stdio/SSE) or authentication methods. It implements the standard MCP protocol.

5 What are the known limits?

The README does not list explicit limits. The server is designed for synchronous, structured interaction with ngspice and includes comprehensive error handling via output streams.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬