ip-geolocation
3.5
The IP Geolocation MCP Server provides geolocation data for IP addresses, domains, and emails.
The IP Geolocation MCP Server offers a robust solution for identifying the geographical location of IP addresses, domains, and emails. It utilizes a vast database covering 32 million IP blocks across 250 countries, ensuring data for 99.5% of all active IP addresses. The server delivers detailed geolocation information such as latitude, longitude, city, postal code, region, country, ISP, and more, making it an essential tool for businesses and developers seeking to integrate location data into their applications.
Features
- Freemium Model: Offers a free tier with a limit of 10 requests per second.
- Data Richness: Provides a broad spectrum of geolocation data points for IPv4 and IPv6 addresses.
- Compatibility: Easily integrable with major programming languages through a RESTful API.
- Formats: Query results are available in both XML and JSON formats.
MCP Tools
- api_v1: IP Geolocation in XML or JSON, v1
Usage with Different Platforms
python
python
import requests
url = 'https://api.ipgeolocation.io/ipgeo'
params = {
'apiKey': 'YOUR_API_KEY',
'ip': '8.8.8.8',
'outputFormat': 'json'
}
response = requests.get(url, params=params)
print(response.json())
javascript
javascript
const fetch = require('node-fetch');
const url = 'https://api.ipgeolocation.io/ipgeo';
const params = new URLSearchParams({
apiKey: 'YOUR_API_KEY',
ip: '8.8.8.8',
outputFormat: 'json'
});
fetch(`${url}?${params}`)
.then(response => response.json())
.then(data => console.log(data));