Tako MCP Server

An MCP server for the Octopus Energy Japan GraphQL API.

README.md

tako-mcp

Octopus Energy Japan GraphQL API の MCP サーバー。

電力の使用量・コスト見積、契約情報、料金プランなどを MCP ツール経由で取得できます。Claude をはじめとする LLM でのエネルギー使用状況の分析に活用できます。

特徴

  • 30分単位の電力消費量・コスト見積の取得
  • アカウント・契約情報の取得(プロダクト・基本料金含む)
  • 郵便番号からのエリア情報検索
  • プライバシー重視: 住所等の個人情報はツールレスポンスから除外

必要条件

  • Node.js 22+
  • Octopus Energy Japan のアカウント(メールアドレス・パスワード)

使い方

デフォルトは stdio トランスポートで動作します。

OCTOPUS_EMAIL=you@example.com OCTOPUS_PASSWORD=your-password OCTOPUS_ACCOUNT_NUMBER=A-AAAA1111 npx tako-mcp

HTTP モード

--http フラグで Streamable HTTP トランスポートに切り替えられます。

OCTOPUS_EMAIL=you@example.com OCTOPUS_PASSWORD=your-password OCTOPUS_ACCOUNT_NUMBER=A-AAAA1111 npx tako-mcp --http

PORT 未指定時は空きポートが自動選択されます。

環境変数

変数名 必須 説明
OCTOPUS_EMAIL Yes Octopus Energy Japan のログインメールアドレス
OCTOPUS_PASSWORD Yes Octopus Energy Japan のログインパスワード
OCTOPUS_ACCOUNT_NUMBER Yes アカウント番号(例: A-AAAA1111
PORT No HTTP モード時のポート番号(デフォルト: 自動選択)

MCP ツール一覧

ツール 説明 認証
get_account_info アカウント・契約情報(プロダクト・基本料金含む、住所は除外) 必要
get_electricity_consumption 30分単位の電力消費量・コスト見積 必要
get_postal_areas 郵便番号からエリア情報を検索 不要

クライアント設定

Claude Desktop / Claude Code

{
  "mcpServers": {
    "tako-mcp": {
      "command": "npx",
      "args": ["-y", "tako-mcp"],
      "env": {
        "OCTOPUS_EMAIL": "you@example.com",
        "OCTOPUS_PASSWORD": "your-password",
        "OCTOPUS_ACCOUNT_NUMBER": "A-AAAA1111"
      }
    }
  }
}

HTTP モード

{
  "mcpServers": {
    "tako-mcp": {
      "type": "http",
      "url": "http://localhost:/mcp"
    }
  }
}

開発

npm install
npm run dev        # tsx で起動
npm run build      # tsup でバンドル
npm run typecheck  # 型チェック
npm run check      # Lint & フォーマット (Biome)

ライセンス

MIT

Tools 3

get_account_infoRetrieves account and contract information, including product and base rates, excluding personal address data.
get_electricity_consumptionRetrieves electricity consumption and cost estimates in 30-minute intervals.
get_postal_areasSearches for area information based on a postal code.

Environment Variables

OCTOPUS_EMAILrequiredOctopus Energy Japan login email address
OCTOPUS_PASSWORDrequiredOctopus Energy Japan login password
OCTOPUS_ACCOUNT_NUMBERrequiredAccount number (e.g., A-AAAA1111)
PORTPort number for HTTP mode

Try it

What is my current electricity contract information and base rate?
Can you analyze my electricity consumption for the last 24 hours in 30-minute intervals?
What is the estimated cost of my electricity usage for the current billing period?
Find the area information for the postal code 100-0001.

Frequently Asked Questions

What are the key features of Tako MCP?

Retrieves 30-minute interval electricity consumption and cost estimates. Fetches account and contract details including product and base rates. Provides postal code area lookup functionality. Privacy-focused design that excludes personal address information from responses.

What can I use Tako MCP for?

Analyzing energy usage patterns to optimize electricity consumption. Monitoring real-time cost estimates for electricity usage. Reviewing current contract details and pricing plans for Octopus Energy Japan customers.

How do I install Tako MCP?

Install Tako MCP by running: OCTOPUS_EMAIL=you@example.com OCTOPUS_PASSWORD=your-password OCTOPUS_ACCOUNT_NUMBER=A-AAAA1111 npx tako-mcp

What MCP clients work with Tako MCP?

Tako MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Tako MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Open Conare