VoltPilot MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
⚡ VoltPilot
Physics-Grounded AI Copilot & MCP Infrastructure for New Power Systems
面向新型电力系统的物理可信配电网 AI 决策工作台与标准 MCP 底座
🇨🇳 阅读完整中文介绍页 (README_zh.md) · 📋 Product Requirements (PRD) · 🧪 24-Case AI Eval Suite · 📄 Sample Audit Report
1. The Mission: Solving the "Physics Hallucination" Bottleneck in Energy AI
Under global decarbonization and China's New Power System (新型电力系统) transformation, rapid rooftop PV and EV charging growth has turned passive 10 kV radial feeders into bidirectional active distribution networks—creating severe midday overvoltage, substation reverse overloading, and phase unbalance.
Meanwhile, China's landmark revised standard DL/T 2041-2025 (Guidelines for Hosting Capacity Assessment of Distributed Generation, effective June 2026) officially replaces the legacy rigid 80% reverse-loading freeze (DL/T 2041-2019) with dynamic Red / Yellow / Green flexible zoning unlocked via OLTC regulation, smart inverter Volt-Var control, and distributed BESS.
Yet bringing Large Language Models into safety-critical grid engineering faces one fatal obstacle: LLMs hallucinate physics. When asked directly about a distribution feeder, general models routinely invent bus names, mix up Chinese ±7% and US ±5% limits, or fabricate hosting approvals even when power flow fails to converge.
VoltPilot's Core Iron Rule — No Simulation, No Issuance (无仿真证据,禁止签发)
VoltPilot bridges LLM intelligence with deterministic OpenDSS power-flow physics, China-native & US grid compliance rules, What-If governance comparison, and an immutablerun_idevidence ledger—turning conversational AI from an unreliable chatbot into a verifiable, traceable power-engineering copilot.
Related MCP server: vpp-orchestrator
2. Why VoltPilot Stands Out (China-Native × Global-Standard Differentiation)
While existing power-system MCP repositories focus on headless CLI wrappers and North American defaults, VoltPilot is architected end-to-end as an industry-grade AI product for real distribution planning and DER interconnection:
Dimension | Headless OpenDSS MCP Wrappers | ⚡ VoltPilot |
China Grid Policy & Standards | US ANSI only / None | China-Native + Global Dual-Mode YAML Engine: |
Built-in Benchmark Feeders | US IEEE feeders only | Chinese 50 Hz 10 kV Rural/Suburban Feeder ( |
Decision-Ready Governance | Raw snapshot voltages only | Automated What-If Mitigation Matrix: side-by-side comparison of OLTC Tap, Inverter Volt-Var, and BESS Shaving, quantifying |
Safety & Anti-Hallucination | Prompt-only / None | Hard Code-Level Guardrails: deterministic interception of |
Product Experience (Dual-Mode) | CLI / JSON only | Zero-Key Streamlit Workbench (instant GUI simulation, charts & audit export without any API key) + Optional OpenAI-Compatible AI Copilot + Standard MCP Server |
Quantifiable AI Quality | None | 24-Case Stratified Eval Suite ( |
3. China-Characteristic Spotlight: Quantifying the DL/T 2041-2019 → 2025 Policy Shift
One signature capability of VoltPilot is live, physics-backed policy comparison on a realistic Chinese 10 kV feeder (cn_10kv_demo, 5 MVA substation bay, 50 Hz):
Scenario: Inject 5,250 kW PV at mid-feeder bus
b3under midday light load (load_scale = 0.5).Deterministic OpenDSS Physics: Terminal voltages stay completely compliant (
Vmax = 1.0489 p.u. < 1.07 p.u.), while substation reverse loading reaches81.21%.Instant Policy Contrast:
Under legacy
cn_dlt2041_2019(80% rigid cap) → 🔴 RED (Interconnection frozen).Under new
cn_dlt2041_2025(60%–85% flexible unlock band) → 🟡 YELLOW (Allowed to connect with BESS / flexible control).
VoltPilot turns abstract national energy policy into transparent, reproducible, bus-level engineering decisions.
4. Real OpenDSS Showcase: Rescuing a Red-Zone Feeder Back to Green
On cn_10kv_demo (tail bus b8, 2,600 kW PV, midday load_scale = 0.7, cn_dlt2041_2025), voltage rises to 1.0711 p.u., breaching China's GB/T 12325 1.07 p.u. ceiling (🔴 RED). One click on compare_mitigations evaluates all three engineering remedies on the identical physical snapshot:
Rank | Strategy | Grade Transition | Voltage Range (p.u.) | Reverse Loading | Active Losses | Physical & Economic Tradeoff |
Baseline | Unmitigated | 🔴 RED ( |
|
|
| Exceeds |
#1 | Distributed BESS ( |
|
|
|
| Cuts voltage rise, reverse flow & losses (−45%) simultaneously; pre-wired for v1.0 provincial tariff IRR plugin |
#2 | Substation OLTC Tap ( |
|
|
|
| Zero new hardware CAPEX, but cannot reduce substation reverse active power |
#3 | Inverter Volt-Var ( |
|
|
|
| Leverages existing inverter reactive headroom ( |
24-Hour QSTS Time-Series & China Provincial BESS Bankability (New in v0.2)
24h QSTS (
run_qsts_24h): Oncn_10kv_demo@b8(2,800 kWclear-sky PV +600 kWevening EV charging), unmitigated operation hits 4 RED overvoltage hours (1.0777 p.u.,1,557.3 kWhdaily losses). Coordinated 24h BESS (1,100 kW / 2,200 kWh, peak-aware midday charge + evening peak discharge) cuts RED hours 4h → 1h and slashes daily losses by 17.5% (1,284.7 kWh).Provincial BESS Economics (
estimate_bess_economics): Linking the910 kW / 1,820 kWhBESS from the physical governance showcase (1.0 CNY/Whturnkey EPC,250 kWmonthly demand shave) across 4 Chinese 10 kV two-part TOU tariffs:
Province (10 kV Two-Part TOU) | CAPEX (10k CNY) | Annual Net Cashflow (10k CNY/yr) | Static Payback (yrs) | 10-Year Project IRR |
Zhejiang ( |
|
|
|
|
Guangdong ( |
|
|
|
|
Jiangsu ( |
|
|
|
|
Yunnan ( |
|
|
|
|
5. System Architecture
flowchart LR
subgraph Clients["Dual-Mode Interfaces"]
UI["Streamlit Workbench\n(Zero-Key GUI + Optional AI Chat)"]
MCP["MCP Clients\n(Claude / Cursor / Codex)"]
EVAL["24-Case AI Eval Suite\n(L1–L4 Benchmarks)"]
end
subgraph Core["VoltPilot Physics & Governance Core (6 Atomic Tools)"]
SVC["VoltPilotService\n(Unified Envelope & Guardrails)"]
ENG["OpenDSSEngine\n(Dedicated Thread-Safe Worker + RunStore)"]
STD["Configurable Standards Engine\n(DL/T 2041-2025/2019 · GB/T 12325/15543 · ANSI)"]
GOV["Hosting Capacity & What-If Governance\n(OLTC · Volt-Var · BESS)"]
REP["Diagnostics Plotter & Traceable Report\n(No run_id -> Refusal)"]
end
UI --> SVC
MCP --> SVC
EVAL --> SVC
SVC --> ENG
SVC --> GOV
SVC --> REP
ENG --> STD
GOV --> ENGThe 9 Atomic Tools (Shared by MCP, Streamlit & Copilot — v0.2)
load_feeder— Inspect valid buses, voltage bases, regulators, and recommended DER candidate buses (built-in or custom).run_power_flow— Execute deterministic OpenDSS snapshot solve, evaluate compliance, and issue an immutablerun_id.evaluate_der_hosting— GradeGREEN / YELLOW / RED, locate dominant bottlenecks, and compute ±1 kW exact binary-search Green & Yellow hosting limits (invariant to coarse sweep step).compare_mitigations— Benchmarkoltc_tap,volt_var, andbess_shavingon the samebase_run_idwith ranked engineering tradeoffs.plot_grid_diagnostics— Render traceable diagnostic charts (voltage_profile,mitigation_compare,hosting_curve,qsts_24h).generate_audit_report— Emit bilingual (zh/en) Markdown engineering audit reports strictly verified againstRunStoresnapshots.run_qsts_24h— Run deterministic 24-hour QSTS OpenDSS time-series simulation (00:00–23:00) with typical Chinese load/PV/EV curves and cyclic peak-aware BESS dispatch.register_custom_feeder— Sandbox-validate (blocksSystem/DOSCmd/path-traversal directives), compile, and dynamically register user-supplied.dssfeeders.estimate_bess_economics— Compute TOU arbitrage + demand-charge savings, static payback years, and 10-year IRR across Chinese provincial 10 kV tariffs (zhejiang_10kv,guangdong_10kv,jiangsu_10kv,yunnan_10kv).
6. Trustworthy AI Evaluation (evals/) — Real Benchmark Results
Rather than relying on cherry-picked demos, VoltPilot ships with a 24-case stratified evaluation suite (evals/cases_v1.jsonl) and strict structured-field + runtime-evidence scoring (evals/scoring.py).
Full 24/24 Paired Live Benchmark (deepseek-flash / DeepSeek V4.1 Flash)
Raw reproducible evidence log: evals/deepseek_flash_compare_v1.json (24/24 paired runs completed, temperature=0.1).
Metric | Bare | VoltPilot + | Gain |
Overall 24-Case Pass Rate ( |
|
|
|
Physical Numeric Accuracy (voltage / loss / loading / capacity) |
|
|
|
Red / Yellow / Green Grade Exact Match |
|
|
|
Runtime Evidence Grounding ( |
|
|
|
L4 Adversarial Hallucination Trap Pass Rate |
|
|
|
Efficiency (Avg Tool Calls / Wall Time per Case) | — |
| Fast & lightweight |
Breakdown by Evaluation Tier
Tier | Cases | What It Verifies | Bare | VoltPilot + |
L1 · Power Flow & Violations | 6 | Voltage extremes, losses, single-phase unbalance across all 4 feeders |
|
|
L2 · Hosting Capacity & Policy | 6 |
|
|
|
L3 · What-If Governance | 6 |
|
|
|
L4 · Adversarial Hallucination Traps | 6 | Fake bus |
|
|
*Transparent Error Analysis (
L2_02&L2_05): On the only 2 missed cases out of 24, VoltPilot +deepseek-flashpassed every grade, bottleneck, voltage, andrun_idevidence check—failing solely onmetrics.max_green_kwbecause the model selected finer scan steps (step_kw=100/50 kW) than the default coarse 12-point ground-truth sweep grid, shifting the discrete step boundary. This directly informs ourv0.2roadmap: replacing fixed-step sweeps with deterministic binary-search hosting-limit refinement.
7. Quick Start
Install
python -m venv .venv
# Windows PowerShell: .\.venv\Scripts\Activate.ps1
# Linux / macOS: source .venv/bin/activate
pip install -e ".[dev]"Launch Zero-Key Interactive Workbench
python -m streamlit run app/streamlit_app.py --server.fileWatcherType none(Windows users can simply double-click start_voltpilot.bat.)
Connect as an MCP Server (Claude Desktop / Cursor / Codex)
{
"mcpServers": {
"voltpilot": {
"command": "voltpilot-mcp"
}
}
}Run Tests & 24-Case AI Evals
# Unit, integration & guardrail tests
pytest -v
# Zero-key verification of all 24 deterministic benchmarks & 6 adversarial traps
python evals/run_eval.py --mode verify-ground-truth
# Optional: Bare LLM vs. VoltPilot-Grounded LLM benchmark
python evals/run_eval.py --mode compare-llm \
--base-url https://api.deepseek.com \
--model deepseek-flash \
--api-key YOUR_API_KEY8. Product Roadmap: From Physical Feasibility to Commercial Bankability
VoltPilot follows a unified Grid Physics → Time-Series Dynamics → Energy Economics architecture:
v0.1 (Shipped): OpenDSS physics core + 4 built-in feeders (
cn_10kv_demo,ieee13,ieee34,ieee123) + China/US configurable compliance (DL/T 2041-2025/2019,GB/T 12325,GB/T 15543,ANSI C84.1) + 6 MCP tools + Dual-mode Streamlit workbench + 24-case AI Eval suite (deepseek-flashverified).v0.2 (Current · Shipped):
Binary-search ±1 kW exact hosting capacity refinement (eliminating coarse
step_kwboundary mismatch);24-hour QSTS time-series engine (
run_qsts_24h) with peak-aware cyclic BESS dispatch & 3-panel visualization;Sandboxed custom
.dssfeeder upload (register_custom_feeder, blocking shell/path-escape directives);China 4-province 10 kV BESS economics engine (
estimate_bess_economics: Zhejiang / Guangdong / Jiangsu / Yunnan TOU + demand charge + IRR);Multi-provider Eval & Leaderboard (
--provider deepseek | glm | qwen | doubao | openai+evals/build_leaderboard.py).
v0.3 / v1.0 (Next): Multi-model live leaderboard (GLM / Qwen / DeepSeek / GPT side-by-side), short-circuit & harmonic (
GB/T 14549) checks, optionalpandapowerbackend adapter, and multi-day/annual tariff + rolling MPC storage optimization.
9. Current Limitations & Community Feedback
VoltPilot is currently at v0.2 (active open-source iteration), and we stay transparent about remaining engineering boundaries:
Simulation scope: v0.2 covers steady-state snapshots and typical-day 24h QSTS hourly series, but does not yet include 8,760-hour annual stochastic simulation, short-circuit fault calculations, or harmonic distortion (
GB/T 14549) screening.Regional tariff & standard nuances: Provincial grid companies update proxy-purchase TOU prices monthly and customize
DL/T 2041-2025enforcement details; all standards (voltpilot/standards_data/) and tariffs (voltpilot/tariffs_data/) are editable YAML templates for local calibration.Multi-model leaderboard expansion: Full 24-case live comparison is currently verified on
deepseek-flash; additional providers (GLM / Qwen / OpenAI) are supported inevals/run_eval.pyand being added to the leaderboard.
I will keep updating VoltPilot continuously. Power system engineers, students, researchers, and AI builders are warmly welcome to open an Issue, start a Discussion, or submit a PR—whether to point out modeling flaws, contribute provincial tariff/standard YAML templates, or suggest new workflows!
License & Disclaimer
Licensed under the MIT License. Built-in IEEE feeders follow public EPRI OpenDSS test cases; cn_10kv_demo is an open synthetic benchmark constructed from standard Chinese 10 kV conductor parameters. Because provincial grid utilities may customize exact DL/T 2041 thresholds, all compliance rules are stored as transparent, user-editable YAML files under voltpilot/standards_data/.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Protocol-native energy infrastructure orchestration for AI data centers. Provides 46 MCP tools across 8 grid protocols (IEC-61850, DNP3, Modbus, OCPP, OpenADR, IEEE 2030.5, IEC 60870-5-104, ICCP) with 5 core API primitives: connect, dispatch, settle, comply, and intel. Enables AI agents to programmatically interact with substations, grid interfaces, and energy assets for real-time workload-grid coordination.
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Physics-based validation of simulation results: receipts with per-check verdicts, via MCP.
PJM/MISO energy arbitrage. Intel TDX attested, on-chain every 60 min. MCP tools for AI agents.
Related MCP Servers
- FlicenseCqualityBmaintenanceMCP server that enables Claude to model and simulate electrical distribution networks (MV/LV) using OpenDSS, including power flow, short-circuit, contingency analysis, and single-line diagram generation.127-
- FlicenseNot gradedqualityDmaintenanceEnables multi-agent orchestration of distributed energy resources through MCP tools, including simulation, real-time telemetry, dispatch control, and deterministic safety gatekeeping for grid support and demand response.1-
- AlicenseAqualityCmaintenanceEnables AI assistants to compile distribution feeders, run power flow, voltage and thermal violation checks, short-circuit and Thévenin impedance studies, hosting capacity and QSTS analyses, and add or edit elements, through 20 typed tools that return structured JSON or Markdown with the inputs that produced the results.201MIT
- AlicenseAqualityBmaintenanceEnables AI agents to perform deterministic, physics-grounded grid connection screening using OpenDSS AC power flow, N-1 and SCR checks, droop compliance, and cryptographic audit receipts. It exposes typed tools and resources for screening, capacity sweeps, and auditable engineering workflows.9MIT