Cafe24 MCP Read-only
by joochanyang
README.md
# Cafe24 MCP Read-only
A small MCP server for Cafe24 store operators using Claude Code or another stdio MCP client. It exposes two tools backed by the Cafe24 Admin API.
| Tool | Result |
| --- | --- |
| `list_products` | Product number, name, price, display flag, selling flag |
| `list_orders` | Order ID, date, payment flag, cancellation flag for a required date range |
Both tools use fixed GET endpoints and filter responses to the listed fields. Order IDs can still be sensitive, so use the order tool only with a client and account authorized to handle them.
## Setup
1. Install Python 3.12+ and [uv](https://docs.astral.sh/uv/).
2. Obtain a Cafe24 OAuth access token with only the scopes you need, `mall.read_product` and/or `mall.read_order`. See the [Cafe24 API documentation](https://developers.cafe24.com/docs/en/api/).
3. Set `CAFE24_MALL_ID` to your mall's hostname label and `CAFE24_ACCESS_TOKEN` through your shell or secret manager. Launch the MCP client from that environment. When the token expires, replace it and restart the client.
```sh
git clone https://github.com/joochanyang/cafe24-mcp-readonly.git
cd cafe24-mcp-readonly
claude mcp add --transport stdio cafe24-readonly -- uv run --project "$PWD" "$PWD/server.py"
```
For another MCP client, use the same `uv run` command as its stdio server command.
## Test
```sh
uv run python -m unittest -v
```
The test starts an MCP client in-process and uses a mock Cafe24 API. It checks tool registration, GET-only requests, and response filtering.
## 한국어 설치 안내
카페24 개발자센터에서 앱을 등록한 뒤 조회에 필요한 권한만 요청하세요.
상품 조회에는 `mall.read_product`, 주문 조회에는 `mall.read_order`가 필요합니다.
쇼핑몰 ID와 발급받은 토큰을 각각 `CAFE24_MALL_ID`, `CAFE24_ACCESS_TOKEN`
환경 변수로 설정하고, 같은 환경에서 위의 Claude Code 등록 명령을 실행하세요.
주문 조회에는 시작일과 종료일을 `YYYY-MM-DD` 형식으로 지정합니다.
TDQS
B3.1/5.0
Scored across 2 tools
Disambiguation5/5
Two tools with clearly distinct domains: products vs orders. No overlap; an agent can easily select the right one.
Naming Consistency5/5
Both follow a consistent list_noun pattern (list_products, list_orders).
Tool Count2/5
Only 2 tools for a read-only commerce server is thin; product and order detail retrieval (get_product, get_order) are missing, leaving an incomplete surface.
Completeness2/5
List-only coverage. No get-by-id tools, no catalog/category or customer listing, so agents cannot drill into a specific product or order after listing. Significant gaps for a read-only commerce domain.
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues