Skip to main content
Glama

pybme-mcp

Python 3.10+ License: MIT

pyBMEをラップするModel Context Protocol (MCP) サーバーです。LLMエージェントがコードではなく自然言語の意図を通じてベイズ最大エントロピー(BME)地球統計解析を実行できるようにします。

機能

このサーバーは、不確実性推論パイプラインを形成する7つのツール6つのリソース、および4つのプロンプトを公開します:

ingest_external_scenario_evidence → inspect_modeling_context
       → fit_uncertainty_model → run_uncertainty_update
       → explain_uncertainty_drivers
       → compare_operator_approaches
       → design_next_observation_or_scenario

ツール

ツール

目的

ingest_external_scenario_evidence

ハード/ソフト観測値およびネットワークトポロジーのインポート

inspect_modeling_context

問題タイプの検出とモデルファミリーの推奨

fit_uncertainty_model

交差検証を用いた空間またはネットワーク共分散モデルの適合

run_uncertainty_update

推定ターゲットでのBME予測の実行

explain_uncertainty_drivers

特定の場所における不確実性の要因の特定

compare_operator_approaches

ユークリッド、グラフ、物理情報に基づいた演算子の比較

design_next_observation_or_scenario

分散低減による候補センサー配置のランク付け

サポートされているモデルファミリー

  • spatial — ユークリッド共分散(指数、ガウス、球状など)

  • space_time — 分離可能な時空間共分散

  • graph_laplacian — ネットワークトポロジー上のグラフ拡散カーネル

  • physics_informed_network — 物理的に整合性のあるネットワーク共分散

  • spectral_hodge — フローネットワークのためのスペクトルHodge分解

Related MCP server: ladybug-tools-mcp

インストール

最初にpyBMEをインストールしてください(まだPyPIにはありません):

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

次にMCPサーバーをインストールします:

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

またはローカルクローンから:

git clone https://github.com/wiesnerfriedman/pybme-mcp.git
cd pybme-mcp
pip install -e ".[dev]"

設定

Claude Desktop

claude_desktop_config.jsonに追加します:

{
  "mcpServers": {
    "pybme": {
      "command": "pybme-mcp"
    }
  }
}

VS Code (Copilot)

.vscode/mcp.jsonに追加します:

{
  "servers": {
    "pybme": {
      "type": "stdio",
      "command": "pybme-mcp"
    }
  }
}

使用方法

設定が完了したら、エージェントに以下のように尋ねてください:

  • "PM2.5の観測値に不確実性モデルを適合させて"

  • "この雨水ネットワークでネットワーク対応のBME更新を実行して"

  • "ユークリッド演算子とグラフ・ラプラシアン演算子を比較して"

  • "不確実性を最も低減するために、次にどこにセンサーを配置すべきか?"

ツールチェーン全体のステップバイステップのチュートリアルについては、examples/mcp_agent_demo.ipynbを参照してください。

開発

git clone https://github.com/wiesnerfriedman/pybme-mcp.git
cd pybme-mcp
pip install -e ".[dev]"
pytest

レイアウト

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

ライセンス

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