Skip to main content
Glama
chanyou0311

aiseg2-mcp

by chanyou0311

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AISEG_URLYesAiSEG2 base URL, e.g. http://192.168.0.216 (http only)
LOG_LEVELNoLog levelinfo
AISEG_HOSTNoBind host (streamable-http only)0.0.0.0
AISEG_PORTNoBind port (streamable-http only)8000
AISEG_USERNoHTTP Digest useraiseg
AISEG_PASSWORDYesHTTP Digest password for the AiSEG2 web UI
AISEG_CACHE_DIRNoWhere the SD-card history export is cached<tempdir>/aiseg2-mcp-cache
AISEG_CACHE_TTLNoSeconds to reuse a cached history export before re-downloading3600
AISEG_TRANSPORTNostdio or streamable-httpstdio
AISEG_DISABLE_DNS_REBINDING_PROTECTIONNoDisable the SDK Host allowlist — only behind a trusted auth proxyfalse

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_power_flowA

Read-only. Get the AiSEG2's instantaneous whole-home power flow right now.

Returns current generation and consumption (kW), whether the home is buying or selling grid power, storage-battery status if a battery is connected, the per-source generation breakdown, and the top consuming circuits at this moment.

get_circuit_breakdownA

Read-only. Get the instantaneous power draw of every measured circuit, ranked highest first.

Pages through the AiSEG2's circuit list and returns each circuit's rank, name and watts, plus
the total measured watts and how many device pages were read. Circuit names here are
display-derived (they may wrap); list_circuits() is the authoritative name source.
list_circuitsA

Read-only. List the registered measurement circuits with their stable ids and names.

This is the AUTHORITATIVE source of circuit naming (from the device's installation settings).
The names in get_circuit_breakdown() are display-derived and may differ (line wraps); prefer
these when you need a canonical circuit name.
get_daily_totalsA

Read-only. Get today's cumulative energy totals (kWh) as of the AiSEG2's current day.

Returns generation, consumption, grid-buy and grid-sell totals for the day. Any meter the device reports as unavailable ("-") comes back as null.

get_historyA

Read-only. Query the AiSEG2's long-term energy history from its SD-card export (values in Wh).

Requires an SD card inserted in the AiSEG2. The export is downloaded once and cached, so the
first call is slow and later calls are fast. Returns long-form points ({timestamp, metric,
value}); use limit/offset to page (limit caps the number of returned points).

Args:
    granularity: Time resolution. "30min"/"hour"/"day" take start/end as YYYY-MM-DD; "month"
        takes YYYY-MM; "year" takes YYYY.
    start: Range start (inclusive), formatted per the granularity.
    end: Range end (inclusive), formatted per the granularity.
    metrics: Optional filter by standard series keys (e.g. "generation_pv1", "grid_buy",
        "grid_sell", "battery_charge", "battery_discharge", "ev_charge") or their Japanese
        header names. Omit for all series.
    circuits: Optional filter by circuit name (see list_circuits). Omit for all circuits.
    limit: Maximum number of series points to return (default 200).
    offset: Number of points to skip (for pagination).
get_cost_historyA

Read-only. Query the AiSEG2's long-term energy-cost history from the SD-card export (JPY).

Requires an SD card inserted in the AiSEG2. Shares the same cached download as get_history.
Returns long-form cost points ({timestamp, metric, value}) with values in Japanese yen.

Args:
    granularity: "day" takes start/end as YYYY-MM-DD; "month" as YYYY-MM; "year" as YYYY.
    start: Range start (inclusive), formatted per the granularity.
    end: Range end (inclusive), formatted per the granularity.
    limit: Maximum number of series points to return (default 200).
    offset: Number of points to skip (for pagination).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/chanyou0311/aiseg2-mcp'

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