geodb-cities

geodb-cities

4.0

The GeoDB Cities MCP Server provides comprehensive data about cities, regions, countries, and islands worldwide, with filtering and sorting capabilities.

The GeoDB Cities MCP Server offers a RESTful API that provides access to extensive global geographic data. You can retrieve information about over 700,000 towns, cities, counties, and islands, which can be filtered and displayed in multiple languages. This server adheres to industry best practices to ensure a reliable and efficient service.

Features

  • Global Data Access: Retrieve data on cities, regions, countries, and islands from around the world.
  • Filtering Options: Filter data by name prefix, country, location, time zone, or minimum population.
  • Multi-language Support: Display results in various languages, including English, French, German, Italian, Portuguese, Russian, and Spanish.
  • Sorting Capabilities: Sort results by name, country code, elevation, population, or any combination of these criteria.
  • Place Details: Access detailed information about places, including GPS location, time zone, population, elevation, and current time, factoring in daylight savings.

MCP Tools

  • Admin Divisions: Find administrative divisions based on optional filters, with a minimum population of 1000.
  • Admin Divisions Near Division/Location: Retrieve divisions near a specified location or division.
  • Admin Division Details: Access detailed information for specific divisions, including location, population, and elevation.
  • Countries and Country Details: Retrieve countries and details, including the number of regions.
  • Country Regions: Find regions within a specific country, such as states or provinces.
  • Country Region Details: Obtain details for specific regions, including the number of cities.
  • Cities and City Details: Access cities and their details, including location and population.
  • Cities Near City/Division/Location: Find cities near a specified city, division, or location.
  • Places and Place Details: Retrieve places and detailed information, including coordinates and population.
  • Currencies, Languages, Locales, and Time-Zones: Access data related to currencies, supported languages, known locales, and time-zones.

Usage with Different Platforms

python

python
import requests

url = 'https://geodb-cities-api.com/api/v1/cities'
params = {
    'namePrefix': 'San',
    'countryIds': 'US',
    'minPopulation': 100000
}
response = requests.get(url, params=params)
print(response.json())

javascript

javascript
fetch('https://geodb-cities-api.com/api/v1/cities?namePrefix=San&countryIds=US&minPopulation=100000')
  .then(response => response.json())
  .then(data => console.log(data));