---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/ip-geolocation/use-cases/geolocate-visitors/claude
---
# How to Geolocate Website Visitors with Claude

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.

## Setup

claude mcp add toolrouter -- npx -y toolrouter-mcp

## Steps

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

## Example Prompt

```
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
