countries-states-cities-database

Provides a global dataset of countries, states/regions, and cities (including ISO codes, names, coordinates, and timezones for countries) distributed as downloadable files and via an associated REST API ecosystem. Exports are available in many formats (e.g., JSON, CSV, SQL/MySQL/PostgreSQL, SQLite, MongoDB, XML, YAML, GeoJSON, and TOON).

Evaluated Mar 29, 2026 (0d ago)
Homepage ↗ Repo ↗ Databases databases geographical-data countries states cities csv json sql sqlite mongodb geojson api open-source iso-codes timezones
⚙ Agent Friendliness
54
/ 100
Can an agent use this?
🔒 Security
48
/ 100
Is it safe for agents?
⚡ Reliability
49
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
0
Documentation
65
Error Messages
0
Auth Simplicity
60
Rate Limits
30

🔒 Security

TLS Enforcement
70
Auth Strength
35
Scope Granularity
30
Dep. Hygiene
45
Secret Handling
60

Direct dataset downloads and offline packages reduce credential risk. However, the supplied content does not describe REST API authentication details, scopes/authorization model, or rate-limit headers; thus auth and operational security cannot be fully validated. TLS requirement is not explicitly stated in the provided README.

⚡ Reliability

Uptime/SLA
55
Version Stability
65
Breaking Changes
40
Error Recovery
35
AF Security Reliability

Best When

You need a large, regularly updated reference dataset across multiple formats, or you need quick integration through ready-to-use client packages/export downloads.

Avoid When

You require transactional correctness of “current” administrative boundaries or live data; treat this as reference data that may lag behind real-world changes.

Use Cases

  • Populate applications with normalized geographic hierarchy (country → state/region → city)
  • Offline ingestion into databases via SQL/SQLite/MySQL/PostgreSQL/MongoDB dumps
  • Geocoding-like UI dropdowns (countries/states/cities) and validation of user inputs
  • Analytics/GIS pipelines using GeoJSON and coordinate fields
  • LLM-friendly context formatting using TOON
  • Building administrative tools that need consistent geographic reference data

Not For

  • Authoritative real-time location search/geocoding beyond the static dataset
  • Systems requiring strict provenance/audit trails beyond the published dataset updates
  • Use as a live reference source without ensuring you keep dataset/API versions updated

Interface

REST API
Yes
GraphQL
No
gRPC
No
MCP Server
No
SDK
Yes
Webhooks
No

Authentication

Methods: API via REST (implied) No auth described for direct downloads / offline packages
OAuth: No Scopes: No

The README notes the REST API exists and references docs/playground, but it does not describe authentication method details or scopes. It also describes free tier/credits for API/export tools, implying some form of access control or quota may apply, but specifics are not provided in the supplied content.

Pricing

Model: Free tier + paid credits (for API and/or export to
Free tier: Yes
Requires CC: No

README states REST API has a 'free tier + paid' model and export tool is 'free + credits', but it does not provide concrete pricing/limits in the supplied content.

Agent Metadata

Pagination
none
Idempotent
False
Retry Guidance
Not documented

Known Gotchas

  • The provided content does not specify REST error formats, retry/backoff guidance, pagination behavior, or idempotency guarantees; these may exist in the referenced API docs/OpenAPI but are not present in the supplied text.
  • Large exports are served from GitHub Releases (not committed to git); agents must handle download/extraction correctly (e.g., .gz).

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for countries-states-cities-database.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-03-29.

5347
Packages Evaluated
21056
Need Evaluation
586
Need Re-evaluation
Community Powered