get_ip_details
Retrieve comprehensive IP address details including location, ISP, network information, and security context. Use for analyzing user connections, investigating suspicious IPs, or verifying geographic and network specifics.
Instructions
Get detailed information about an IP address including location, ISP, and network details.
This tool provides comprehensive IP address analysis including geographic location, internet service provider information, network details, and security context. Use when you need to understand the user's location, ISP, and network details or those of a given IP address.
Common use cases:
Analyze user's current location and connection details (leave ip parameter blank)
Investigate suspicious IP addresses for security analysis
Determine geographic distribution of website visitors or API users
Look up ISP and hosting provider information for network troubleshooting
Get timezone information for scheduling or time-sensitive operations
Verify if an IP belongs to a VPN, proxy, or hosting provider
Check country-specific compliance requirements (EU, etc.)
Args: ip: The IP address to analyze (IPv4 or IPv6). If None or not provided, analyzes the requesting client's IP address. ctx: The MCP request context.
Returns: IPDetails: Comprehensive IP information including:
Examples: # Get your own IP details my_info = get_ip_details()
Note: Some advanced features (ASN, privacy detection, carrier info) require an IPINFO_API_TOKEN environment variable with a paid API plan. Basic location and ISP info works without authentication.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
ip | No | The IP address to analyze (IPv4 or IPv6). If None or not provided, analyzes the requesting client's IP address. |