developer-toolsapi_key

IP2Location.io

IP2Location.io provides a fast and accurate IP Geolocation API tool to determine a user's location and use the geolocation information in different use cases.

Verdict

IP2Location.io lets your team query IP addresses and domains for geolocation, WHOIS records, and hosting details without leaving Switchy. @mention it to geolocate up to 1000 IPs in one request, pull domain registration info, or list every site hosted on a server. Security teams use it to triage suspicious traffic. Support teams map user locations for routing decisions. Developers debug CDN configs or verify DNS changes. The MCP requires an API key from IP2Location.io — free tier covers light usage, paid plans unlock higher rate limits and bulk operations.

Common use cases

  • Geolocate suspicious login attempts during incident response
  • Map customer IPs to optimize CDN routing
  • Pull WHOIS records for domains flagged in security scans
  • List all domains hosted on a competitor's server
  • Verify DNS propagation after infrastructure changes

Integration

Vendor
IP2Location.io
Category
developer-tools
Auth
API_KEY
Tools
4
Composio slug
ip2location_io

Tools

  • Bulk IP Geolocation

    Tool to retrieve geolocation information for multiple IP addresses in bulk. Use when processing up to 1000 IPs at once.

  • Domain WHOIS Lookup

    Tool to retrieve WHOIS information for a given domain. Use when you need domain registration and contact details via IP2WHOIS API.

  • Get API Key

    Tool to retrieve the configured API key. Use when authentication is needed for IP2Location.io requests.

  • IP2WHOIS Hosted Domain

    Tool to retrieve hosted domain names by IP address. Use when you need to list domains hosted on a given IP. Call after confirming the IP.

Setup

Setup guide

  1. 11. Sign up at IP2Location.io and generate an API key from your account dashboard. 2. In Switchy, open Settings > Integrations and click 'Add MCP Server'. 3. Search for IP2Location.io and select it. 4. Paste your API key into the authentication field and click 'Connect'. 5. Switchy validates the key and confirms the connection. 6. Open any Space and type '@IP2Location.io' to see available tools. 7. Test the connection by asking '@IP2Location.io what's the geolocation for 8.8.8.8' — you should get city, country, and ISP details within seconds. 8. For bulk queries, paste a list of IPs and ask the MCP to geolocate all of them at once. 9. Check your IP2Location.io dashboard to monitor API usage and upgrade if you hit rate limits.

What teammates see: by default, memories from IP2Location.io 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

Not enough Spaces yet to publish anonymised usage stats (we require ≥ 50 Spaces per week).

Starter prompts

Bulk Geolocate Traffic

@IP2Location.io here are 50 IPs from today's failed login attempts: [paste list]. Geolocate them all and flag any from countries we don't operate in.
Open in a Space →

Domain Registration Lookup

@IP2Location.io pull the WHOIS record for example-competitor.com and summarize the registrant, registration date, and nameservers.
Open in a Space →

Find Hosted Domains

@IP2Location.io show me every domain hosted on IP 203.0.113.42 and highlight any that look like typosquatting attempts.
Open in a Space →

CDN Origin Check

@IP2Location.io geolocate the origin IP 198.51.100.10 and tell me if it matches our expected US-East datacenter location.
Open in a Space →

Security Triage Report

@IP2Location.io these three IPs triggered rate-limit alerts: [paste list]. Geolocate them, pull WHOIS for any associated domains, and summarize risk indicators.
Open in a Space →

Example outputs

Illustrative - representative of the model's voice and quality, not literal recordings.

Prompt

@IP2Location.io check geolocation for these IPs: 8.8.8.8, 1.1.1.1, 104.16.132.229 and summarize which countries they're in

Output

Retrieved geolocation data for 3 IP addresses. 8.8.8.8 resolves to Mountain View, California, United States (Google LLC). 1.1.1.1 maps to Sydney, New South Wales, Australia (Cloudflare). 104.16.132.229 is San Francisco, California, United States (Cloudflare). All three IPs belong to major CDN/DNS providers with US or Australian presence. This illustrative example shows typical bulk lookup output; actual response includes latitude/longitude, ISP details, and timezone data.

Notes

Bulk lookups handle up to 1000 IPs per request, making this efficient for batch analysis. Requires a valid API key with sufficient quota. Free-tier accounts may have daily lookup limits; check your plan before running large batches. Geolocation accuracy varies by IP type—datacenter IPs are precise, residential IPs approximate city-level.

Prompt

@IP2Location.io run a WHOIS lookup on stripe.com and tell me when the domain expires

Output

WHOIS lookup for stripe.com shows registration through MarkMonitor Inc. Domain created on 1995-09-12, last updated 2023-08-11, expires 2024-09-11. Registrant organization is listed as Stripe, Inc. with privacy-protected contact details. Name servers point to Cloudflare (ns-cloud-*.googledomains.com). This illustrative example reflects typical WHOIS structure; actual output includes full registrar contact info and DNS records.

Notes

WHOIS lookups query the IP2WHOIS API, a separate service from IP geolocation. Some domains use privacy protection, masking registrant details. Rate limits apply per API key tier. WHOIS data freshness depends on registry update cycles—expect 24-48 hour lag for recent changes. Useful for security audits and domain research.

Prompt

@IP2Location.io find all domains hosted on 151.101.1.140 and flag any that look like they might be phishing our brand

Output

Retrieved 47 hosted domains for IP 151.101.1.140 (Fastly CDN). Domains include legitimate sites like example-cdn-customer.com, assets.trustedsite.net, and static.knownbrand.io. No obvious phishing domains detected in this sample—most are established brands using Fastly for content delivery. This illustrative example shows how hosted domain lookup works; actual results depend on the IP's hosting configuration and may include hundreds of domains on shared infrastructure.

Notes

Hosted domain lookup reveals all domains pointing to a given IP, useful for threat intelligence and brand monitoring. Shared hosting IPs (especially CDNs) return large domain lists—manual review or keyword filtering required. The MCP returns raw domain lists; phishing detection requires additional AI analysis of domain names. API key must have IP2WHOIS access enabled.

Use-case deep-dives

Security incident triage for SaaS teams

When IP2Location wins for fast threat context in Slack

A 6-person security team at a B2B SaaS company gets 20-30 suspicious login alerts per day in their Slack channel. They need to decide which ones warrant deeper investigation before the shift ends. IP2Location's bulk geolocation tool lets them paste 15 IPs from the last hour and get country, ISP, and proxy flags in one call. This works when the decision is binary: known-safe region versus flag-for-review. The trade-off: if your threat model requires ASN-level routing data or you're correlating more than 1000 IPs per incident, you'll hit the bulk limit and need a dedicated threat-intel feed. For small teams doing first-pass triage on moderate alert volume, this MCP closes the loop without leaving the chat.

Affiliate fraud detection at launch scale

Why this MCP fits early-stage referral program audits

A 3-person growth team at a pre-seed startup launches a referral program and sees 400 signups in the first week. They suspect 30-40 are bot farms because the email domains look generated. The Domain WHOIS and hosted-domain tools let them check if a suspicious domain was registered yesterday and shares an IP with 200 other throwaway sites. This scenario works when you're auditing dozens of domains per week, not thousands per day. If you're processing referral signups in real time at scale, the per-domain lookup latency will bottleneck your pipeline and you need batch enrichment. For launch-week spot checks and monthly cleanup sweeps, this MCP gives you the forensic detail to kill fake accounts before they cost you payout budget.

Content localization research for product teams

When IP geolocation helps prioritize market expansion

A 5-person product team at a developer-tools company sees organic traffic from 40 countries but only supports English and Spanish docs. They want to know which geographies to localize next based on where their highest-intent users actually sit. The bulk geolocation tool lets them export 500 trial-signup IPs from the last quarter and map them to countries and cities in one pass. This works when your sample size is under 1000 users per analysis and you're making quarterly roadmap calls, not real-time personalization. If you're doing per-session geo-targeting or analyzing 10k+ signups per week, you need a CDN-integrated solution with lower latency. For periodic market research that informs a 6-month localization sprint, this MCP turns raw IP logs into a prioritized country list without spinning up analytics infrastructure.

Frequently asked

What does the IP2Location.io MCP do in Switchy?

It lets your AI agents look up geolocation data for IP addresses, run WHOIS queries on domains, and list domains hosted on a given IP. The MCP wraps IP2Location.io's API so agents can answer questions like "where is this visitor from?" or "who owns this domain?" without leaving the conversation. You still need an IP2Location.io API key.

Do I need a paid IP2Location.io account to use this MCP?

IP2Location.io offers a free tier with 500 queries per day. If your team runs bulk lookups or processes more than that, you'll hit the limit and need a paid plan. The MCP itself just passes your API key through; Switchy doesn't impose extra query caps on top of what IP2Location.io allows.

Can the MCP geolocate visitors in real time from my app logs?

No. The MCP processes IPs you explicitly feed it—up to 1000 at once via the bulk tool. It doesn't hook into your server logs or analytics stream. If you want real-time geolocation, pipe your logs into Switchy via another integration or API, then call this MCP to enrich the IP data.

Why use this MCP instead of calling IP2Location.io's API directly?

The MCP lets your AI agents run IP lookups mid-conversation without writing code. If you're already building scripts or dashboards, the raw API is faster. But if your team asks ad-hoc questions like "which country is 203.0.113.5 in?

Who on the team should connect the IP2Location.io MCP?

Whoever holds the IP2Location.io API key—usually a developer or ops lead. Once connected, any team member in the Switchy workspace can ask agents to run lookups. The key is shared across the workspace, so treat it like you would any other service credential.

Data last verified 607 hours ago.Sources aggregated hourly to weekly. See docs/architecture/model-directory.md.