
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that lets LLMs create, analyze, and optimize PyPSA energy system models through natural language.
PyPSA MCP server is cataloged as an MCP server attributed to cdgaete. An MCP server that lets LLMs create, analyze, and optimize PyPSA energy system models through natural language. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for PyPSA MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
The run_optimization tool accepts a solver name, defaulting to glpk, and a formulation, defaulting to kirchhoff.
README.md · b771396ec065 · 采集于 2026-11-13 11:20:51 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
PyPSA MCP is a Model Context Protocol (MCP) server for creating, analyzing, and optimizing energy system models using PyPSA (Python for Power System Analysis).
A Model Context Protocol (MCP) server that enables Large Language Models (LLMs) like Claude to interact with PyPSA for energy model creation and analysis via natural language.
Below is a demo video showing how to use PyPSA MCP with Claude. The video demonstrates creating a simple two-bus model, running power flow calculations, and performing optimization.
https://github.com/user-attachments/assets/5633a431-7c3b-4a2f-9a9e-395dcbbb2e29
You can try this exact prompt with Claude to reproduce the example shown in the video:
I'd like to build an energy system model and perform optimization using PyPSA. Please help me with these steps:
1. Create a simple two-bus model with:
1. Two buses at (0,0) and (100,0) with 220 kV nominal voltage
2. A generator at bus1 with 100 MW capacity and 50 €/MWh cost
3. A load at bus2 with 80 MW demand
4. 24 hourly snapshots for January 1, 2025
2. Run a power flow calculation to verify the model
3. Perform optimization with the highs solver using the kirchhoff formulation
4. Discuss the results
PyPSA MCP provides a bridge between Large Language Models and PyPSA, allowing you to:
Model Management
Component Creation
Data and Simulation
Results Analysis
# Install from PyPI
pip install pypsamcp
# Or using uv (recommended)
uv pip install pypsamcp
# Run using the installed package
pypsamcp
Locate Claude Desktop's configuration file (typically in ~/.config/Claude/config.json)
Add PyPSA MCP to the mcpServers section:
"mcpServers": {
"PyPSA MCP":{
"command": "uv", # Sometimes /path/to/local/uv (remove this comment)
"args": [
"run",
"--with",
"pypsamcp",
"pypsamcp"
]
}
}
Save the configuration file and restart Claude Desktop
For contributors or users who want to modify the code:
# Clone the repository
git clone https://github.com/cdgaete/pypsa-mcp.git
cd pypsa-mcp
# Install development dependencies with uv
uv pip install -e ".[dev]"
# Run the server directly
python -m pypsamcp.server
The server provides the following MCP tools:
create_energy_model(
id: str,
name: str = None,
description: str = None
)
list_models()
delete_model(
id: str
)
export_model_summary(
id: str,
include_components: bool = True,
include_parameters: bool = True
)
add_bus(
model_id: str,
name: str,
v_nom: float,
x: float = 0.0,
y: float = 0.0,
carrier: str = "AC"
)
add_generator(
model_id: str,
name: str,
bus: str,
p_nom: float,
marginal_cost: float = 0.0,
carrier: str = "generator"
)
add_load(
model_id: str,
name: str,
bus: str,
p_set: float
)
add_line(
model_id: str,
name: str,
bus0: str,
bus1: str,
x: float,
r: float = 0.0,
g: float = 0.0,
b: float = 0.0,
s_nom: float = 0.0
)
add_storage(
model_id: str,
name: str,
bus: str,
p_nom: float,
max_hours: float,
efficiency_store: float = 1.0,
efficiency_dispatch: float = 1.0,
standing_loss: float = 0.0
)
set_snapshots(
model_id: str,
start_time: str,
end_time: str,
freq: str = "H"
)
run_powerflow(
model_id: str,
snapshot: str = None
)
run_optimization(
model_id: str,
solver_name: str = "glpk",
formulation: str = "kirchhoff"
)
Here are some examples of how to use PyPSA MCP with Claude:
Create a new energy system model with three buses, two generators, and a load.
Add a wind generator with 100 MW capacity to bus "bus1" with a marginal cost of 10.
Run a power flow calculation on the current model and show me the results.
Optimize the model using the GLPK solver and summarize the key findings.
This project is licensed under the MIT License - see the LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for PyPSA MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/pypsa-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.