BatterySnap は Model Context Protocol サーバーを公開しています。MCP 対応の AI アシスタントはオンデマンドでブランド、モデル、デバイスごとのバッテリー統計を照会できます。認証は不要です。
http://mcp.battery-snap.com/mcp
トランスポート
streamable-http
クライアントにインストール
claude_desktop_config.json を編集(設定 → 開発者 → 設定を編集)して、次を追加します:
{
"mcpServers": {
"batterysnap": {
"type": "http",
"url": "http://mcp.battery-snap.com/mcp"
}
}
}
ネイティブの HTTP トランスポートがない古いバージョンでは、mcp-remote ブリッジを使用してください:
{
"mcpServers": {
"batterysnap": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://mcp.battery-snap.com/mcp"]
}
}
}
ターミナルで一度実行:
claude mcp add --transport http batterysnap http://mcp.battery-snap.com/mcp
~/.cursor/mcp.json を作成(または編集)して、以下を記述:
{
"mcpServers": {
"batterysnap": {
"url": "http://mcp.battery-snap.com/mcp"
}
}
}
librechat.yaml の mcpServers 配下に追加:
mcpServers:
batterysnap:
type: streamable-http
url: http://mcp.battery-snap.com/mcp
ワークスペースの .vscode/mcp.json、またはユーザー設定に追加:
{
"servers": {
"batterysnap": {
"type": "http",
"url": "http://mcp.battery-snap.com/mcp"
}
}
}
streamable-http トランスポートに対応する MCP ホストは http://mcp.battery-snap.com/mcp を指定するだけで接続できます。ディスカバリー用メタデータは /.well-known/mcp.json で提供されます。
利用可能なツール
brands()バッテリー統計の記録があるすべてのデバイスブランドを、モデル数とデバイス数とともに一覧表示します。
models(brand)指定したブランドで記録されたデバイスモデルを、デバイス数、平均温度、Android API レンジとともに一覧表示します。
devices(brand, model)指定されたブランドとモデルの個別デバイスを、デバイスごとの集計(アクティビティウィンドウ、バッテリーレベル、温度範囲、充電/放電速度、アクティブ率、Android API レベル)とともに一覧表示します。
各ツールはオプションの fields 引数も受け取ります。属性名のホワイトリストを渡すと応答をコンパクトに保てます。