Official IPGeolocation.io MCP server: 17 tools for accurate IP geolocation, company information, ASN and network data, IP security (VPN, proxy, Tor, bot, hosting and spam detection), abuse contacts, time zones, astronomy, currency data and user-agent parsing.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add ipgeolocation-io --env IPGEOLOCATION_API_KEY='<IPGEOLOCATION_API_KEY>' -- npx -y ipgeolocation-io-mcp~/.codex/config.toml
[mcp_servers.ipgeolocation-io]
command = "npx"
args = ["-y", "ipgeolocation-io-mcp"]
env = { IPGEOLOCATION_API_KEY = "<IPGEOLOCATION_API_KEY>" }
# codex mcp add ipgeolocation-io --env IPGEOLOCATION_API_KEY='<IPGEOLOCATION_API_KEY>' -- npx -y ipgeolocation-io-mcp~/.cursor/mcp.json
{
"mcpServers": {
"ipgeolocation-io": {
"command": "npx",
"args": [
"-y",
"ipgeolocation-io-mcp"
],
"env": {
"IPGEOLOCATION_API_KEY": "<IPGEOLOCATION_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"ipgeolocation-io": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ipgeolocation-io-mcp"
],
"env": {
"IPGEOLOCATION_API_KEY": "<IPGEOLOCATION_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"ipgeolocation-io": {
"command": "npx",
"args": [
"-y",
"ipgeolocation-io-mcp"
],
"env": {
"IPGEOLOCATION_API_KEY": "<IPGEOLOCATION_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"ipgeolocation-io": {
"command": "npx",
"args": [
"-y",
"ipgeolocation-io-mcp"
],
"env": {
"IPGEOLOCATION_API_KEY": "<IPGEOLOCATION_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"ipgeolocation-io": {
"command": "npx",
"args": [
"-y",
"ipgeolocation-io-mcp"
],
"env": {
"IPGEOLOCATION_API_KEY": "<IPGEOLOCATION_API_KEY>"
}
}
}
}需要的环境变量
IPGEOLOCATION_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。