Looks up IP geolocation (country, region, city and more) via ip-api.com.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add ip-geo -- go run github.com/chenmingyong0423/mcp-ip-geo/cmd/mcp-ip-geo@latest~/.codex/config.toml
[mcp_servers.ip-geo]
command = "go"
args = ["run", "github.com/chenmingyong0423/mcp-ip-geo/cmd/mcp-ip-geo@latest"]
# codex mcp add ip-geo -- go run github.com/chenmingyong0423/mcp-ip-geo/cmd/mcp-ip-geo@latest~/.cursor/mcp.json
{
"mcpServers": {
"ip-geo": {
"command": "go",
"args": [
"run",
"github.com/chenmingyong0423/mcp-ip-geo/cmd/mcp-ip-geo@latest"
]
}
}
}.vscode/mcp.json
{
"servers": {
"ip-geo": {
"type": "stdio",
"command": "go",
"args": [
"run",
"github.com/chenmingyong0423/mcp-ip-geo/cmd/mcp-ip-geo@latest"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"ip-geo": {
"command": "go",
"args": [
"run",
"github.com/chenmingyong0423/mcp-ip-geo/cmd/mcp-ip-geo@latest"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"ip-geo": {
"command": "go",
"args": [
"run",
"github.com/chenmingyong0423/mcp-ip-geo/cmd/mcp-ip-geo@latest"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"ip-geo": {
"command": "go",
"args": [
"run",
"github.com/chenmingyong0423/mcp-ip-geo/cmd/mcp-ip-geo@latest"
]
}
}
}