エアレジCSV取得MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@エアレジCSV取得MCP 全店舗の先月の日別売上(daily_sales)のCSVを取って、店舗ごとの結果と保存先を教えて"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
エアレジCSV取得MCP
エアレジの帳票CSVを取得する道具です。Claude CodeやClaude DesktopなどのAIからMCPサーバーとして使えるほか、自分で打つコマンドとしても使えます。帳票・店舗・期間(期間のない帳票では不要)を指定してCSVを保存します。集計はしません。MacとWindowsで動きます。
取得できる帳票
ID | 帳票 | 画面 | 期間の選び方 | 画面の確認 |
| バリエーション別売上 | 商品別売上(バリエーション単位で表示) | カレンダー | 済み |
| 商品別売上 | 商品別売上(商品単位で表示) | カレンダー | 済み |
| 日別売上(売上集計) | 日別売上 | 集計対象「日別」と年・月のプルダウン | 済み |
| 会計明細 | 日別売上 | 集計対象「日別」と年・月のプルダウン | 済み |
| 商品設定(商品一括編集用のCSV) | 商品設定 →「商品をCSVで編集する」 | 期間なし(店舗ごとに今の設定を1ファイル) | 済み |
| カテゴリー設定(カテゴリーID確認用のCSV) | 商品設定 →「商品をCSVで編集する」 | 期間なし(店舗ごとに今の設定を1ファイル) | 済み |
どの帳票も、1店舗分を実際に取得し、画面の数字と合うことを確かめました(2026年11月。期間のある帳票は1か月分)。定義は src/reports.mjs にあります。
帳票ごとの制限は次のとおりです。
daily_salesとtransaction_detailsは、1か月単位でしか取得できません。開始日は月の1日、終了日は月末(今月なら今日)にしてください。合わない期間を指定すると、start_downloadは取得を始めずにPERIOD_UNSUPPORTEDを返します。今月分のファイルは、エアレジが期間を月末までとして名前を付けます(中身は今日までです)。transaction_details(会計明細)は、エアレジの制限で、前月1日から今日までの分しか取得できません。variation_salesとproduct_salesは、エアレジの画面では約3年分を1回で出せました。ツールは月ごとに分けて取得します。product_settings(商品設定)には期間がありません。start_downloadではfromとtoを省き、コマンドでは期間のオプションを付けません。付けると、取得を始めずに断ります(PERIOD_NOT_APPLICABLE、コマンドは終了コード64)。取得するのは、取得した時点の商品とバリエーションの設定です。CSVは Shift_JIS で、1行目は書式の版("v1400"など)、2行目が見出しです。category_settings(カテゴリー設定)も期間がなく、扱いは商品設定と同じです。カテゴリー設定の画面にはCSVのダウンロードがないので、商品設定の「ファイルで一括編集」の画面にある「カテゴリーID確認用ファイル(CSV)」を取得します。列はカテゴリーID・カテゴリー名・カテゴリー名(略称)・表示/非表示の4つで、1行目が見出しです。CSVは Shift_JIS です。
Related MCP server: delhaize-mcp
はじめ方
使い方(docs/usage.md) に、AIごとの登録方法と、そのまま貼り付けて使えるプロンプトをまとめています。
必要なものは Node.js(22以上)、Git、Google Chrome です。Playwrightは、パソコンに入っているChromeを操作します。別のブラウザはダウンロードしません。
Claude Code、Codex CLI、Gemini CLI、Cursor のように、コマンドを実行できるAIなら、使い方の「AIに入れてもらう」 の文を貼り付けるだけで、入れて登録まで済ませてくれます。
手で入れる場合は、リポジトリのフォルダで依存パッケージを入れてから、AIに登録します。Claude Code の例は次のとおりです。
npm ci --ignore-scriptsclaude mcp add --scope user airregi-csv -- node C:\path\to\airregi-csv-mcp\src\mcp.mjsClaude Desktop、Cursor、VS Code、Codex CLI、Gemini CLI の登録方法は、使い方 にあります。
使うときは、AIに次のように頼みます。
airregi-csv で、全店舗の先月の日別売上(daily_sales)のCSVを取ってきてください。終わったら、店舗ごとの結果と保存先のフォルダを教えてください。コマンドで使う
AIを通さずに、コマンドで取得することもできます。毎月決まった日に自動で取りたいときにも使えます。
node src/cli.mjs loginnode src/cli.mjs download --report daily_sales --all-stores --last-month期間のない帳票は、期間のオプションを付けずに実行します。
node src/cli.mjs download --report product_settings --all-storesオプションの一覧と、Windowsで毎月自動で取得する方法は、使い方の「コマンドで使う」 にあります。
MCPのツール
ツール | 役割 |
| 取得できる帳票の一覧を返します。 |
| Chromeを開いているか、実行中の取得があるか、保存先を返します |
| Chromeでエアレジのログイン画面を開きます |
| 店舗の一覧を返します |
| 帳票・店舗・期間(期間のない帳票では省く)を指定して取得を始め、 |
| 取得の進み具合と結果を返します |
| 実行中の取得を止めます |
取得には時間がかかるため、start_download はすぐに job_id を返します。終わったかどうかは get_download で確かめます。
期間は月ごとに分けて取得し、店舗×月ごとに1ファイルを保存します。期間のない帳票は、店舗ごとに1ファイルです。一度に取得できるのは120ファイルまでです。
保存するファイル名は、期間のある帳票が <帳票>_<YYYYMMDD-YYYYMMDD>_<店舗>.csv、期間のない帳票が <帳票>_<取得日 YYYYMMDD>_<店舗>.csv(例:商品設定_20261115_渋谷店.csv)です。
ログイン
ログインは手動です。ログインが切れていると、ツールは LOGIN_REQUIRED を返します。そのときは open_login でChromeを開き、利用者がログインしてから、もう一度実行します。ログイン状態は保存先の auth.json に残り、次回から使われます。
自動でログインし直す機能は、まだありません。
結果の見方
get_download の results に、店舗×月ごと(期間のない帳票は店舗ごと)の結果が入ります。期間のない帳票の結果には from と to がありません。
status | 意味 |
| 保存しました |
| 保存しましたが、見出し行しかありません(商品設定では、商品が1件もないということです) |
| 取得できませんでした。 |
| 前の処理で止まったか、中止したため、取得していません |
取得できなかった店舗や期間を、売上ゼロとして扱わないでください。全体の status は completed、partial、failed、cancelled のどれかです。
保存先
OS | 場所 |
Windows |
|
Mac |
|
環境変数 AIRREGI_APP_DATA で変えられます。CSVは保存先の downloads の下に、取得ごとのフォルダを作って保存します。start_download の output_dir に絶対パスを渡すと、そのフォルダに保存します。各フォルダの manifest.json に、取得の結果を残します。
安全のための動き
画面の店舗名、期間、ダウンロードしたファイル名が指定と一致しなければ、保存せずに止めます(商品設定は
商品一括編集_<日時14桁>.csv、カテゴリー設定はカテゴリー_<日時14桁>.csvでなければ止めます)。商品設定とカテゴリー設定では、CSVをダウンロードするボタンだけを押します。アップロードや「保存する」は押しません。
エアレジ以外の画面へ移動したら止めます。
想定外のエラーの中身は、AIへの返事に出しません。中身を見たいときは、環境変数
AIRREGI_DEBUG=1を付けると標準エラー出力に出ます。Macでは、保存したファイルを自分だけが読める権限にします。Windowsでは、ユーザーフォルダの権限で守ります。
不具合の報告
自由に使ってかまいません。うまく動かないところを見つけたら、Issue で教えてもらえると助かります。エアレジの画面が変わると取得が止まることがあるので、その連絡も歓迎です。
報告には、売上の数字、店舗名、CSVの中身、auth.json、パスワードを書かないでください。
注意
このツールは、株式会社リクルートや Airレジ とは関係のない、個人が作ったものです。
エアレジの利用規約に沿って、自分のアカウントで使ってください。
取得したデータは、使う前に画面の数字と合っているかを確かめてください。不具合で起きた損害については責任を負えません。
ライセンス
開発
npm testテストはChromeを起動しません。エアレジへの実際の取得は、利用者のパソコンで確かめます。CIでは、MacとWindowsでテストを回します。
要件は docs/requirements.md、使い方は docs/usage.md にあります。
Available Tools
7 toolscancel_downloadA
実行中の取得を止めます。取得済みのファイルは残ります。
Inputs: job_id (required).
get_downloadARead-only
start_download の進み具合と結果を返します。status が running のあいだは、少し待ってからもう一度呼んでください。
Inputs: job_id (required).
list_reportsARead-only
取得できるエアレジの帳票の一覧を返します。verified が false の帳票は、画面の確認がまだで、取得が止まることがあります。period が false の帳票は期間がなく、start_download で from と to を省きます。
Inputs: no named parameters.
list_storesARead-only
エアレジの店舗一覧を返します。ログインが切れていると LOGIN_REQUIRED を返します。
Inputs: no named parameters.
open_loginARead-only
Chrome でエアレジのログイン画面を開きます。ログインは利用者が手動で行います。LOGIN_REQUIRED が返ったときに使います。
Inputs: no named parameters.
start_downloadA
指定した帳票のCSVを、店舗ごと・月ごとに取得して保存します。期間のない帳票(list_reports で period が false。例:product_settings、category_settings)は from と to を省き、店舗ごとに1ファイル取得します。すぐに job_id を返すので、get_download で終わるまで確認してください。取得に失敗した店舗や期間を売上ゼロと扱わないでください。
Inputs: report (required), stores (required), to, from, +1 more.
statusARead-only
Chrome を開いているか、実行中の取得があるか、保存先のフォルダを返します。
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a largely distinct role: discovery (list_reports, list_stores), auth (open_login), job lifecycle (start_download, get_download, cancel_download), and environment inspection (status). The only mild overlap is between status (reporting whether a fetch is running) and get_download (reporting progress of a running job), but the descriptions make the boundary reasonably clear.
Six of seven tools follow a clean verb_noun pattern (list_reports, list_stores, open_login, start_download, get_download, cancel_download). The lone outlier is the bare noun 'status', which is slightly out of family but still unambiguous.
Seven tools is well within the sweet spot for a scoped automation server. Every tool maps to a needed step in the workflow (discover, authenticate, start, poll, cancel, inspect) with no filler.
The core lifecycle — report discovery, manual login handling, store listing, async download with polling and cancellation — is fully covered. Minor gaps remain: there is no tool to enumerate already-saved files/results per store, and no way to retry only the failed store/period combinations after a partial run.
Related MCP Connectors
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Let AI agents work in your own signed-in Chrome, with approvals and verified results.
Search Japanese companies, departments and hiring signals; export CSV/XLSX with authentication.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Related MCP Servers
- FlicenseAqualityDmaintenanceAutomatically collects daily report data from KPI systems using browser automation and Google OAuth login. Generates structured Markdown reports for specified date ranges with persistent session management.6-
- AlicenseAqualityBmaintenanceEnables an AI assistant to fetch the user's own Delhaize (Belgium) till receipts and weekly promotions through a headless browser, saving receipt images and raw promotion pages without handling passwords or editing records.518 PyPI1MIT
- AlicenseBqualityCmaintenanceEnables AI agents to drive a persistent Chrome session that stays signed in to your own Google account, with tools for navigation, snapshots, clicking, typing, keystrokes, screenshots, JavaScript evaluation, and lifecycle or re-login control. It also exports every row behind a Looker Studio report to CSV and checks whether the session is still healthy.14MIT
- AlicenseBqualityBmaintenanceEnables AI agents to drive the user's local Chrome: observing compact filtered page views, running batched multi-step actions like clicking, filling, selecting, waiting, downloading and uploading files across tabs, and capturing on-demand screenshots for coordinate-based interaction with canvas-like UIs.4MIT