Skip to main content
Glama
GeoSphere MCP Server

GeoSphere MCP Server

by Singh-Akesh

🌍 GeoSphere MCP Server

Real-world geo-intelligence for AI agents β€” weather, geocoding, live flights, package tracking, currencies, earthquakes, and space data. Zero API keys required to get started.

Python 3.12+ MCP License: MIT No API Keys Required


What is this?

GeoSphere is a Model Context Protocol (MCP) server that gives AI agents access to 16 real-world tools across 7 categories β€” all backed by free, public APIs with no sign-up or API keys required.

Drop it into Kiro, Claude Code, GitHub Copilot, Cursor, Windsurf, or any MCP-compatible client and your AI gains real-world awareness: "What's the weather in Tokyo?", "Track this UPS package", "What flights are over New York right now?", "Is December 25th a holiday in Germany?"


Related MCP server: broke2built-skills-mcp

Tools (16 total)

πŸ—ΊοΈ Geocoding β€” OpenStreetMap Nominatim

Tool

Description

geocode

Address or place name β†’ latitude & longitude

reverse_geocode

Latitude & longitude β†’ full street address

🌐 IP Location β€” ip-api.com

Tool

Description

get_ip_location

IP address β†’ city, country, timezone, ISP, ASN

🌀️ Weather & Environment β€” Open-Meteo

Tool

Description

get_weather

Current conditions + 7-day forecast for any location

get_weather_history

Historical daily weather, back to 1940

get_air_quality

AQI, PM2.5, PM10, CO, NOβ‚‚, ozone, UV index

β˜€οΈ Solar Data β€” SunriseSunset.io

Tool

Description

get_sunrise_sunset

Sunrise, sunset, golden hour, twilight times for any date & location

🌎 Countries β€” RestCountries

Tool

Description

get_country_info

Population, capital, currencies, languages, borders, flag, calling code

πŸ“… Public Holidays β€” Nager.Date

Tool

Description

get_public_holidays

All public holidays for 200+ countries, any year

is_public_holiday

Check if a specific date is a holiday in a country

πŸ’± Currency β€” Frankfurter (ECB rates)

Tool

Description

convert_currency

Convert between 200+ currencies using official central bank rates

get_exchange_rates

All exchange rates for a base currency (live or historical)

πŸŒ‹ Earthquakes β€” USGS

Tool

Description

get_earthquakes

Recent earthquakes globally or by radius β€” magnitude, depth, tsunami alerts

✈️ Flights β€” OpenSky Network

Tool

Description

track_flights_by_area

Live aircraft in a geographic bounding box

track_flight_by_callsign

Track a specific flight by callsign or ICAO24 code

πŸ“¦ Package Tracking β€” Carrier Detection

Tool

Description

track_package

Detect carrier (USPS/FedEx/UPS/DHL/Amazon) + tracking URLs

identify_carrier

Identify which carrier a tracking number belongs to

πŸ›Έ Space β€” Open Notify

Tool

Description

get_iss_location

Real-time ISS position (+ distance from your location)

get_people_in_space

Everyone currently in space, by spacecraft


Quick Start

Prerequisites: Python 3.12+ and uv (recommended) or pip.

# Clone the repo
git clone https://github.com/yourusername/geosphere-mcp-server.git
cd geosphere-mcp-server

# Install dependencies
uv sync

# Test it works
uv run mcp dev main.py

The MCP Inspector opens at http://localhost:5173 β€” you can call any tool interactively.


Add to Your AI Client

πŸ”· Kiro (VS Code Extension)

Edit .kiro/settings/mcp.json in your workspace, or the global ~/.kiro/settings/mcp.json:

{
  "mcpServers": {
    "geosphere": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/absolute/path/to/geosphere-mcp-server",
        "main.py"
      ]
    }
  }
}

Then use it in Kiro: "What's the air quality in Delhi right now?"


🟣 Claude Code (Anthropic CLI)

claude mcp add geosphere -- uv run --directory /absolute/path/to/geosphere-mcp-server main.py

Or add manually to ~/.claude/claude_desktop_config.json (Claude Desktop):

{
  "mcpServers": {
    "geosphere": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/absolute/path/to/geosphere-mcp-server",
        "main.py"
      ]
    }
  }
}

πŸ”΅ GitHub Copilot (VS Code)

Open VS Code settings (Cmd+,) β†’ search MCP β†’ click Edit in settings.json, then add:

{
  "mcp": {
    "servers": {
      "geosphere": {
        "type": "stdio",
        "command": "uv",
        "args": [
          "run",
          "--directory",
          "/absolute/path/to/geosphere-mcp-server",
          "main.py"
        ]
      }
    }
  }
}

Then open Copilot Chat, switch to Agent mode, and ask: "What's the weather forecast for San Francisco this week?"


🟠 Cursor

Open Cursor Settings β†’ MCP β†’ Add new MCP server:

{
  "mcpServers": {
    "geosphere": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/absolute/path/to/geosphere-mcp-server",
        "main.py"
      ]
    }
  }
}

🟒 Windsurf (Codeium)

Edit ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "geosphere": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/absolute/path/to/geosphere-mcp-server",
        "main.py"
      ]
    }
  }
}

πŸ€– Any MCP-Compatible Client (Generic)

The server speaks stdio transport (standard MCP). Pass these to any client:

Field

Value

Command

uv

Args

["run", "--directory", "/path/to/geosphere-mcp-server", "main.py"]

Transport

stdio


🐍 Use as a Python Library (programmatic)

import asyncio
import httpx

# Example: call the geocode logic directly
async def main():
    async with httpx.AsyncClient() as client:
        resp = await client.get(
            "https://nominatim.openstreetmap.org/search",
            params={"q": "Tokyo, Japan", "format": "json", "limit": 1},
            headers={"User-Agent": "my-app/1.0"},
        )
        print(resp.json())

asyncio.run(main())

Example Prompts

Once connected to your AI client, try these:

What's the weather in Mumbai this week?
Reverse geocode 48.8584, 2.2945
What flights are currently over the UK?
Track package 1Z9999W99999999999
Is January 1st a holiday in Japan?
Convert 500 USD to EUR
Show me earthquakes above magnitude 5 in the last 7 days
What's the air quality in Beijing right now?
Where is the ISS right now?
Who is currently in space?
Tell me about Germany β€” population, capital, currencies, borders
What's my IP location?

API Sources & Limits

Tool Group

API

Rate Limits

Key Required

Geocoding

Nominatim (OSM)

1 req/sec

❌ No

IP Location

ip-api.com

45 req/min

❌ No

Weather / AQI / History

Open-Meteo

10,000/day

❌ No

Sunrise/Sunset

SunriseSunset.io

Generous

❌ No

Countries

RestCountries

Unlimited

❌ No

Public Holidays

Nager.Date

Generous

❌ No

Currency

Frankfurter

Generous

❌ No

Earthquakes

USGS

Unlimited

❌ No

Flights

OpenSky Network

~400 req/day anonymous

❌ No

Package Tracking

Carrier detection + links

Unlimited (no live status)

❌ No

Space

Open Notify

Unlimited

❌ No

Package tracking note: The track_package tool detects the carrier and returns direct official tracking links. Live programmatic status requires a free key from 17track.net (100 free/month).

Flight tracking note: OpenSky anonymous access works best from residential/office IPs. Datacenter IPs may be blocked.


Project Structure

geosphere-mcp-server/
β”œβ”€β”€ main.py                    # Entry point
β”œβ”€β”€ pyproject.toml             # Package metadata & dependencies
β”œβ”€β”€ README.md
β”œβ”€β”€ LICENSE
└── geosphere/
    β”œβ”€β”€ __init__.py
    β”œβ”€β”€ server.py              # FastMCP server wiring
    └── tools/
        β”œβ”€β”€ __init__.py
        β”œβ”€β”€ geocoding.py       # geocode, reverse_geocode
        β”œβ”€β”€ ip_location.py     # get_ip_location
        β”œβ”€β”€ weather.py         # get_weather, get_weather_history, get_air_quality
        β”œβ”€β”€ sun.py             # get_sunrise_sunset
        β”œβ”€β”€ country.py         # get_country_info
        β”œβ”€β”€ holidays.py        # get_public_holidays, is_public_holiday
        β”œβ”€β”€ currency.py        # convert_currency, get_exchange_rates
        β”œβ”€β”€ earthquakes.py     # get_earthquakes
        β”œβ”€β”€ flights.py         # track_flights_by_area, track_flight_by_callsign
        β”œβ”€β”€ packages.py        # track_package, identify_carrier
        └── space.py           # get_iss_location, get_people_in_space

Tech Stack

Component

Technology

Language

Python 3.12+

MCP SDK

mcp[cli] 2.3.0 β€” official Anthropic SDK

HTTP Client

httpx β€” async, production-grade

Validation

pydantic β€” runtime type safety

Package Manager

uv β€” fast, modern Python tooling

Transport

stdio (MCP standard)


Contributing

Pull requests are welcome. To add a new tool:

  1. Create a file in geosphere/tools/your_tool.py

  2. Define a register(mcp: FastMCP) -> None function

  3. Add @mcp.tool() decorated async functions inside it

  4. Import and call your_tool.register(mcp) in geosphere/server.py


License

MIT Β© 2025 β€” see LICENSE


Built with the Model Context Protocol SDK by Anthropic.

Available Tools

19 tools
convert_currencyA
    Convert an amount between currencies using official central bank exchange rates.

    Args:
        amount:        Amount to convert (e.g. 100.0).
        from_currency: Source currency ISO 4217 code (e.g. "USD", "EUR", "GBP", "JPY").
        to_currency:   Target currency ISO 4217 code (e.g. "INR", "CAD", "AUD").
        date:          "latest" for today's rate (default), or a date in YYYY-MM-DD format
                       for a historical rate (data goes back to 1999).

    Returns:
        Converted amount, exchange rate used, and the date the rate was recorded.
    

Inputs: amount (required), to_currency (required), from_currency (required), date.

geocodeA
    Convert a place name or address into geographic coordinates (latitude & longitude).

    Args:
        location: Any address, city, landmark, or place name (e.g. "Eiffel Tower, Paris",
                  "1600 Pennsylvania Ave NW, Washington DC", "Tokyo, Japan").

    Returns:
        Latitude, longitude, display name, bounding box, and place type.
    

Inputs: location (required).

get_air_qualityA
    Get current air quality index and pollutant concentrations for any location on Earth.

    Args:
        latitude:  Decimal degrees latitude.
        longitude: Decimal degrees longitude.

    Returns:
        European AQI, US AQI, PM2.5, PM10, CO, NOβ‚‚, SOβ‚‚, ozone levels, and dust.
    

Inputs: latitude (required), longitude (required).

get_country_infoA
    Get comprehensive information about a country including population, capital, currencies,
    languages, borders, timezones, and more.

    Args:
        country: Country name (e.g. "Germany", "Japan"), ISO 3166-1 alpha-2 code (e.g. "DE"),
                 or alpha-3 code (e.g. "DEU").

    Returns:
        Official name, capital, population, area, region, languages, currencies, borders,
        timezones, calling code, TLD, flag emoji, and Google Maps link.
    

Inputs: country (required).

get_earthquakesA
    Retrieve recent earthquake events from the USGS global seismic network.

    Args:
        min_magnitude: Minimum Richter magnitude to include (default 4.0).
                       Use 2.5 for local quakes, 6.0 for major events only.
        days_back:     How many days back to search (default 7, max 365).
        latitude:      Optional center latitude for a radius search.
                       If omitted, returns global results.
        longitude:     Optional center longitude for a radius search.
        radius_km:     Search radius in kilometers around the lat/lon point (default 500 km).
                       Only used when latitude and longitude are provided.
        limit:         Maximum number of results to return (default 20, max 100).

    Returns:
        List of earthquakes with magnitude, location, depth, time, and USGS event link.
    

Inputs: limit, latitude, days_back, longitude, +2 more.

get_exchange_ratesA
    Get exchange rates for a base currency against all supported currencies.

    Args:
        base_currency: Base currency ISO 4217 code (e.g. "USD", "EUR"). Defaults to "USD".
        date:          "latest" for today's rates (default), or YYYY-MM-DD for historical rates.

    Returns:
        Exchange rates for the base currency against all available currencies, with the rate date.
    

Inputs: date, base_currency.

get_ip_locationA
    Look up the geographic location, ISP, timezone, and network details of an IP address.

    Args:
        ip_address: IPv4 or IPv6 address to look up (e.g. "8.8.8.8").
                    Leave empty or pass "me" to look up your own public IP address.

    Returns:
        City, region, country, coordinates, timezone, ISP, organization, and ASN.
    

Inputs: ip_address.

get_iss_locationA
    Get the current real-time position of the International Space Station (ISS).

    Args:
        observer_latitude:  Optional. Your latitude to calculate how far the ISS is from you.
        observer_longitude: Optional. Your longitude to calculate how far the ISS is from you.

    Returns:
        Current ISS latitude, longitude, timestamp, and optionally the distance from your location.
        The ISS travels at ~28,000 km/h and completes an orbit every ~92 minutes.
    

Inputs: observer_latitude, observer_longitude.

get_people_in_spaceA
    Get the current list of people aboard the International Space Station and other spacecraft.

    Returns:
        Names of all humans currently in space, their spacecraft, and the total count.
    

Inputs: no named parameters.

get_public_holidaysA
    Get the list of public holidays for any country and year.

    Args:
        country_code: ISO 3166-1 alpha-2 country code (e.g. "US", "DE", "JP", "IN", "GB").
                      Supports 200+ countries.
        year:         4-digit year (e.g. 2025). Defaults to the current year.

    Returns:
        List of public holidays with dates, names, types, and whether they are global
        or region-specific within the country.
    

Inputs: country_code (required), year.

get_sunrise_sunsetA
    Get sunrise, sunset, golden hour, twilight, and solar noon for any location and date.

    Args:
        latitude:  Decimal degrees latitude  (e.g. 40.7128 for New York City).
        longitude: Decimal degrees longitude (e.g. -74.0060 for New York City).
        date:      Date in YYYY-MM-DD format, or "today" (default) or "tomorrow".
        timezone:  IANA timezone name (e.g. "America/New_York", "Asia/Tokyo"). Defaults to "UTC".

    Returns:
        Sunrise, sunset, solar noon, golden hour start/end, civil/nautical/astronomical
        twilight times, and day length.
    

Inputs: latitude (required), longitude (required), date, timezone.

get_weatherA
    Get current weather conditions and a 7-day daily forecast for any location on Earth.

    Args:
        latitude:         Decimal degrees latitude  (use the geocode tool if you only have an address).
        longitude:        Decimal degrees longitude.
        temperature_unit: "celsius" (default) or "fahrenheit".

    Returns:
        Current conditions (temperature, wind, humidity, weather description) plus
        a 7-day daily forecast with high/low temps, precipitation, and sunrise/sunset times.
    

Inputs: latitude (required), longitude (required), temperature_unit.

get_weather_historyA
    Retrieve historical weather data for any location, going back to 1940.

    Args:
        latitude:         Decimal degrees latitude.
        longitude:        Decimal degrees longitude.
        start_date:       Start date in YYYY-MM-DD format (e.g. "2024-01-01").
        end_date:         End date in YYYY-MM-DD format (e.g. "2024-01-07"). Max range: 1 year.
        temperature_unit: "celsius" (default) or "fahrenheit".

    Returns:
        Daily historical weather records including temperature, precipitation, and wind.
    

Inputs: end_date (required), latitude (required), longitude (required), start_date (required), +1 more.

identify_carrierA
    Identify which shipping carrier a tracking number belongs to, based on its format.

    Args:
        tracking_number: Any package tracking number.

    Returns:
        Carrier name, detection confidence, and format description.
    

Inputs: tracking_number (required).

is_public_holidayA
    Check whether a specific date is a public holiday in a given country.

    Args:
        country_code: ISO 3166-1 alpha-2 country code (e.g. "US", "GB", "AU").
        date:         Date to check in YYYY-MM-DD format (e.g. "2025-12-25").

    Returns:
        Whether the date is a public holiday, and if so, the holiday details.
    

Inputs: date (required), country_code (required).

reverse_geocodeA
    Convert geographic coordinates (latitude & longitude) into a human-readable address.

    Args:
        latitude:  Decimal degrees latitude  (e.g. 48.8584 for the Eiffel Tower).
        longitude: Decimal degrees longitude (e.g. 2.2945 for the Eiffel Tower).

    Returns:
        Full address, city, country, postcode, and structured address components.
    

Inputs: latitude (required), longitude (required).

track_flight_by_callsignA
    Look up the current live position of a specific flight by its callsign or ICAO24 hex code.

    Args:
        callsign: Flight callsign (e.g. "UAL123" for United Airlines 123) or
                  ICAO24 transponder hex code (e.g. "a0b1c2").
                  Callsigns are typically the airline IATA/ICAO code + flight number.

    Returns:
        Current position, altitude, speed, heading, and aircraft details if the flight
        is currently tracked. Returns not_found if the aircraft is on the ground or
        not currently visible to ADS-B receivers.
    

Inputs: callsign (required).

track_flights_by_areaA
    Get live positions of all aircraft currently flying within a geographic bounding box.

    Args:
        min_latitude:  Southern boundary of the search area (e.g. 24.0 for continental US).
        max_latitude:  Northern boundary of the search area (e.g. 50.0 for continental US).
        min_longitude: Western boundary of the search area (e.g. -125.0 for continental US).
        max_longitude: Eastern boundary of the search area (e.g. -66.0 for continental US).

    Returns:
        List of aircraft with callsign, position, altitude, speed, heading, and origin country.

    Examples:
        Continental US:    min_lat=24, max_lat=50, min_lon=-125, max_lon=-66
        Western Europe:    min_lat=36, max_lat=60, min_lon=-10,  max_lon=20
        United Kingdom:    min_lat=49, max_lat=61, min_lon=-8,   max_lon=2
        India:             min_lat=8,  max_lat=37, min_lon=68,   max_lon=97
    

Inputs: max_latitude (required), min_latitude (required), max_longitude (required), min_longitude (required).

track_packageA
    Identify the shipping carrier from a tracking number and return direct tracking links
    for USPS, FedEx, UPS, DHL, Amazon, and 3500+ other carriers.

    Args:
        tracking_number: Package tracking number from any major carrier
                         (e.g. "1Z9999W99999999999" for UPS, "9400111899223397056868" for USPS,
                          "449044304137821" for FedEx, "1234567890" for DHL).

    Returns:
        Detected carrier, confidence level, direct carrier tracking URL, and
        universal aggregator links that work for any carrier worldwide.

    Note:
        This tool detects the carrier and returns tracking URLs that you can open in a browser.
        For programmatic real-time status, sign up for a free API key at https://api.17track.net
        (free tier: 100 tracking numbers/month).
    

Inputs: tracking_number (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 19 tools

    Disambiguation4/5

    Most tools target a distinct resource: geocode/reverse_geocode, get_weather/get_weather_history, and track_flights_by_area/track_flight_by_callsign are cleanly separated by input shape and result. Two pairs blur slightly: get_public_holidays vs is_public_holiday, and track_package vs identify_carrier (track_package already returns carrier detection plus links, making identify_carrier a strict subset). Descriptions do enough to steer an agent away from misselection.

    Naming Consistency4/5

    Nearly every tool follows a clear verb_noun snake_case pattern (get_weather, get_earthquakes, track_flight_by_callsign, convert_currency, is_public_holiday). The only deviations are the bare-verb 'geocode' and 'reverse_geocode', which are idiomatic for the domain and still obviously paired. No mixed casing or chaotic verb styles.

    Tool Count3/5

    At 19 tools this sits in the heavy band for a single server, and the surface stretches beyond geography into currency conversion, package tracking, and space objects. Individual tools are non-trivial and earn their place, but the volume plus domain sprawl makes the set feel broader than one coherent scope.

    Completeness4/5

    Coverage is broad: bidirectional geocoding, IP geolocation, current and historical weather, air quality, solar data, country info, holidays, exchange rates, earthquakes, live flight tracking, and ISS tracking, with no obvious dead ends. Gaps are minor and workaroundable, e.g. no point-to-point distance/elevation tool and no explicit timezone conversion despite timezone fields appearing in results.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Provides 29 live data skills for AI agents, including email/DNS/domain intelligence, SEO & security audits, content extraction, and EVM on-chain reads, with a free tier that works out of the box.
      29
      23 npm
      1
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Provides 63 production-ready API tools for AI agents, including web scraping, AI generation, crypto data, OCR, image generation, audio transcription, text-to-speech, email, and domain lookup.
      3
      -