Japan Culture MCP Server
Provides tools for searching anime and manga metadata through the AniList GraphQL API and cross-referencing AniList results with MADB and other cultural sources.
Uses OpenStreetMap-derived data for temples, shrines, torii gates, and other cultural landmarks, supporting geospatial and nearby cultural search.
Enables searching Wikidata for Japanese cultural entities and resolving entity names to Wikidata IDs; Wikidata also supplies a major portion of the ontology data.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Japan Culture MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with deep access to Japanese cultural knowledge. Powered by an ontology database of 8,340,000+ entities and 7,650,000+ cultural connections spanning from ancient classical arts to modern subculture, sourced from 156+ authoritative databases.
Features
8.3M+ Entities: Anime, manga, ukiyo-e, temples, shrines, festivals, literature, crafts, national treasures, museums, and more
7.6M+ Connections: Cultural serendipity graph linking seemingly unrelated cultural elements across themes, eras, media, geography, and experience
45 MCP Tools: Comprehensive search, discovery, comparison, mapping, tourism, CCDM analysis, bulk export, and exploration
FTS5 Full-Text Search: Hybrid trigram (CJK substring matching) + unicode61 tokenizer — sub-millisecond queries
R-Tree Spatial Index: Lightning-fast geographic queries for 750K+ geolocated entities
Pilgrimage Support: 65,000+ anime/film pilgrimage connections with route generation and timeline
Tourism Analysis: Region profiles, prefecture profiles (47 prefectures), tourism asset discovery, cultural density heatmaps
CCDM Research: Emergence analysis, K^I proxy indicators, bulk region comparison, dataset export
156+ Data Sources: JapanSearch, Wikidata, MADB, AniList, NDL, OSM, DBpedia, and many more
5-Axis Ontology: Theme (83 values), Era (10), Medium (18), Geography (13), Experience (9)
Related MCP server: ekigraph
Quick Start
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"japan-culture": {
"command": "python3",
"args": ["-m", "server.japan_culture_mcp"],
"cwd": "/path/to/japan_culture_mcp",
"env": {
"DB_PATH": "/path/to/japan_culture_mcp/ontology/culture_ontology.db"
}
}
}
}pip Install
pip install -e .
japan-culture-mcpDocker
# Copy your database to data/
cp ontology/culture_ontology.db data/
# Build and run
docker-compose up -dTools (39)
Core Ontology Tools
# | Tool | Description |
1 |
| Search anime/manga via AniList GraphQL API |
2 |
| Search MADB (manga, anime, games) via SPARQL |
3 |
| Cross-reference AniList and MADB results |
4 |
| Search 264+ cultural institution databases via JapanSearch |
5 |
| Search Wikidata for Japanese cultural entities |
6 |
| Resolve entity names to Wikidata IDs |
7 |
| Get IIIF Manifest from National Diet Library |
8 |
| Get OCR text from NDL digital collections |
9 |
| Search National Diet Library via SRU |
10 |
| Search DBpedia Japanese |
11 |
| Fetch any IIIF manifest (CODH, NDL, e-Museum) |
12 |
| Get GSI (Geospatial Information Authority) map tiles |
13 |
| Get Cultural Heritage WebGIS map URLs |
14 |
| Get tourism statistics from e-Stat |
15 |
| Cross-reference across all data sources |
Serendipity & Discovery Tools
# | Tool | Description |
16 |
| Discover unexpected cultural connections (e.g., Hokusai -> Mushishi) |
17 |
| Explore culture along 5 axes (theme/era/medium/geography/experience) |
18 |
| Get detailed entity profile with tags, connections, coordinates |
19 |
| Generate cultural routes by theme and region |
20 |
| Cross-search ontology DB and external APIs |
Specialized Search Tools
# | Tool | Description |
21 |
| Search traditional crafts (ceramics, textiles, lacquerware) |
22 |
| Search literature (Aozora Bunko + Wikidata) |
23 |
| Search artworks and museum collections |
24 |
| Search festivals and seasonal events |
25 |
| Search Living National Treasures (Ningen Kokuho) |
26 |
| Generate serendipity connection graph routes |
27 |
| BFS exploration of connection graph (up to depth 3) |
28 |
| Get ontology database statistics |
Pilgrimage & Location Tools
# | Tool | Description |
29 |
| Search anime/film pilgrimage spots by work, region, or coordinates |
30 |
| Generate pilgrimage routes (anime + cultural spots) |
31 |
| Search cultural resources near given coordinates |
Phase 14 New Tools
# | Tool | Description |
32 |
| Generate cultural timelines for any theme with era/region filters |
33 |
| Compare two cultural elements to find commonalities and differences |
34 |
| Generate GeoJSON culture maps (pilgrimage, crafts, festivals) |
35 |
| Get today's cultural events, festivals, and seasonal topics |
36 |
| Get categorized deep-dive recommendations for any entity |
Phase 16 Tourism Tools
# | Tool | Description |
37 |
| Generate comprehensive cultural profile for any Japanese region |
38 |
| Find tourism assets by category (shrines, temples, pilgrimage, food, etc.) |
39 |
| Grid-based cultural density analysis for heatmap visualization |
Data Sources
Source | Entities | Description |
JapanSearch SPARQL | ~6,500,000 | Prints, books, historical documents, photographs, newspapers, music, video |
Wikidata | ~300,000 | Shrines, temples, athletes, music, people, companies, films, games, characters |
MADB | ~115,000 | Manga (250K volumes), anime (9K titles), games (35K) |
OSM (OpenStreetMap) | ~100,000 | Temples, shrines, torii gates, cultural landmarks |
National Land Info | ~44,000 | Tourism spots, cultural properties, world heritage, visitor facilities |
ToMuCo | ~41,000 | Tokyo museum collections |
DBpedia Japanese | ~23,000 | Places, persons, events, works |
AniList | ~17,500 | Anime and manga with rich metadata |
Aozora Bunko | ~16,000 | Classical and modern Japanese literature |
ColBase | ~9,000 | National museum collections and artifacts |
NDL | ~3,700 | Classical texts, ukiyo-e prints |
See docs/DATA_SOURCES.md for the complete list with URLs and licensing.
Architecture
japan_culture_mcp/
server/
japan_culture_mcp.py # MCP server (39 tools, v1.2.0)
google_maps_integration.py # Google Maps route support
ontology/
culture_ontology.db # SQLite DB (~3GB, 10M+ entities)
scripts/ # Data pipeline scripts
docs/ # Documentation
tests/ # Test suiteDatabase Schema
entities (10M+ rows):
id, wikidata_id, label_ja, label_en, entity_type, madb_id, ndl_id, anilist_id, dbpedia_uri, lat, lon, source, ...connections (3.9M+ rows):
entity_a_id, entity_b_id, connection_type, serendipity_score, explanation, theme/era/medium/geography/experience distances, ...entities_fts (FTS5): Full-text index on
label_ja, label_enentities_rtree (R-Tree): Spatial index on
lat, lonentity_tags: 5-axis ontology tags (theme, era, medium, geography, experience)
See docs/ARCHITECTURE.md for full details.
5-Axis Ontology
Axis | Values | Examples |
Theme | 83 | yokai, samurai, love_bond, seasonal_beauty, nature_communion |
Era | 10 | ancient, nara, heian, kamakura, muromachi, azuchi_momoyama, edo, meiji, showa, reiwa |
Medium | 18 | manga, anime_tv, ukiyoe, architecture, literature, music, film |
Geography | 13 | 8 regions + key prefectures/cities |
Experience | 9 | aesthetic, intellectual, reflective, physical, social |
Examples
Discover unexpected connections
Ask Claude: "Find cultural connections between Hokusai and modern anime"
The find_serendipity tool will traverse the connection graph to reveal links like:
Hokusai's Great Wave -> Studio Ghibli's Ponyo (shared ocean/wave motif)
Hokusai's yokai art -> Mushishi (supernatural nature themes)
Edo-period ukiyo-e -> Attack on Titan (dramatic composition techniques)
Generate a pilgrimage route
Ask Claude: "Create an anime pilgrimage route in Kamakura"
The generate_pilgrimage_route tool combines anime filming locations with nearby cultural landmarks:
Slam Dunk railroad crossing (Kamakura Koko Mae)
Tsurugaoka Hachimangu shrine
Great Buddha of Kamakura
Compare two cultural traditions
Ask Claude: "Compare Noh theater and Kabuki"
The compare_cultures tool reveals shared and unique elements:
Common: Japanese theater tradition, masks, stylized movement
Noh-unique: Muromachi era origins, Zen influence, minimalism
Kabuki-unique: Edo-era popular entertainment, elaborate costumes, onnagata
Cultural map generation
Ask Claude: "Show me a map of pottery-producing regions in Japan"
The generate_culture_map tool returns GeoJSON data with all ceramic production sites, categorized by style and era.
Environment Variables
Variable | Required | Description |
| Yes | Path to |
| No | Enables Google Maps route generation (falls back to GSI tiles) |
| No | For LLM-based connection quality scoring |
Development
# Install with test dependencies
pip install -e ".[test]"
# Create test database
python scripts/create_test_db.py
# Run tests
pytest tests/ -v
# Run benchmarks
python scripts/benchmark.pyLicense
MIT License. See LICENSE for details.
Data sourced from open government and community databases. See docs/DATA_SOURCES.md for individual source licenses.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Japan POI tools for AI agents: 2.94M facilities, station catchments, chains, grants and signals
Free Japanese public-data tools for AI agents: holidays, business days, wareki, tax, postcodes.
Summon Japan: one MCP endpoint for free Japan data tools and human hands for physical tasks.
Japan data tools for AI agents: calendar (rokuyo), address, name splitting, corporate number lookup
Related MCP Servers
- AlicenseAqualityCmaintenanceJapan Operations OS for AI agents — 14 knowledge domains covering regulations, protocols, calendar, travel, food culture, language, disaster safety, daily life, and persistent memory. 31 MCP tools via REST + Streamable HTTP.31MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to answer questions about Japan's railway network with accurate track-connection data, including station neighbors and local subgraphs for all 9,043 stations nationwide.2MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to access and compare Japanese public data from e-Stat, corporate registration, real estate, and invoice APIs, automatically converting codes into human-readable formats with sources and timestamps.1460 PyPI13MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to explore and extend a local-first, SQLite-backed visual knowledge graph through 12 tools for listing maps, searching and reading nodes, and creating, updating, or linking nodes and edges. Every AI-written node carries provenance and is checked against near-duplicate titles, so agent-added ideas appear in a shared graph that people also edit by hand.MIT