Content
# CST MCP Server
The CST Studio Suite 2026 MCP (Model Context Protocol) Server enables Claude Code to directly control CST to complete the entire modeling and simulation process.
## Environment Requirements
- Python >= 3.11
- CST Studio Suite 2026
- Windows
## Installation
```bash
pip install mcp
```
The CST Python API is provided with the CST installation package and does not require additional installation.
## Configure Claude Code
Add the following to `~/.claude/settings.json`:
```json
{
"mcpServers": {
"cst": {
"command": "python",
"args": ["C:/Users/lirui/Desktop/cst-mcp/cst_mcp_server.py"]
}
}
}
```
Restart Claude Code for the changes to take effect.
## Available Tools (29)
### Connection and Project
| Tool | Function |
|------|------|
| `cst_connect` | Connect to a CST instance |
| `cst_reconnect` | Reconnect |
| `cst_new_project` | Create a new project (mws/ems/ps/pcbs/mps) |
| `cst_open_project` | Open a .cst file |
| `cst_save_project` | Save/Save As |
| `cst_close_project` | Close a project |
### Simulation Settings
| Tool | Function |
|------|------|
| `cst_get_info` | Project information |
| `cst_set_units` | Set units (mm/GHz/ns/K) |
| `cst_set_solver` | Switch solver |
| `cst_set_frequency_range` | Set frequency range |
| `cst_set_boundary` | Set 6-sided boundary conditions |
| `cst_set_material` | Assign material to Component |
| `cst_execute_vba` | Execute VBA (Sub Main wrapper) |
| `cst_add_history` | Execute VBA (add_to_history, no wrapper) |
### Modeling
| Tool | Function |
|------|------|
| `cst_create_brick` | Create a cube |
| `cst_create_cylinder` | Create a cylinder |
| `cst_create_discrete_port` | Create a discrete port |
| `cst_create_waveguide_port` | Create a waveguide port |
| `cst_add_monitor` | Add a field monitor |
### Solving
| Tool | Function |
|------|------|
| `cst_run_solver` | Start solver and wait for completion |
| `cst_run_solver_async` | Start solver (no wait) |
| `cst_wait_solver` | Wait for asynchronous solver completion |
| `cst_abort_solver` | Abort solver |
| `cst_get_solver_status` | Query solver status |
### Result Extraction
| Tool | Function |
|------|------|
| `cst_list_results` | List available result items |
| `cst_get_s_parameters` | Read S-parameters |
| `cst_get_1d_results` | Read 1D results |
| `cst_get_farfield` | Read farfield (gain/efficiency/TRP/main lobe) |
| `cst_read_results_offline` | Offline read .cst file results |
## Architecture
```
Claude Code ──MCP──► cst_mcp_server.py ──► cst_session.py ──► cst.interface
│
CST Studio Suite 2026
```
- `cst_session.py` — CST session manager, encapsulates DesignEnvironment + Project lifecycle
- `cst_mcp_server.py` — MCP protocol entry, registers 29 tools and dispatches calls
- `pyproject.toml` — Project metadata