pybme-mcp
pybme-mcp
Ein Model Context Protocol (MCP)-Server, der pyBME umschließt – und es LLM-Agenten ermöglicht, geostatistische Bayesian Maximum Entropy-Analysen durch natürlichsprachliche Absichten anstelle von Code durchzuführen.
Was es tut
Der Server stellt 7 Tools, 6 Ressourcen und 4 Prompts bereit, die eine Pipeline für Unsicherheitsanalysen bilden:
ingest_external_scenario_evidence → inspect_modeling_context
→ fit_uncertainty_model → run_uncertainty_update
→ explain_uncertainty_drivers
→ compare_operator_approaches
→ design_next_observation_or_scenarioTools
Tool | Zweck |
| Import von harten/weichen Beobachtungen und Netzwerktopologie |
| Erkennung des Problemtyps und Empfehlung von Modellfamilien |
| Anpassung von räumlichen oder Netzwerk-Kovarianzmodellen mit Kreuzvalidierung |
| Ausführung der BME-Vorhersage an Schätzungszielen |
| Identifizierung der Unsicherheitstreiber an bestimmten Standorten |
| Vergleich von euklidischen vs. Graphen- vs. physikbasierten Operatoren |
| Ranking von Kandidaten für Sensorplatzierungen nach Varianzreduktion |
Unterstützte Modellfamilien
spatial — Euklidische Kovarianz (exponentiell, Gauß, sphärisch, …)
space_time — Separierbare Raum-Zeit-Kovarianz
graph_laplacian — Graphendiffusionskern auf Netzwerktopologie
physics_informed_network — Physikalisch konsistente Netzwerkkovarianz
spectral_hodge — Spektrale Hodge-Dekomposition für Flussnetzwerke
Related MCP server: groundstation
Installation
Installieren Sie zuerst pyBME (noch nicht auf PyPI verfügbar):
pip install git+https://github.com/wiesnerfriedman/pybme.gitInstallieren Sie dann den MCP-Server:
pip install git+https://github.com/wiesnerfriedman/pybme-mcp.gitOder von einem lokalen Klon:
git clone https://github.com/wiesnerfriedman/pybme-mcp.git
cd pybme-mcp
pip install -e ".[dev]"Konfiguration
Claude Desktop
Fügen Sie dies zu claude_desktop_config.json hinzu:
{
"mcpServers": {
"pybme": {
"command": "pybme-mcp"
}
}
}VS Code (Copilot)
Fügen Sie dies zu .vscode/mcp.json hinzu:
{
"servers": {
"pybme": {
"type": "stdio",
"command": "pybme-mcp"
}
}
}Verwendung
Sobald die Konfiguration abgeschlossen ist, können Sie Ihren Agenten Dinge fragen wie:
"Fit an uncertainty model to my PM2.5 observations"
"Run a network-aware BME update on this stormwater network"
"Compare Euclidean vs graph Laplacian operators"
"Where should I place the next sensor to reduce uncertainty the most?"
Siehe examples/mcp_agent_demo.ipynb für eine Schritt-für-Schritt-Anleitung der gesamten Tool-Kette.
Entwicklung
git clone https://github.com/wiesnerfriedman/pybme-mcp.git
cd pybme-mcp
pip install -e ".[dev]"
pytestLayout
pybme-mcp/
├── docs/
│ ├── pybme-openswmm-integration.md
│ └── v1-mcp-spec.md
├── examples/
│ └── mcp_agent_demo.ipynb
├── pyproject.toml
├── src/pybme_mcp/
│ ├── __init__.py
│ ├── __main__.py
│ ├── registry.py
│ ├── schemas.py
│ ├── serialisation.py
│ ├── server.py
│ └── services/
│ ├── catalog.py
│ ├── comparison.py
│ ├── context.py
│ ├── explanation.py
│ ├── fitting.py
│ ├── hodge.py
│ ├── ingest.py
│ ├── scenario_design.py
│ └── update.py
└── tests/
├── conftest.py
├── test_ingest.py
└── test_integration.pyLizenz
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Verifiable Earth ground truth for AI agents: water, hazard, ground stability, resource, with proof.
Deterministic reasoning stack for AI agents: simulate, decide & compute, plus cross-domain tools.
Agent-to-agent reasoning-as-a-service: chain-of-thought, analysis, and decision support.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables natural language interaction with the DSSAT crop model for simulation, calibration, and sensitivity analysis through LLM agents.1MIT
- AlicenseAqualityBmaintenanceEnables AI agents to query Earth observation data, satellite imagery, active fires, and weather via natural language, returning interactive maps and briefs.12MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to perform spatial analysis in ArcGIS Pro using natural language by exposing all ArcGIS Pro toolboxes as MCP tools.9MIT

MapSmithofficial
AlicenseAqualityAmaintenanceEnables AI agents to perform professional-grade geoprocessing tasks such as buffers, overlays, reprojections, and terrain analysis with deterministic tools and verifiable provenance.29396 PyPI2AGPL 3.0