smaregi-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., "@smaregi-mcp list all stores and their current stock levels"
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.
smaregi-mcp
スマレジ API を Claude Code から操作するための MCP サーバーと Skills。
商品管理・売上確認・在庫操作・会員管理・店舗設定など、スマレジの各種 API を Claude Code の会話から直接利用できます。
Note: このプロジェクトはスマレジ株式会社の公式ツールではありません。スマレジ Developer Platform の公開 API 仕様をもとに作成した非公式の連携ツールです。
構成
smaregi-mcp/
├── MCP サーバー (src/, bin/) ... APIを実際に叩く「手足」
└── Skills (skills/) ... APIの使い方を知る「知識」MCP サーバー: 9つの汎用ツール(GET/POST/PUT/DELETE/PATCH + 管理系)を提供
Skills: API リファレンス 63 ファイル + 操作ガイド 12 ファイル
Related MCP server: スマレジMCPサーバー
対応 API
API | Skills | MCP |
POS(商品・取引・会員・在庫・店舗等) | 対応 | 対応 |
在庫管理(ロス・発注・入荷・出荷・棚卸) | 対応 | 未対応 (*1) |
ウェイター(メニュー・テーブル・注文・予約) | 対応 | 未対応 (*1) |
受注出荷(受注・出荷・決済) | 対応 | 未対応 (*1) |
タイムカード(打刻・勤怠・給与・日報) | 対応 | 未対応 (*1) |
*1: MCP サーバーのベースパスが
/pos固定のため。Skills のリファレンスは全 API 分を網羅済み。
セットアップ
前提条件
Node.js 18 以上
Claude Code インストール済み
スマレジ Developer Platform でアプリ作成済み(クライアント ID / シークレット取得済み)
1. Skills のインストール
npx smaregi-mcp setup-skills~/.claude/skills/smaregi-api-skill/ に API リファレンスと操作ガイドがインストールされます。
2. MCP サーバーの登録
~/.claude/settings.json の mcpServers に追加:
{
"mcpServers": {
"smaregi": {
"command": "npx",
"args": ["smaregi-mcp"]
}
}
}3. Claude Code を再起動
4. 認証設定
Claude Code の会話で:
スマレジの認証設定をして契約 ID・クライアント ID・クライアントシークレットを入力すると ~/.config/smaregi-mcp/config.json に保存されます。
5. 動作確認
スマレジの店舗一覧を取得してソースからビルドする場合
git clone https://github.com/fujioka0729/smaregi-mcp.git
cd smaregi-mcp
npm install
npm run buildMCP ツール一覧
ツール | 説明 |
| GET リクエスト(データ取得) |
| POST リクエスト(データ作成) |
| PUT リクエスト(データ更新) |
| DELETE リクエスト(データ削除) |
| PATCH リクエスト(部分更新) |
| 利用可能なエンドポイント一覧 |
| 認証情報設定 |
| 認証状態確認 |
| サーバー情報表示 |
Skills 構成
skills/smaregi-api-skill/
├── SKILL.md # スキル定義・全体目次
├── references/ (63 ファイル) # API エンドポイント仕様書
│ ├── common-* # 認証・Webhook
│ ├── pos-* # POS API
│ ├── inventory-* # 在庫管理 API
│ ├── waiter-* # ウェイター API
│ ├── order-* # 受注出荷 API
│ └── timecard-* # タイムカード API
└── recipes/ (12 ファイル) # 操作手順ガイド
├── product-operations.md # 商品管理
├── transaction-operations.md # 取引操作
├── customer-operations.md # 会員管理
├── stock-operations.md # 在庫操作
├── store-operations.md # 店舗管理
├── coupon-operations.md # クーポン操作
├── inventory-management-operations.md # 在庫管理
├── waiter-operations.md # ウェイター操作
├── order-management-operations.md # 受注出荷操作
├── staff-timecard-operations.md # タイムカード操作
├── webhook-setup.md # Webhook 設定
└── troubleshooting.md # トラブルシューティングスマレジアプリの作成
developers.smaregi.dev でアプリを新規登録(種別: Web アプリ)
必要なスコープを有効化:
pos.products:read/pos.products:writepos.customers:read/pos.customers:writepos.stores:readpos.transactions:read/pos.transactions:writepos.staffs:readpos.stock:read/pos.stock:write
クライアント ID / シークレットを控える
トラブルシューティング
MCP サーバーが認識されない
settings.jsonのパスが正しいか確認Claude Code を再起動したか確認
node /path/to/bin/smaregi-mcp.jsを直接実行してエラーが出ないか確認
認証エラー (401)
トークンキャッシュを削除:
rm ~/.config/smaregi-mcp/tokens.jsonクライアント ID / シークレットが正しいか確認
スコープ不足 (403)
Developer Platform でアプリのスコープ設定を確認
スコープ変更後はトークンキャッシュを削除:
rm ~/.config/smaregi-mcp/tokens.json
レート制限 (429)
環境 | GET | POST/PUT/PATCH/DELETE |
サンドボックス | 10 回/秒 | 4 回/秒 |
本番 | 50 回/秒 | 20 回/秒 |
Retry-After ヘッダーの秒数だけ待ってから再試行してください。
ライセンス
MIT
Available Tools
9 toolssmaregi_api_deleteC
スマレジAPIにDELETEリクエストを送信します
Inputs: path (required), query.
smaregi_api_getC
スマレジAPIにGETリクエストを送信します
Inputs: path (required), query.
smaregi_api_list_pathsA
スマレジAPIの既知エンドポイント一覧を表示します
Inputs: no named parameters.
smaregi_api_patchC
スマレジAPIにPATCHリクエストを送信します
Inputs: body (required), path (required), query.
smaregi_api_postC
スマレジAPIにPOSTリクエストを送信します
Inputs: body (required), path (required), query.
smaregi_api_putC
スマレジAPIにPUTリクエストを送信します
Inputs: body (required), path (required), query.
smaregi_auth_statusA
スマレジAPIの認証状態を確認します
Inputs: no named parameters.
smaregi_configureA
スマレジAPIの接続設定を保存します
Inputs: client_id (required), contract_id (required), client_secret (required).
smaregi_server_infoA
MCPサーバーのバージョンと接続先情報を表示します
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 9 tools
Each tool has a distinct purpose: HTTP methods (GET, POST, PUT, PATCH, DELETE) are clearly separated, and auxiliary tools (list_paths, auth_status, configure, server_info) handle specific non-API operations with no overlap.
All tools use a consistent snake_case pattern with the 'smaregi_' prefix. HTTP method tools follow 'smaregi_api_<method>' and other tools use descriptive names like 'smaregi_auth_status', maintaining a predictable structure.
With 9 tools, the server covers essential API operations (all common HTTP methods) and administrative functions (auth, configuration, info). This count is well-scoped for a general-purpose API wrapper without being bloated or sparse.
The tool set fully covers the lifecycle of interacting with a REST API: all CRUD methods (GET, POST, PUT, PATCH, DELETE) are present, plus endpoint discovery (list_paths), authentication status, configuration, and server info. No obvious gaps for the stated purpose.
Maintenance
Related MCP Connectors
Read Smaregi stores, products, customers, stock and transactions; manage customers, products, stock.
Solk CRM for Claude: accounts, pipeline, visits, quotes, orders and tickets with your permissions.
Create contacts, move deals, send proposals and invoices, read your inbox, from Claude or ChatGPT.
Amazon Seller Central, Ads and Vendor Central in ChatGPT & Claude. 106 tools; writes need approval.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceExposes a curated subset of the Officegest API v2 (22 CRUD tools) for managing clients, sales, and stock to AI clients like Claude Code and Claude Desktop.1-
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to generate code for interacting with the Smaregi platform API by providing API usage documentation, but does not call the actual API.-
- FlicenseNot gradedqualityBmaintenanceEnables AI clients to interact with a point-of-sale public API through 32 MCP tools for managing bills, customers, items, orders, receipts, stock, suppliers, taxes, and webhooks over stdio and HTTP transports.-
- AlicenseCqualityBmaintenanceEnables Claude or any MCP client to query a Toast POS using plain English, with 55 read-only tools covering orders, sales, labor, employees, menus, inventory, customers, and cash.552MIT