Generates a detailed Markdown table of your current geolocation data including IP, country, region, city, coordinates, timezone, ISP and ASN
WhereAmI is a lightweight service that provides detailed geolocation information based on your current IP address. Powered by ipapi.co, it offers both specific location data points through resources and comprehensive location reports through tools. With WhereAmI, you can easily access information such as your current city, country, coordinates, timezone, and ISP details. The service is designed to be minimal with few dependencies while providing robust error handling for API and network issues.
WhereAmI is a location service that tells you exactly where you are based on your IP address. It provides both granular access to specific location data points and comprehensive location reports.
pip
package managerOption 1: Clone and Run Directly
git clone https://github.com/kukapay/whereami-mcp.git
cd whereami-mcp
pip install mcp httpx
python main.py
Option 2: Install as MCP Service
You can install WhereAmI as an MCP service using:
mcp install whereami_mcp.py --name "WhereAmI"
Option 3: Development Mode
For development purposes, you can run:
mcp dev whereami_mcp.py
Add the following to your MCP client configuration:
"mcpServers": {
"whereami": {
"command": "python",
"args": [
"PATH_TO_REPOSITORY/main.py"
]
}
}
Replace PATH_TO_REPOSITORY
with the actual path to the cloned repository.
You can access specific location data using the location://
resource followed by the data type you want:
@location://ip
- Returns your IP address@location://country
- Returns your country@location://country_code
- Returns your country code@location://region
- Returns your region/state@location://city
- Returns your city@location://latitude
- Returns your latitude@location://longitude
- Returns your longitude@location://timezone
- Returns your timezone@location://isp
- Returns your Internet Service Provider@location://asn
- Returns your Autonomous System NumberYou can use these resources in your prompts:
@location://ip
"@location://city
, @location://country
"@location://timezone
"To get a comprehensive location report, you can:
get_location()
tool directlyThe report will be displayed as a formatted Markdown table containing all available location data.