whereami-mcp
by kukapay
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
WhereAmI MCP Server
A lightweight mcp server that tells you exactly where you are based on your current IP, powered by ipapi.co.
Features
- Dynamic Resources: Fetch specific data (e.g., IP, country, city) via
location://{type}
. - Detailed Tool: Generate a comprehensive location report with
get_location()
. - Natural Language Prompt: Ask "Where am I?" to get detailed results.
- Robust Error Handling: Gracefully manages API and network issues.
- Minimal Dependencies: Requires only
mcp
andhttpx
.
Installation
Prerequisites
- Python 3.10+
pip
Setup
- Clone the repository:Copy
- Install dependencies:Copy
- (Optional) Install as an MCP service:Copy
Usage
Running the Server
- Direct execution:Copy
- Development mode:Copy
Components
Resource: location://{type}
Returns a specific location detail based on {type}
.
- Supported Types:
ip
,country
,country_code
,region
,city
,latitude
,longitude
,timezone
,isp
,asn
- Examples:
@location://ip
→"8.8.8.8"
@location://city
→"Mountain View"
@location://country
→"United States"
Tool: get_location()
Generates a detailed Markdown table of geolocation data.
- Fields:
- IP
- Country
- Country Code
- Region
- City
- Latitude
- Longitude
- Timezone
- ISP
- ASN
- Sample Output:Copy
Prompt: where_am_i_prompt
Predefined query: "Please tell me where I am based on my current IP address." Triggers get_location()
.
Examples in Claude Desktop
- Install the server:Copy
- Query data:
- "My IP is
@location://ip
" - "I’m in
@location://city
,@location://country
"
- "My IP is
- Get full report:
- "Where am I?"
get_location()
License
MIT License. See LICENSE for details.
This server cannot be installed
A lightweight mcp server that tells you exactly where you are.