How to Geolocate Website Visitors with Claude

Look up visitor locations from IP addresses with Claude and ToolRouter. Geographic analytics in seconds.

Tool
IP Geolocation icon
IP Geolocation

Claude turns raw IP addresses into geographic intelligence with analytical depth. Feed it a list of visitor IPs and it will resolve each location, compare geographic distributions across time periods, and build a segmented analytics picture that informs your geo-targeting strategy through targeted follow-up questions.

Connect ToolRouter to Claude

1Go to Settings → Connectors → Add custom connector
2Enter the details below and click Add
Name
ToolRouter
URL
https://api.toolrouter.com/mcp
3Done — works on Claude chat, desktop, and mobile

Steps

Once connected (see setup above), use the IP Geolocation tool:

  1. Ask Claude: "Look up the location of this IP address using ip-geolocation" and provide the IP
  2. Claude returns country, city, ISP, and coordinates
  3. Ask Claude to summarize the geographic distribution of a list of IPs
  4. Use the results to inform your geo-targeting strategy

Example Prompt

Try this with Claude using the IP Geolocation tool
Look up the geographic location of 203.0.113.45. I need the country, city, timezone, and ISP for our analytics dashboard.

Tips

  • Use bulk_lookup for processing large lists of IPs efficiently
  • Combine with web analytics exports to map your traffic geographically
  • IP geolocation is accurate to the city level for most residential IPs