# Ip2Location — MCP server on mcp.ai > Connect your Ip2Location account and use 8 tools for developer tools straight from your AI agent. Connect with your own API key. IP2Location.io provides fast and accurate IP geolocation data, including country, city, ISP, latitude, longitude, and more, supporting both IPv4 and IPv6 lookups. By: mcp.ai · official Page: https://mcp.ai/ip2location ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_ip2location?ms=1787293500000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/ip2location/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/ip2location/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/ip2location/skill.md Postman collection (v2.1): https://mcp.ai/ip2location/postman.json ## Tools - ip2location_bulk_ip_geolocation(ips: string[], fields?: string[], format?: string) — Retrieve geolocation information for multiple IP addresses in a single request. Supports batch processing of 1-1000 IPv4 or IPv6 addresses with flexible output formats (JSON or CSV) and customizable f - ip2location_check_credits(key?: string) — Tool to check remaining IP2Location API credits. Use after setting up authentication to monitor usage. - ip2location_distance(ip1: string, ip2: string) — Calculate the great-circle distance between two IP addresses based on their geographic locations. This tool looks up the geolocation (latitude/longitude) for each IP address and calculates the shortes - ip2location_get_hosted_domains(ip: string, key: string, page?: integer, format?: string) — Retrieves a list of domain names hosted on a specific IP address (IPv4 or IPv6). Use this tool when you need to: - Discover which domains are hosted on a particular IP - Investigate shared hosting env - ip2location_get_ip_geolocation(ip: string, lang?: string, addon?: string[], format?: string, package: string) — Tool to retrieve geolocation data for an IP address. Use when detailed IP location info is needed. - ip2location_get_proxy_detection(ip: string, check?: integer, package?: string) — Tool to detect if an IP is a proxy, VPN, or TOR exit node. Use when verifying anonymizing services. - ip2location_ip2_whois_domain_whois(domain: string, format?: string) — Tool to retrieve WHOIS information for a domain. Use when you need domain registration details. - ip2location_list_ips(type?: string) — 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. ## Example prompts - "What can I do in Ip2Location?" - "Show me a summary of my Ip2Location account" ## Links Docs: https://mcp.ai/docs/mcps/ip2location Website: https://mcp.ai/mcps/ip2location