Japan Medical Facilities MCP
by Flanoya
README.md
# Japan Medical Facilities MCP
**Find hospitals, clinics, dental clinics and pharmacies in Japan that are open right now — for AI agents.**
A hosted, remote [Model Context Protocol](https://modelcontextprotocol.io) server built on the open data of Japan's Ministry of Health, Labour and Welfare (医療情報ネット). It covers about **206,000 facilities** nationwide with specialties, locations and weekly opening hours, and it handles **Japanese national holidays** automatically.
日本語版の説明書は [README.ja.md](README.ja.md) にあります。
```
https://jp-medical-mcp-991473954921.asia-northeast1.run.app/mcp
```
- Transport: Streamable HTTP (JSON responses), stateless
- Data version: 2026-06-01 (updated every six months)
- Free tier: 50 tool calls per day per IP, no sign-up
## Why this exists
Agents are asked things like *"Which pediatric clinics near Shinjuku are open on the morning of 11 January?"*. Answering correctly needs three things most models do not have: current facility data, opening hours by weekday, and knowledge that 11 January 2027 is a national holiday (成人の日) so holiday hours apply. This server provides all three in one call.
## Tools
| Tool | What it does |
| --- | --- |
| `find_open_facilities` | Facilities open at a given date and time (JST). Holidays are detected and holiday hours are used |
| `search_facilities` | Search by kind, prefecture, city, specialty, name, weekday and time |
| `get_facility` | Full details and weekly hours by specialty for one facility |
| `check_open` | Whether one facility is open at a given date and time |
| `list_specialties` | Specialty names (Japanese) with facility counts |
| `japan_holidays` | Japanese national holidays for a year, including substitute holidays |
Specialty names are Japanese, e.g. `内科` (internal medicine), `小児科` (pediatrics), `皮膚科` (dermatology), `歯科` (dentistry), `調剤` (pharmacy dispensing). Use `list_specialties` to see them all. Facility kinds: `hospital`, `clinic`, `dental`, `maternity`, `pharmacy`.
## Connect
**Claude (claude.ai / desktop):** add a custom connector with the URL above.
**Claude Code:**
```bash
claude mcp add --transport http jp-medical https://jp-medical-mcp-991473954921.asia-northeast1.run.app/mcp
```
**Cursor / VS Code and other clients (`mcp.json`):**
```json
{
"mcpServers": {
"jp-medical": {
"url": "https://jp-medical-mcp-991473954921.asia-northeast1.run.app/mcp"
}
}
}
```
## Example
```json
{"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {"name": "find_open_facilities",
"arguments": {"at": "2027-01-11T10:00", "prefecture": "東京都",
"city": "新宿区", "specialty": "小児科", "limit": 3}}}
```
The response says the date is a holiday (`"holiday": "成人の日"`, `"day_used": "hol"`) and lists clinics with their holiday hours. Every response carries the data source and a notice.
## Plans
| Plan | Limit | How |
| --- | --- | --- |
| Free | 50 tool calls / day / IP | Just connect |
| Basic | 2,000 tool calls / day | API key |
| Pro | 20,000 tool calls / day | API key |
Send the key as `Authorization: Bearer <key>`. To request a key, [open an issue](../../issues/new?template=api-key.md) with your expected volume and use case.
## Evaluation set: local questions about Japan
The [evaluation set](eval/) has 60 public questions with answers computed from the data (which facilities are open, is a facility open, how many, the nearest open pharmacy, is a date a holiday), plus a scoring script. Use it to measure how well an AI agent answers Japan-specific local questions with or without tools. A larger private set is available for evaluation on request.
## Data, limits and notice
- Source: 厚生労働省「医療情報ネット」オープンデータ, processed by this project (CC BY 4.0). <https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/kenkou_iryou/iryou/newpage_43373.html>
- Opening hours are as reported by each facility to its prefecture and may be outdated. Week-specific closures (e.g. 2nd and 4th Saturdays) and year-end closures are not used for open/closed decisions; they are returned as free text in `other_closures` when available.
- About 16,000 facilities have no coordinates in the source data and do not appear in proximity searches.
- The source data does not include foreign-language support.
- **Always confirm with the facility before visiting. This is not medical advice. If you need an ambulance in Japan, call 119 by phone.**
---
## License
Documentation and the evaluation set: CC BY 4.0 (they are derived from CC BY government data). Scoring script: MIT. The full terms are in the [LICENSE file](LICENSE). The server source code is not published in this repository.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues