Skip to main content
Glama

IP Geolocation MCP Server

get_ipinfo_api_token

Verify the IPINFO_API_TOKEN environment variable is set to enable advanced IP geolocation features like ASN data, privacy detection, and carrier details on the IP Geolocation MCP Server.

Instructions

Check if the IPINFO_API_TOKEN environment variable is configured for enhanced IP lookups.

This tool verifies whether the IPInfo API token is properly configured in the environment. The token enables access to premium features like ASN information, privacy detection, carrier details, and enhanced accuracy for IP geolocation analysis.

Common use cases:

  • Verify API token configuration before performing advanced IP analysis
  • Troubleshoot why certain IP lookup features are unavailable
  • Check system configuration for applications requiring premium IP data
  • Validate environment setup during deployment or testing
  • Determine available feature set for IP analysis workflows

Args: ctx: The MCP request context.

Returns: bool: True if IPINFO_API_TOKEN environment variable is set and configured, False if the token is missing or not configured.

Examples: # Check if premium features are available has_token = get_ipinfo_api_token() if has_token: # Safe to use advanced IP analysis features details = get_ip_details("8.8.8.8") # Will include ASN, privacy data else: # Limited to basic IP information only details = get_ip_details("8.8.8.8") # Basic location/ISP only

# Use in conditional workflows if get_ipinfo_api_token(): # Perform advanced IP geolocation analysis pass else: # Fall back to basic analysis or prompt for token configuration pass

Note: The IPInfo API provides basic location and ISP information without authentication, but premium features (ASN details, VPN/proxy detection, carrier information, enhanced accuracy) require a valid API token from https://ipinfo.io/.

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }
Install Server

Other Tools from IP Geolocation MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/briandconnelly/mcp-server-ipinfo'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server