
Ip2Location
IP2Location.io provides fast and accurate IP geolocation data, including country, city, ISP, latitude, longitude, and more, supporting both IPv4 and IPv6 lookups.
Verdict
Common use cases
- Flag login attempts from unexpected countries
- Route support tickets by visitor region
- Detect VPN and proxy traffic in signups
- Calculate shipping costs by IP distance
- Audit domain ownership and hosting details
Integration
- Vendor
- Ip2Location
- Category
- developer-tools
- Auth
- API_KEY
- Tools
- 8
- Composio slug
ip2location
Tools
- Bulk IP Geolocation
Tool to retrieve geolocation information for multiple IP addresses in bulk. Use when you need batch processing of up to 1000 IPs per request.
- Check IP2Location API Credits
Tool to check remaining IP2Location API credits. Use after setting up authentication to monitor usage.
- IP2Location Distance Calculator
Tool to calculate distance between two IPs. Use when geographic separation between two IP addresses is needed.
- IP2Location Get IP Geolocation
Tool to retrieve geolocation data for an IP address. Use when detailed IP location info is needed.
- IP2Location List IPs
Tool to list a curated set of test IPv4 and IPv6 addresses. Use when sample IPs are needed for IP2Location or IP2Proxy lookups during development or testing.
- IP2Proxy: Get Proxy Detection
Tool to detect if an IP is a proxy, VPN, or TOR exit node. Use when verifying anonymizing services.
- IP2WHOIS Domain WHOIS Lookup
Tool to retrieve WHOIS information for a domain. Use when you need domain registration details.
- IP2WHOIS Hosted Domains Lookup
Tool to retrieve hosted domains for a given IP address. Use when you need to list domains hosted on an IP.
Setup
Setup guide
- 11. Open your Switchy workspace and navigate to Settings > Integrations > Developer Tools. 2. Click 'Connect' next to IP2Location. 3. Sign up for an IP2Location account at ip2location.io if you don't have one, then generate an API key from your dashboard. 4. Paste the API key into Switchy's connection form and click 'Authorize'. 5. Return to any Space and type '@IP2Location check credits' to confirm the connection works and see your remaining balance. 6. To test geolocation, try '@IP2Location look up 8.8.8.8' — you should see city, country, ISP, and coordinates. 7. For batch lookups, provide a comma-separated list of up to 1000 IPs in a single prompt. 8. Monitor your credit balance regularly; each lookup consumes credits based on your IP2Location plan tier.
What teammates see: by default, memories from Ip2Location are scoped to the Space (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.
Works well with
Top models
Compatibility data appears once enough Spaces have used this MCP together with a given model.
How Switchy teams use it
Starter prompts
Geolocate Visitor IP
@IP2Location look up the geolocation for 203.0.113.45 and tell me the city, country, ISP, and latitude/longitude.Open in a Space →
Detect Proxy or VPN
@IP2Location check if 198.51.100.22 is a proxy, VPN, or TOR exit node and summarize the threat level.Open in a Space →
Batch Geolocate IPs
@IP2Location retrieve geolocation for these IPs in bulk: 8.8.8.8, 1.1.1.1, 203.0.113.10, 198.51.100.5. Show country and city for each.Open in a Space →
Calculate IP Distance
@IP2Location calculate the distance in kilometers between 8.8.8.8 and 1.1.1.1 and explain what that means for network latency.Open in a Space →
Domain WHOIS Lookup
@IP2Location run a WHOIS lookup for example.com and summarize the registrar, creation date, and expiration date.Open in a Space →
Example outputs
Illustrative - representative of the model's voice and quality, not literal recordings.
@Ip2Location check the geolocation for these IPs from our server logs: 8.8.8.8, 1.1.1.1, and 104.16.132.229
Here's the geolocation data for those three IPs: • 8.8.8.8: Mountain View, California, US (37.4056, -122.0775) — ISP: Google LLC • 1.1.1.1: Sydney, New South Wales, AU (-33.8591, 151.2002) — ISP: Cloudflare • 104.16.132.229: San Francisco, California, US (37.7621, -122.3971) — ISP: Cloudflare All three are major infrastructure providers. The bulk lookup processed these in a single API call, consuming 3 credits from your account balance.
Bulk IP Geolocation is the fastest way to process multiple addresses — up to 1000 IPs per request. Each IP consumes one API credit. Accuracy varies by IP type: datacenter IPs return city-level precision, while residential IPs may be less granular depending on the database subscription tier.
@Ip2Location is 185.220.101.34 coming through a VPN or proxy? We're seeing suspicious login attempts from this address.
Yes, 185.220.101.34 is flagged as a TOR exit node. IP2Proxy detection shows: • Proxy Type: TOR • Country: Germany • Threat Level: High • ISP: Hetzner Online GmbH This IP is part of the TOR anonymization network, commonly used to mask true origin. The threat classification reflects elevated risk for fraud or abuse scenarios. Consider blocking or requiring additional authentication steps for requests from this address.
IP2Proxy detection identifies anonymizing services (VPNs, proxies, TOR) that mask a user's true location. This is critical for fraud prevention, but note that legitimate privacy-conscious users also rely on these tools. Each proxy check consumes one API credit. Results depend on your IP2Proxy database subscription level.
@Ip2Location calculate the distance between our CDN edge at 13.107.42.14 and the user IP 203.0.113.45, then summarize whether we should route through a closer node.
The distance between these IPs is approximately 12,847 km (7,982 miles): • 13.107.42.14: Redmond, Washington, US (Microsoft Azure) • 203.0.113.45: Sydney, New South Wales, AU Given this 12,800+ km separation, routing through a closer edge node would significantly reduce latency. If you have a Sydney or Singapore presence, that would cut the distance by ~80%. The current path likely adds 150-200ms round-trip time compared to a regional node.
Distance calculation uses straight-line geographic distance between geolocated IPs — useful for CDN routing decisions and latency estimation. The AI can interpret this data in context (like suggesting closer nodes), but actual network latency depends on peering, routing policies, and congestion. Each distance calculation consumes two API credits (one per IP).
Use-case deep-dives
When IP2Location catches proxy abuse before payment
A 6-person e-commerce team sees chargebacks cluster around VPN traffic. They wire IP2Proxy into their checkout flow to flag anonymizing IPs before the payment gateway runs. The proxy detection tool returns a risk score in under 200ms, fast enough to block suspicious orders without adding friction for real customers. The bulk geolocation tool handles batch analysis of historical orders to map fraud patterns by region. This works when your fraud volume justifies the API cost—if you're processing under 500 transactions a day, the credit burn might outpace the chargeback savings. For teams running Stripe or Shopify with a fraud problem, this MCP turns IP intelligence into a pre-authorization gate.
When geolocation steers users to the right regional experience
A 3-person SaaS startup serves customers across EMEA and APAC with different pricing tiers and compliance rules per region. They use the IP geolocation tool to route new signups to the correct regional instance and pre-fill country selectors in onboarding forms. The distance calculator helps their support team verify latency complaints by measuring geographic separation between a user's IP and the nearest data center. This setup assumes your user base is large enough to justify the API overhead—if you're under 1,000 monthly signups, a simpler GeoIP library might be cheaper. For teams with regional infrastructure and compliance boundaries, this MCP automates the routing logic that used to require manual user input.
When WHOIS lookups speed up abuse response
A 5-person DevOps team monitors login attempts from unfamiliar IPs and needs to decide which ones warrant blocking. They use the domain WHOIS lookup to identify the registrant behind suspicious traffic sources, and the hosted domains tool to see if an IP is running known phishing infrastructure. The bulk geolocation tool processes server logs in batches to map attack origins during post-incident reviews. This works when your security posture requires human-in-the-loop decisions—if you're automating blocks at scale, a dedicated threat intel feed is faster. For teams triaging abuse reports or investigating account takeovers, this MCP turns raw IPs into actionable context without leaving the terminal.
Frequently asked
What does the Ip2Location MCP do in Switchy?
It lets your AI assistants look up geographic data for IP addresses, detect proxies and VPNs, and run WHOIS queries on domains. You can check single IPs or batch-process up to 1000 at once. Useful for fraud checks, access logs analysis, or validating user locations without writing API code yourself.
Do I need an Ip2Location account to use this MCP?
Yes. You need an API key from Ip2Location, which means signing up for their service and choosing a plan. The MCP includes a credit-check tool so you can monitor usage inside Switchy. Free tiers exist but have strict rate limits—check Ip2Location's pricing before connecting.
Can it tell me if an IP is using a VPN or proxy?
Yes. The IP2Proxy tool detects VPNs, proxies, and TOR exit nodes. It's separate from basic geolocation lookups, so make sure your Ip2Location plan includes proxy detection—not all tiers do. If you only need city-level location data, you won't need this feature.
Why use this instead of calling Ip2Location's API directly?
You skip writing and maintaining integration code. Your team can ask Claude or another assistant to geolocate IPs in plain English, and the MCP handles authentication and response parsing. If you already have a working API client or need sub-100ms latency, stick with direct calls.
Who on my team should connect the Ip2Location MCP?
Whoever manages your Ip2Location account and has the API key. They'll paste it into Switchy once; after that, anyone in your workspace can use the tools. API usage counts against your Ip2Location plan, not Switchy's limits, so coordinate with your billing owner.