# Tokyo Open Data Portal AI Agent Connect

> Tokyo Metropolitan Government's official open data portal: 9,600+ datasets on disaster prevention, tourism, transport (Toei subway), health, environment and the city budget — searchable with pagination, keyless.

## Overview
- **Category:** data-analytics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_x4YoF1RuLf27Tk8YVzy8nzpffq4PUvVgD4ud5cPe/ai-agent-connect
- **Tags:** japan, tokyo, open-data, municipal-data, disaster-prevention, tourism-data

## Description

The **official open data catalog of the Tokyo Metropolitan Government** as a single MCP server — one of the largest municipal open data portals in the world.

### What you can do
- **Search 9,600+ datasets** — disaster prevention (433), daily life (1,149), health (527), education (827), environment (616), tourism (207), culture (471), infrastructure (808), industry (711), digital tech (95), sports (116)
- **Inspect full metadata** — publisher bureau, license, update frequency and every downloadable resource (CSV, XLSX, GeoJSON...) with direct URLs
- **Preview raw data** — fetch the first rows of a resource before deeper analysis
- **Browse by bureau** — explore entire catalogues of each Tokyo government office (General Affairs alone publishes 2,178 datasets)

### What lives here
Real-time-adjacent civic data: earthquake and flood risk maps, radiation measurements, Toei transport stats, COVID-era health data, electricity usage, population by ward, tourism statistics, cherry-blossom and festival data, Tokyo budget documents — the data behind the world's largest metropolis.

### Who is this for?
Urban researchers, Japan analysts, journalists, real-estate and tourism analysts, civic-tech builders and AI agents that need authoritative Tokyo city data.

## Tools

### get_dataset
Use ids/slugs from search_datasets (e.g. t000018d0000000001).

Get full metadata of a Tokyo open dataset: description, publisher, and all downloadable resources

### search_datasets
data.metro.tokyo.lg.jp. IMPORTANT: query terms go against the TITLE and are Japanese (e.g. 観光 tourism, 防災 disaster prevention, 電力 power, コロナ covid). Filter with group (e.g. c023 観光, c015 防災 — see list_categories) and format (e.g. CSV, XLSX). Paginate with page/page_size — never fetch all pages.

Search the 9,600+ open datasets of the Tokyo Metropolitan Government (disaster, tourism, transport, health, environment...)

### preview_resource
Take resource URLs from get_dataset. Best for CSV/JSON; binary formats return limited bytes. Great for inspecting actual rows before deeper analysis.

Preview the raw content of a dataset resource (CSV/XLSX/JSON first rows)

### list_categories
Use group ids in search_datasets.

List the 12 thematic categories of the Tokyo open data portal (disaster, tourism, health...)

### list_organizations
g. 総務局 General Affairs (2178 datasets), 交通局 Transportation Bureau (Toei subway/bus), 環境局 Environment, etc. Useful to explore a bureau's entire output via search_datasets with its name.

List the Tokyo government bureaus publishing open data (with dataset counts)

## Prompt Examples

**Prompt:** 
```
Find Tokyo datasets about tourism and tell me what's available
```

**Response:** 
```
🗼 **Tourism datasets in Tokyo's portal (group c023)**

207 datasets, top hits for 観光:
- **交通局の概要** (Transportation Bureau overview) — Toei subway/bus ridership, CSV
- **観光客数等の実態調査** — visitor count surveys by area
- Hotel/lodging statistics by ward

Most are CSV/XLSX. Want a preview of the visitor survey rows?
```

**Prompt:** 
```
What disaster prevention data does Tokyo publish?
```

**Response:** 
```
🌊 **Disaster prevention (防災) — 433 datasets**

Highlights:
- Earthquake hazard maps by ward (GeoJSON)
- Flood risk zones for the Arakawa/Tama rivers
- Radiation monitoring measurements
- Emergency shelter locations (CSV)

Critical for any Japan-safety application. I can preview the shelter list or extract GeoJSON for a specific ward.
```

**Prompt:** 
```
Which Tokyo bureau publishes the most data?
```

**Response:** 
```
🏛️ **Top publishers (organization_list)**

1. 総務局 (General Affairs) — 2,178 datasets: population, statistics, finances
2. 交通局 (Transportation) — Toei subway & bus data
3. 環境局 (Environment) — air quality, energy

General Affairs dominates because it aggregates city-wide statistics. Want me to list its datasets?
```

## Frequently Asked Questions

**Do I need an API key or registration?**
No. The portal is a standard CKAN catalog with a fully public API — search, metadata, categories and organizations all work without authentication.

**Why must search terms be in Japanese?**
Dataset titles are published in Japanese; the Solr index matches title: term queries, and English terms like "tourism" match nothing. Use Japanese keywords (観光, 防災, 人口) or browse by category/organization instead. The list_categories tool includes the English meaning of each category.
