atlaspi-mcp
The AtlasPI MCP server provides comprehensive access to a structured historical geographic database spanning 4,500 BCE to 2024 CE, enabling AI agents to query, explore, and analyze geopolitical history across civilizations.
Entity & Territory Search
Search historical entities (empires, kingdoms, city-states, republics, etc.) by name, year, type, continent, or status
Get full entity details: GeoJSON boundaries, confidence scores, capital coordinates, citations
Batch-fetch up to 100 entities by ID; fuzzy search across scripts/languages
Find similar entities ranked by type, time overlap, duration, and confidence
Geographic & Spatial Queries
Nearby entities: find geopolitical entities closest to a lat/lon in a given year
Where was (reverse geocoding): given coordinates + year, find which historical state controlled that location (with full history option)
Nearest historical city: find historical cities closest to given coordinates
Snapshots & World State
Snapshot at year: all active entities in a given year, filtered by type/continent
World snapshot: active periods, top entities, events, cities, and dynasty chains for a year in one call
What changed between two years: diff of entities that appeared, disappeared, or persisted
Events & History
Search events by year range, type (BATTLE, TREATY, GENOCIDE, REVOLUTION, EPIDEMIC, etc.), status, and
known_silenceflagGet event details with entity roles (MAIN_ACTOR, VICTIM, PARTICIPANT, etc.) and ethical notes
Events for a specific entity, geolocated events for map display, and On This Day (by MM-DD across all years)
Timelines, Evolution & Comparisons
Entity evolution: chronological territorial changes, capital moves, and regime transitions
Full unified timeline: events + territory changes + succession transitions in one call
Compare two entities: time overlap, territorial extent, capitals, and sources
Dynasties & Succession Chains
Search chains by type (DYNASTY, SUCCESSION, COLONIAL, IDEOLOGICAL, etc.), region, or year
Get chain details with explicit transition types (CONQUEST, REVOLUTION, DECOLONIZATION, etc.) and violence flags
Find predecessors/successors for any entity
Cities, Trade Routes & Historical Periods
Search historical cities by year, type (CAPITAL, TRADE_HUB, PORT, FORTRESS, etc.), owning entity, or bounding box; colonial renames documented
Search trade routes by year, type (LAND, SEA, CARAVAN, etc.), and slavery involvement
List and query historical periods (Bronze Age, Renaissance, Cold War, etc.); find periods overlapping a year, entity, or event
Stats & Discovery
Dataset statistics: counts, breakdowns by type/continent/status, confidence averages
Random entity discovery, optionally filtered by type, year, continent, or status
Community Feedback
Submit corrections, missing sources, bias reports, or boundary disputes (human-reviewed)
List existing feedback and view aggregate feedback stats
Ethical Design: All data includes confidence scores and status (confirmed/uncertain/disputed). Explicit acquisition_method and transition_type avoid euphemisms for violence. known_silence flags suppressed records, colonial renames are documented, and slavery is flagged on trade routes.
Why AtlasPI exists
AI agents working with historical geography today face a fragmented landscape: raw shapefiles in Natural Earth, unstructured text in Wikipedia, scattered coordinates in Wikidata, and academic datasets locked behind incompatible formats. None of these were designed for machine consumption.
AtlasPI bridges this gap. It provides a single, structured REST API where an AI agent can ask "What territories existed in the Balkans in 1400?" or "Show me the boundary changes of the Ottoman Empire" and get back clean JSON with GeoJSON boundaries, confidence scores, academic citations, and honest metadata about what is certain and what is disputed.
Historical data is never neutral. Borders were drawn through conquest, names were imposed through colonization, populations were erased through genocide. AtlasPI does not sanitize this complexity -- it structures it, documents it, and makes it queryable.
Related MCP server: Seshat MCP Server
Screenshot

The web UI supports keyboard shortcuts, deep linking (/app?year=1000), continent filtering, time playback animation, dark/light mode, and full i18n (English/Italian). Try it live at atlaspi.it.
Quick Start
# Clone the repository
git clone https://github.com/Soil911/AtlasPI.git
cd AtlasPI
# Install dependencies
pip install -r requirements.txt
# Run the server (auto-seeds the database on first launch)
python run.pyThe API is now live at http://localhost:10100 and the interactive docs at http://localhost:10100/docs.
Docker
docker compose up --buildAPI Documentation
AtlasPI exposes 23 REST endpoints under /v1/. Full interactive documentation is available at /docs (Swagger UI) and /redoc when the server is running.
Core Endpoints
Method | Endpoint | Description |
|
| Query entities with filters (name, year, status, type) |
|
| Paginated list of all entities |
|
| Full detail for a single entity |
|
| Autocomplete search |
|
| List available entity types |
|
| Dataset statistics |
|
| Available continent/region filters |
|
| Random entity (with optional type/year/status/continent filters) |
|
| Aggregate stats by century, type, continent, status |
|
| Find entities near coordinates (with distance) |
|
| World state at a given year (summary + entities) |
|
| Structured comparison of two entities |
|
| Multi-entity comparison (2-4) with events, chains, overlap |
|
| Entities with overlapping time periods |
|
| Related entities by type or region |
|
| Full chronological evolution of an entity |
|
| Export as GeoJSON FeatureCollection |
|
| Export as CSV |
|
| Export timeline data |
|
| Service health check |
|
| Embeddable map view for iframes |
|
| Interactive entity comparison page |
Examples
Search for empires active in 1500 CE:
curl "http://localhost:10100/v1/entity?type=empire&year=1500"Get full details for entity #12:
curl "http://localhost:10100/v1/entities/12"Find entities contemporary to the Roman Empire:
curl "http://localhost:10100/v1/entities/1/contemporaries"Export all entities as GeoJSON:
curl "http://localhost:10100/v1/export/geojson" -o atlas.geojsonFind entities near Rome active in 100 CE:
curl "http://localhost:10100/v1/nearby?lat=41.9&lon=12.5&year=100&radius=500"Snapshot of the world in 1500 CE:
curl "http://localhost:10100/v1/snapshot/1500" | jq '.summary'Compare two entities side by side:
curl "http://localhost:10100/v1/compare/1/5"Response Example
{
"id": 1,
"name": "Imperium Romanum",
"name_variants": [
{"name": "Roman Empire", "language": "en"},
{"name": "Imperio Romano", "language": "es"}
],
"entity_type": "empire",
"year_start": -753,
"year_end": 476,
"status": "confirmed",
"confidence_score": 0.95,
"capital": {"name": "Roma", "lat": 41.9028, "lon": 12.4964},
"territory_changes": [...],
"sources": [
{"citation": "...", "source_type": "academic"}
]
}Dataset Overview
How this data is curated — disclosure and correction (2026-07-23)
Curation of non-boundary records (entities, events, cities, rulers, routes, sites) is AI-assisted: LLM research agents propose metadata and candidate citations, an adversarial verification step rejects citations that do not exist or do not support the claim, and the maintainer supervises the pipeline. Records are not systematically reviewed by professional historians. Until the human citation audit (protocol) is published, treat citations as machine-verified, not human-audited. Earlier versions of this documentation said the dataset was "hand-curated" — that wording was inaccurate and has been retired. Full details: METHODOLOGY §2.4 · ETHICS-028 (EN).
1,006 historical entities + 643 historical events spanning 6,500 years of human civilization, backed by 5,000+ academic sources and documenting 2,000+ territory changes. Plus 1,249 archaeological sites, 105 historical rulers, 29 historical languages, 104 dynasty chains, 41 trade routes, 252 historical cities, and 55 historical periods. Events include battles, treaties, epidemics, genocides, colonial violence, massacres, deportations and natural disasters — with ETHICS-007 (no euphemisms) and ETHICS-008 (known_silence flag for erased/suppressed records).
Coverage by Region
Region | Entities | Examples |
Asia | 195 | Mongol Empire, Qin/Han/Tang/Song/Ming, Tokugawa, Mughal, Khmer, Three Kingdoms |
Europe | 104 | Roman Empire, Byzantine, Kyivan Rus', Hanseatic League, Crusader states, Prussia |
Americas | 85 | Tawantinsuyu (Inca), Aztec, Maya, Haudenosaunee, Empire of Brazil, Taino |
Africa | 78 | Mali, Songhai, Kingdom of Kongo, Great Zimbabwe, Aksum, Zulu, Buganda |
Middle East | 70 | Achaemenid, Ottoman, Abbasid Caliphate, Rashidun, Kingdom of Jerusalem |
Oceania & Pacific | 8 | Aboriginal nations, Maori iwi, Kingdom of Tonga, Hawaiian Kingdom |
Entity Types
15 categories: empire | kingdom | republic | confederation | city-state | dynasty | colony | disputed_territory | sultanate | khanate | principality | duchy | caliphate | federation | city
Time Coverage
Earliest entity: 4500 BCE (ancient Mesopotamian civilizations)
Latest entity: 2024 (modern states and disputed territories)
Negative years represent BCE dates (e.g.,
-753= 753 BCE)
📖 Citation
If you use AtlasPI in research, teaching, or derivative datasets, please cite the project using the Zenodo concept DOI below. The concept DOI always resolves to the latest release — individual versions get their own per-release DOIs on top.
BibTeX
@software{atlaspi_2026,
author = {{AtlasPI Project}},
title = {AtlasPI: A structured historical geographic database for AI agents},
version = {6.13.0},
year = {2026},
doi = {10.5281/zenodo.19581784},
url = {https://doi.org/10.5281/zenodo.19581784}
}Plain-text citation
AtlasPI Project (2026). AtlasPI: A structured historical geographic database for AI agents, version 6.14.0. Zenodo. https://doi.org/10.5281/zenodo.19581784
Ethical Framework
Historical data carries the weight of conquest, displacement, and erasure. AtlasPI is built on four principles that govern every data decision:
1. Truth Before Comfort
Historical records include conquest, genocide, forced deportation, and cultural erasure. These facts are represented with precision, never sanitized. If a territory was seized by force, the acquisition_method field says so. If a population was decimated, the data shows it with sources. If a geographic name was imposed by erasing the original, both names are present.
2. No Single Version of History
Contested borders show all known versions, with dates and sources. Place names include the original local form alongside names in other relevant languages. Academic disputes are made explicit, not resolved by fiat. The database does not arbitrate history -- it documents it.
3. Transparency of Uncertainty
Every record carries a confidence_score from 0.0 to 1.0. Every data point includes sources[] with primary source citations. Records scoring below 0.5 are marked as status: "uncertain" (enforced at the data layer — see ETHICS-013; the distinct status: "disputed" is reserved for contested territories, ETHICS-003). An uncertain datum honestly labeled is more valuable than a fabricated certainty.
4. No Geographic or Cultural Bias
Place names use the local-language form as the primary name. Sources include non-Western historiography where available. Colonial conquests are documented from the perspective of the colonized, not only the colonizers.
These principles are enforced through automated ethical tests, documented decisions in
docs/ethics/, and# ETHICS:comments throughout the codebase. See CLAUDE.md for the full governance framework.
Architecture
Tech Stack
Component | Technology |
API | FastAPI (Python 3.11+) |
Database (dev) | SQLite |
Database (prod) | PostgreSQL + PostGIS |
Validation | Pydantic v2 |
Rate Limiting | SlowAPI |
Frontend | Vanilla JS + Leaflet.js |
Containerization | Docker (multi-stage build) |
CI | GitHub Actions (lint + test + build) |
Project Structure
atlaspi/
src/
api/ # FastAPI routes, schemas, error handling
db/ # SQLAlchemy models, database setup, seed data
ingestion/ # Data import pipelines, boundary extraction
validation/ # Confidence scoring engine
static/ # Web UI (HTML, CSS, JS)
data/
entities/ # Source entity data (JSON)
raw/ # Original unmodified source data
processed/ # Normalized data
tests/ # 260 tests: technical, ethical, security, performance, data quality
docs/
adr/ # Architecture Decision Records
ethics/ # Documented ethical decisions (ETHICS-001, 002, 003...)Key Design Decisions
Dual database support: SQLite for zero-config local development, PostgreSQL + PostGIS for production spatial queries.
Auto-seeding: The database populates itself on first launch from JSON entity files -- no manual migration needed.
GZip compression, CORS, rate limiting (60 req/min), and security headers enabled by default.
Structured logging: JSON format in production, human-readable in development.
Testing
The test suite covers five dimensions:
# Run all tests
pytest
# Run with verbose output
pytest -vCategory | What it verifies |
Technical | API responses, pagination, input validation, edge cases |
Ethical | ETHICS-001/002/003 compliance, disputed territory handling, confidence thresholds |
Security | CORS, security headers, structured error responses, rate limiting |
Performance | All endpoints respond in < 500ms |
Data Quality | Source completeness, regional diversity, entity type coverage |
Contributing
Contributions are welcome. Before you start:
Read CLAUDE.md -- it contains the project's core values and development conventions.
Check
docs/ethics/-- understand the ethical decisions already made.Check
docs/adr/-- understand the architectural decisions already made.
Guidelines
Code is written in English; documentation in Italian (except this README).
Every function touching sensitive historical data must include an
# ETHICS:comment explaining the design choice.Tests must cover ethical edge cases, not only technical ones.
New entity data must include
sources[]with verifiable academic citations.Disputed territories must have
confidence_score <= 0.7andstatus: "disputed".
Adding Historical Entities
Entity data lives in data/entities/ as JSON files. Each entity requires:
Primary name in the original/local language
At least one academic source
A confidence score reflecting source reliability
Territory changes with dated boundaries where available
Development Setup
# Install with dev dependencies
pip install -e ".[dev]"
# Lint
ruff check src/ tests/
# Test
pytest -vRoadmap
See ROADMAP.md for the full development plan. Key upcoming milestones:
PostgreSQL + PostGIS spatial queries in production
Full GeoJSON boundary coverage for all entities
Wikidata/OpenStreetMap ingestion pipelines
Premium API tier with higher rate limits
Hosted instance with public access
How to Cite
If you use AtlasPI in academic work, teaching, or derivative datasets, please cite it. A machine-readable CITATION.cff is provided in the repository root and is recognized by GitHub, Zenodo, Zotero, and most reference managers.
Suggested citation (software)
Ramadani, C. (2026). AtlasPI: A structured historical geographic database for AI agents (Version 6.1.2) [Software]. CRA. https://doi.org/10.5281/zenodo.19581784
BibTeX
@software{ramadani_atlaspi_2026,
author = {Ramadani, Clirim},
title = {AtlasPI: A structured historical geographic database for AI agents},
version = {6.1.2},
year = {2026},
publisher = {CRA},
doi = {10.5281/zenodo.19581784},
url = {https://doi.org/10.5281/zenodo.19581784},
note = {Live instance: https://atlaspi.it. Concept DOI (all versions): 10.5281/zenodo.19581784. Version v6.1.2 DOI: 10.5281/zenodo.19581785.}
}Citing the underlying boundary sources
AtlasPI derives its geographic boundaries from two upstream datasets. If your work depends on spatial precision, please also cite them directly:
Natural Earth (public domain) — post-1800 modern administrative boundaries. https://www.naturalearthdata.com/
aourednik/historical-basemaps (CC BY 4.0) — pre-1800 historical world timestamps. Ourednik, A. historical-basemaps. https://github.com/aourednik/historical-basemaps
For full methodology on how boundaries are assigned, matched, and confidence-scored, see docs/METHODOLOGY.md.
The dataset has a permanent DOI minted by Zenodo: 10.5281/zenodo.19581784 (concept DOI, always resolves to the latest version). Every tagged release mints a new version DOI; see the Zenodo record for v6.1.2 specifically. Deposition metadata is in .zenodo.json.
License
AtlasPI follows an open core model.
The core project -- API, data models, ethical framework, and documentation -- is released under the Apache License 2.0.
Imported datasets retain their original licenses. Every source is tracked and attributed. Premium components (hosted services, curated datasets, enterprise features) are maintained separately from the open source core.
See LICENSE for the full Apache License 2.0 text and NOTICE for third-party attributions.
Acknowledgments
AtlasPI builds on the work of:
Natural Earth -- public domain vector map data for modern boundaries
aourednik/historical-basemaps -- historical world boundary data
OpenStreetMap -- geographic data under ODbL
Wikidata -- structured knowledge base under CC0
And the countless historians, cartographers, and researchers whose work makes structured historical geography possible.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
Flicense-qualityBmaintenanceProvides structured access to a temporal knowledge platform for searching historical events and browsing a causal graph of over 2,000 years of history. It enables users to generate rich historical scenes, interact with period-appropriate characters, and run complex temporal simulations.- Flicense-qualityBmaintenanceEnables querying 10,000 years of historical social-complexity data from the Seshat Global History Databank through 9 tools, allowing counterfactual analysis and comparison of polities in natural language.

Magic Lane MCP Serverofficial
AlicenseBqualityBmaintenanceEnables AI agents to become geospatially intelligent assistants with tools for location search, smart routing, round trip planning, reverse geocoding, isochrone analysis, route visualization, geofence management, and interactive map display.81846Apache 2.0- Alicense-qualityAmaintenanceProvides complete world location data (countries, states, cities) as an MCP server for AI assistants, enabling search and retrieval of geographic information through 11 tools and 5 resources.2821MIT
Related MCP Connectors
Free public MCP for AI agents — 193 tools, 44 workflows. No API key.
Geopolitical grounding for AI agents: country risk, forecasts, chokepoints, sanctions. Free tier.
Package intelligence MCP for AI agents — 22 tools, 19 ecosystems, AGPL SDK, free.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Soil911/AtlasPI'
If you have feedback or need assistance with the MCP directory API, please join our Discord server