通过埃文科技接口查询 IP 地址的国家、地区、城市、经纬度、运营商和归属机构。
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add aiwen-ip-geolocation --env AIWEN_API_KEY='<AIWEN_API_KEY>' -- npx -y aiwen-mcp-server-geoip~/.codex/config.toml
[mcp_servers.aiwen-ip-geolocation]
command = "npx"
args = ["-y", "aiwen-mcp-server-geoip"]
env = { AIWEN_API_KEY = "<AIWEN_API_KEY>" }
# codex mcp add aiwen-ip-geolocation --env AIWEN_API_KEY='<AIWEN_API_KEY>' -- npx -y aiwen-mcp-server-geoip~/.cursor/mcp.json
{
"mcpServers": {
"aiwen-ip-geolocation": {
"command": "npx",
"args": [
"-y",
"aiwen-mcp-server-geoip"
],
"env": {
"AIWEN_API_KEY": "<AIWEN_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"aiwen-ip-geolocation": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"aiwen-mcp-server-geoip"
],
"env": {
"AIWEN_API_KEY": "<AIWEN_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"aiwen-ip-geolocation": {
"command": "npx",
"args": [
"-y",
"aiwen-mcp-server-geoip"
],
"env": {
"AIWEN_API_KEY": "<AIWEN_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"aiwen-ip-geolocation": {
"command": "npx",
"args": [
"-y",
"aiwen-mcp-server-geoip"
],
"env": {
"AIWEN_API_KEY": "<AIWEN_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"aiwen-ip-geolocation": {
"command": "npx",
"args": [
"-y",
"aiwen-mcp-server-geoip"
],
"env": {
"AIWEN_API_KEY": "<AIWEN_API_KEY>"
}
}
}
}Environment variables
AIWEN_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.