free-ip-geolocation

free-ip-geolocation

3.4

The Free IP Geolocation MCP server provides geolocation services for IP addresses with multi-language support.

The Free IP Geolocation MCP server offers a straightforward and efficient service to determine the geographical location of IP addresses. This server provides a range of functions that can be utilized to gather information about the location, city, country, and more for any given IP address. Additionally, it includes multi-language support, allowing users to obtain country names in various languages.

Features

  • {'name': 'Multi-language Support', 'description': "Retrieve a country's name in a specified language based on an IP address. Supported languages include English, German, French, Japanese, and Simplified Chinese."}
  • {'name': 'Any IP', 'description': 'Fetch detailed location information for any IP address, including location, city, country, latitude, longitude, and more.'}
  • {'name': 'Local IP', 'description': 'Obtain geolocation details for your local IP address, ideal for quickly gathering location data about your current network endpoint.'}

Usage with Different Platforms

python

python
import requests

api_key = 'your_api_key'
ip_address = '8.8.8.8'
url = f'https://api.freeipgeolocation.com/{ip_address}?apikey={api_key}'

response = requests.get(url)
location_data = response.json()
print(location_data)

javascript

javascript
const fetch = require('node-fetch');

const apiKey = 'your_api_key';
const ipAddress = '8.8.8.8';
const url = `https://api.freeipgeolocation.com/${ipAddress}?apikey=${apiKey}`;

fetch(url)
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));