ngspice-mcp
2
The ngspice-mcp project is an MCP server providing standardized protocol-based access to ngspice's circuit simulation capabilities. It supports structured data access and integrates seamlessly with ngspice, allowing for flexible simulation and data retrieval. Key features include vector data handling and comprehensive output management.
ngspice-mcp
A Model Context Protocol (MCP) server that provides access to ngspice circuit simulation functionality through a standardized protocol interface.
Features
- 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
- Built-in test suite
Requirements
- D compiler (DMD/LDC)
- ngspice shared library
- MCP server library (d-mcp-server)
- D build system (dub)
Usage
The server can be started with options to set the working directory. It supports loading circuit netlists, running simulations, and retrieving simulation data. Command line options and usage details are available for flexible operation.