Skip to main content
Glama

pybme-mcp

Python 3.10+ License: MIT

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_scenario

Tools

Tool

Zweck

ingest_external_scenario_evidence

Import von harten/weichen Beobachtungen und Netzwerktopologie

inspect_modeling_context

Erkennung des Problemtyps und Empfehlung von Modellfamilien

fit_uncertainty_model

Anpassung von räumlichen oder Netzwerk-Kovarianzmodellen mit Kreuzvalidierung

run_uncertainty_update

Ausführung der BME-Vorhersage an Schätzungszielen

explain_uncertainty_drivers

Identifizierung der Unsicherheitstreiber an bestimmten Standorten

compare_operator_approaches

Vergleich von euklidischen vs. Graphen- vs. physikbasierten Operatoren

design_next_observation_or_scenario

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: ladybug-tools-mcp

Installation

Installieren Sie zuerst pyBME (noch nicht auf PyPI verfügbar):

pip install git+https://github.com/wiesnerfriedman/pybme.git

Installieren Sie dann den MCP-Server:

pip install git+https://github.com/wiesnerfriedman/pybme-mcp.git

Oder 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]"
pytest

Layout

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.py

Lizenz

MIT

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    A Model Calling Protocol server that enables LLMs to perform rigorous Bayesian analysis and probabilistic reasoning, including inference, model comparison, and predictive modeling with uncertainty quantification.
    4
    MIT
  • A
    license
    -
    quality
    A
    maintenance
    Enables natural-language interaction with Ladybug Tools for building performance simulation, 3D modeling, and data visualization, allowing agents to perform complex environmental analysis tasks without CAD software.
    3
    GPL 3.0

View all related MCP servers

Related MCP Connectors

  • Deterministic reasoning stack for AI agents: simulate, decide & compute, plus cross-domain tools.

  • Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.

  • Agent-to-agent reasoning-as-a-service: chain-of-thought, analysis, and decision support.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wiesnerfriedman/pybme-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server