Skip to main content

IP Geolocation API & MCP

Look up an IP address’s approximate location, autonomous system, organization, and privacy signals through a REST API or MCP tools. Give a compatible AI assistant network context for investigations and alert enrichment.

IP geolocation MCP: look up an address from your AI client

Ask a connected MCP client to call ip_geolocation for approximate geographic and organization data, then network_asn for network ownership and routing context. Supply the IP address explicitly when investigating a remote system.

  1. Create an EdgeDNS account and API key. In a compatible client, add the HTTP MCP server https://mcp.edgedns.dev/mcp.
  2. Set its Authorization header to Bearer YOUR_API_KEY. The server exposes the tools included in your plan; MCP calls share your REST request quota.
  3. Ask your client to run a lookup. For example: Use ip_geolocation for 8.8.8.8, then network_asn for the same address. Summarize the country, available city, organization, and source. Explain missing values and keep location estimates distinct from a person’s physical location.

ip_geolocation and network_asn are available on Free and count toward its request limits. Geographic fields can be unavailable, and arbitrary-IP lookups depend on the configured data source and its quota. IP geolocation is approximate; VPNs, relays, and hosting infrastructure can represent an egress location. Privacy classifications are investigation signals, not proof that an address is malicious.

ip_geolocation

Minimum plan: free. Example tools/call parameters after connecting:

json
{
  "name": "ip_geolocation",
  "arguments": {
    "ip": "8.8.8.8"
  }
}
IP Geolocation API reference

network_asn

Minimum plan: free. Example tools/call parameters after connecting:

json
{
  "name": "network_asn",
  "arguments": {
    "ip": "8.8.8.8"
  }
}
ASN Lookup API reference

What you can do

Checks and workflows available with IP Geolocation

Geographic Location

Look up available country, region, city, coordinates, timezone, and postal code for an IPv4 or IPv6 address. Coverage depends on the data source; geographic values are estimates and may be null.

Privacy & Anonymization Signals

Flag Tor exit nodes, hosting / datacenter ASNs, iCloud Private Relay and Cloudflare WARP egress ranges, and known VPN networks — built into the geolocation response so fraud and access-control rules don't need a second API call.

Network Intelligence

Identify ASN ownership, ISP/organization operating the IP range, network type (residential, business, datacenter), and RPKI Route Origin Validation status — the canonical signal for BGP hijack and route-leak detection. Organization name populates for every allocated ASN, not just a curated list.

Reverse DNS & Email Deliverability

PTR lookups with forward-confirmed reverse DNS validation across up to 10 hostnames, plus a one-word deliverability verdict (pass / warn_generic / warn_no_fcrdns / fail_no_ptr) so mail-ops teams skip writing their own scoring logic.

Abuse Contact Lookup

Top-level `abuse_contact` field on every IP WHOIS and IP range response — pulled from `role=abuse` RDAP entities first, then RIPE-style `abuse-mailbox` vCard extensions, so both ARIN and RIPE networks yield a directly-usable abuse email without a second lookup.

Bogon Detection

Identify private, reserved, and invalid IP addresses that should never appear on the public internet.

Simple Integration

Get started in minutes with our RESTful API, or connect via MCP and let your AI call these endpoints directly. Clean documentation, predictable responses, and comprehensive error handling.

  • RESTful JSON API
  • Global edge-delivered responses
  • Comprehensive documentation
  • 99.9% uptime target
  • MCP-compatible — use with Claude, ChatGPT, or Gemini
Geolocate an IP address
const response = await fetch(
  'https://api.edgedns.dev/v1/ip/geolocation?ip=8.8.8.8',
  { headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }
);

const { data } = await response.json();
console.log({
  country: data.country,
  city: data.city,
  asn: data.asn,
  organization: data.organization,
  source: data.source
  // Location and organization fields can be null.
});

Try a Check and Understand the Result

Put IP Geolocation to work — via API or AI

Start free with 200 requests/month. Free includes 5 watches checked daily; Developer includes 50 from 30 minutes; Pro includes 250 from 5 minutes. Endpoint tier restrictions apply. Scheduled checks share your monthly request allowance.

No credit card required

Already have an account? Sign in

IP Geolocation MCP & REST API: Location and ASN | EdgeDNS