# Japan Minimum Wage MCP — MHLW Prefecture Rates (`fruitful_quintessence/japan-minimum-wage-mcp`) Actor

MCP server: Japan regional minimum wages, all 47 prefectures, MHLW official stats (revised every October). Latest hourly rate + increase + effective date, 24-year history (FY2002-FY2025), cheapest/most-expensive ranking, national weighted average. Bundled seed cache. Gov Standard Terms 2.0.

- **URL**: https://apify.com/fruitful\_quintessence/japan-minimum-wage-mcp.md
- **Developed by:** [atushi ino](https://apify.com/fruitful_quintessence) (community)
- **Categories:** MCP servers
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 minimum-wage-latests

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Japan Minimum Wage MCP — 日本の地域別最低賃金（厚生労働省 公式統計）

[![MCP](https://img.shields.io/badge/MCP-server-blue)](https://smithery.ai)
[![License: Gov Terms 2.0](https://img.shields.io/badge/license-政府標準利用規約2.0-green)](https://www.gov-online.go.jp/usagi/plan2.html)

MHLW（厚生労働省）公式統計「地域別最低賃金の全国一覧」から、日本の **47 都道府県の地域別最低賃金** を
AI エージェント（Claude, ChatGPT 等）から MCP ツールとして照会できるサーバーです。

LLM の記憶は設計上すぐに古くなります。最低賃金は毎年 10 月に改定されるため、
「現在の正しい最低賃金」を答えるには常に最新の公式ソースが必要です。
HR SaaS・給与計算・コンプライアンス・コスト見積もりの自動化に利用できます。

### 提供ツール

| ツール | 内容 |
|---|---|
| `get_minimum_wage` | 指定都道府県の最新年度最低賃金時間額＋前年度額＋引上げ額＋発効日（全国加重平均も可） |
| `get_minimum_wage_history` | 指定都道府県の過去 N 年度の改定履歴（金額＋発効日、min/max 付き） |
| `rank_minimum_wages` | 47 都道府県の時間額ランキング（安い順＋高い順、全国加重平均付き） |
| `list_prefectures` | 照会可能な都道府県名（漢字・ローマ字）・利用可能年度・最新年度の一覧 |

### データ

- **ソース**: 厚生労働省「地域別最低賃金の全国一覧」
  （`https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/koyou_roudou/roudoukijun/minimumichiran/`）
- **最新年度**: 令和 7 年度（2025 年 10 月〜 2026 年 3 月にかけて順次発効）
- **履歴**: 平成 14 年度（2002）〜 令和 7 年度まで 24 年度分
- **全国加重平均**: 1,121 円/時間（令和 7 年度）
- **単位**: 円/時間（JPY per hour）
- **ライセンス**: 政府標準利用規約 2.0（出典明示で商用利用可）

### クイックスタート

```bash
uv run src/stdio_main.py          # stdio MCP サーバー（Claude Desktop / Cursor / Smithery）
```

Claude Desktop の `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "japan-minimum-wage": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/japan-minimum-wage-mcp", "src/stdio_main.py"]
    }
  }
}
```

### REST（RapidAPI / OpenAPI ゲートウェイ用）

Apify Standby 起動時（`uv run -m src.main`）は `/mcp`（streamable-http）に加え、
素の GET エンドポイントも公開します（RapidAPI freemium 公開用）:

| エンドポイント | 説明 |
|---|---|
| `GET /rest/latest?prefecture=tokyo` | 最新最低賃金 |
| `GET /rest/history?prefecture=osaka&years=5` | 改定履歴 |
| `GET /rest/rank?limit=10` | 安い順ランキング |
| `GET /rest/prefectures` | 都道府県・年度一覧 |
| `GET /openapi.json` | OpenAPI ドキュメント |

### 開発

```bash
uv venv && uv pip install -e .
uv pip install pytest
python scripts/build_seed.py     # data/minwage.json を MHLW XLSX から再生成
pytest -q                       # 18 tests
python scripts/sync_manifest_tools.py   # manifest.json の tools をサーバーから同期
python scripts/pack_mcpb.py             # server.mcpb（Smithery 公開用）を生成
```

### 仕様

- 完全ローカル実行（API キー不要）。同梱シードキャッシュ（`data/minwage.json`）から即応答
- `force=True` 指定時のみ MHLW 公式 XLSX を再取得（年 1 回更新のため TTL 24h）
- 読み取り専用・閉世界（ツールは失敗しない）設計

***

出典: 厚生労働省「地域別最低賃金の全国一覧」/ Government Standard Terms of Use 2.0.

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

## `mcp_endpoint` (type: `string`):

Streamable-HTTP MCP endpoint of this run's Standby container (append /mcp, Bearer Apify token required).

## `run_output` (type: `string`):

Console view of this run (MCP servers return results inline over the protocol, not via dataset).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("fruitful_quintessence/japan-minimum-wage-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("fruitful_quintessence/japan-minimum-wage-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call fruitful_quintessence/japan-minimum-wage-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fruitful_quintessence/japan-minimum-wage-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ODh1F4XP5sLlXu6Ep/builds/CbhdzFVmcykzCSxS5/openapi.json
