Looks up geolocation and network information for an IP address through the IP2Location.io API.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add ip2location-io --env IP2LOCATION_API_KEY='<IP2LOCATION_API_KEY>' -- uvx mcp-ip2location-io~/.codex/config.toml
[mcp_servers.ip2location-io]
command = "uvx"
args = ["mcp-ip2location-io"]
env = { IP2LOCATION_API_KEY = "<IP2LOCATION_API_KEY>" }
# codex mcp add ip2location-io --env IP2LOCATION_API_KEY='<IP2LOCATION_API_KEY>' -- uvx mcp-ip2location-io~/.cursor/mcp.json
{
"mcpServers": {
"ip2location-io": {
"command": "uvx",
"args": [
"mcp-ip2location-io"
],
"env": {
"IP2LOCATION_API_KEY": "<IP2LOCATION_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"ip2location-io": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-ip2location-io"
],
"env": {
"IP2LOCATION_API_KEY": "<IP2LOCATION_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"ip2location-io": {
"command": "uvx",
"args": [
"mcp-ip2location-io"
],
"env": {
"IP2LOCATION_API_KEY": "<IP2LOCATION_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"ip2location-io": {
"command": "uvx",
"args": [
"mcp-ip2location-io"
],
"env": {
"IP2LOCATION_API_KEY": "<IP2LOCATION_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"ip2location-io": {
"command": "uvx",
"args": [
"mcp-ip2location-io"
],
"env": {
"IP2LOCATION_API_KEY": "<IP2LOCATION_API_KEY>"
}
}
}
}远程托管
claude mcp add --transport http ip2location-io https://mcp-ip2location--support-0cin.run.tools~/.codex/config.toml
[mcp_servers.ip2location-io]
url = "https://mcp-ip2location--support-0cin.run.tools"
# codex mcp add ip2location-io --url https://mcp-ip2location--support-0cin.run.tools~/.cursor/mcp.json
{
"mcpServers": {
"ip2location-io": {
"url": "https://mcp-ip2location--support-0cin.run.tools"
}
}
}.vscode/mcp.json
{
"servers": {
"ip2location-io": {
"type": "http",
"url": "https://mcp-ip2location--support-0cin.run.tools"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"ip2location-io": {
"httpUrl": "https://mcp-ip2location--support-0cin.run.tools"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"ip2location-io": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp-ip2location--support-0cin.run.tools"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"ip2location-io": {
"url": "https://mcp-ip2location--support-0cin.run.tools"
}
}
}需要的环境变量
IP2LOCATION_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。