原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

MCP Ip2location Io

作者:ip2location版本 1.1.1i★ –i在你的电脑上运行
注册名称io.github.ip2location/mcp-ip2location-io

安装

概览

作者提供的说明(英文原文)

IP Geolocation MCP server that query the geolocation information using IP2Location.io API.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:IP2LOCATION_API_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: IP2LOCATION_API_KEY

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "ip2location-io": {
      "command": "uvx",
      "args": [
        "mcp-ip2location-io"
      ],
      "env": {
        "IP2LOCATION_API_KEY": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add ip2location-io --env IP2LOCATION_API_KEY=your-value -- uvx mcp-ip2location-io

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "ip2location-io": {
      "command": "uvx",
      "args": [
        "mcp-ip2location-io"
      ],
      "env": {
        "IP2LOCATION_API_KEY": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "ip2location-io": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-ip2location-io"
      ],
      "env": {
        "IP2LOCATION_API_KEY": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • IP2LOCATION_API_KEY 机密 必填 env
    Your IP2Location.io API key for detailed geolocation information.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 ip2location 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32684 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32684 个服务器的 10% 更新
  • 基础检查结果等于或优于此分类中其他 32684 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

MCP Ip2location Io 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:IP2LOCATION_API_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.1.1)于5个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Master CSS

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

Master CSS

作者:master-co

Inspect Master CSS classes, generated CSS, and project stylesheets from your AI client.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

IP2Location.io MCP server

IP2Location.io MCP Server is a Model Context Protocol (MCP) server that enables MCP-compatible AI clients to perform IP address geolocation and network intelligence lookups using the IP2Location.io API.

Give it an IPv4 or IPv6 address and the MCP server can retrieve information such as geographic location, ASN, ISP, domain, network type, and proxy information, depending on your IP2Location.io API plan.

This makes it useful for IP investigation, network troubleshooting, traffic analysis, localization, security analysis, and enriching IP addresses found in logs or other datasets.

Features

  • Comprehensive Geolocation Data: Retrieve country, region, city, ZIP/postal code, latitude, longitude, time zone, and other location information.
  • ASN Lookup: Identify the Autonomous System Number (ASN) and Autonomous System (AS) associated with an IP address.
  • Network Intelligence: Retrieve information such as ISP, domain, connection speed, usage type, and other network attributes depending on your plan.
  • Proxy and Security Information: Detect proxy-related information and, on supported plans, additional VPN, Tor, data center, threat, and fraud information.
  • IPv4 and IPv6 Support: Query both IPv4 and IPv6 addresses.
  • Bulk IP Lookup: Send multiple IP addresses in one prompt and automatically use the IP2Location.io Bulk API when available.
  • MCP Integration: Use IP intelligence directly from MCP-compatible AI applications.
  • Asynchronous Requests: Uses httpx for asynchronous API requests.

[!NOTE]

The fields returned by IP2Location.io depend on your API subscription plan.

Requirements

There are two ways to use this MCP server.

Cloud-hosted MCP server

Recommended when you want to connect directly to the hosted IP2Location.io MCP server.

You can connect in either of two ways:

  • Direct HTTP connection: Your MCP client supports remote (streamable HTTP) MCP servers. No extra software is required.
  • Via `npx`: Your MCP client only supports local (stdio) servers. This uses the mcp-remote package to bridge to the hosted server.

You need:

  • An MCP-compatible client such as Claude Desktop
  • An IP2Location.io API key
  • Node.js / npx (only for the npx connection method)
Local MCP server

Use this option when you want to run the MCP server locally.

You need:

  • Python 3.13 or later
  • uv
  • An MCP-compatible client such as Claude Desktop
  • An IP2Location.io API key

You can sign up for a free IP2Location.io API key. The Free plan provides up to 50,000 IP Geolocation API queries per month.

The underlying IP2Location.io REST API also supports limited keyless access of up to 1,000 queries per day. For this MCP server, configuring an API key is recommended and is used in the setup examples below.

Setup

You can use this MCP server in Claude Desktop in either of the following ways:

  • Cloud-hosted MCP server: Recommended if you want to connect directly to the hosted IP2Location.io MCP server.
  • Local MCP server: Use this if you want to download and run the original MCP server on your own machine.

Option 1: Cloud-hosted MCP server

Follow these steps to connect Claude Desktop to the hosted IP2Location.io MCP server.

  1. Make sure you have installed Claude Desktop. If you have not installed it yet, download it from here for Windows and macOS, or follow this guide for Linux users.
  2. Open the claude_desktop_config.json file in your choice of editor. If you do not have one yet, follow this guide to create one.
  3. Add one of the configurations below, depending on how you want to connect.
Method A: Direct HTTP connection

Use this if your MCP client supports remote servers over HTTP. No Node.js or npx is needed.

{

"mcpServers": { "ip2location": { "type": "http", "url": "https://mcp.ip2location.io/", "headers": { "X-API-Key": "YOUR_API_KEY" } } } }

If your client is configured from the command line, such as Claude Code, you can add the server with:

claude mcp add --transport http ip2location https://mcp.ip2location.io/ --header "X-API-Key: YOUR_API_KEY"
Method B: Connection through npx

Use this if your MCP client only supports local (stdio) servers. The mcp-remote package runs locally and forwards requests to the hosted server.

{

"mcpServers": { "ip2location": { "command": "npx", "args": [ "-y", "mcp-remote@latest", "https://mcp.ip2location.io/", "--header", "X-API-Key:YOUR_API_KEY" ] } } }

  1. Replace YOUR_API_KEY with your actual IP2Location.io API key. To get your API key, log in to your dashboard.
  2. Restart Claude Desktop after saving the changes, and you should see the MCP server appear in the Connectors menu.

Option 2: Local MCP server

Follow these steps if you prefer to run the MCP server locally.

  1. Set up the uv package manager. You can refer to the guide to do so.
  2. Make sure you have installed Claude Desktop. If you have not installed it yet, download it from here for Windows and macOS, or follow this guide for Linux users.
  3. Open the claude_desktop_config.json file in your choice of editor. If you do not have one yet, follow this guide to create one.
  4. Add the following to your claude_desktop_config.json:
{

"mcpServers": { "ip2locationio": { "command": "uvx", "args": [ "mcp-ip2location-io" ], "env": { "IP2LOCATION_API_KEY": " " } } } }

  1. To get your API key, log in to your dashboard. Replace in the example above with your actual API key.
  2. Restart Claude Desktop after saving the changes, and you should see it appear in the Connectors menu.

Framework Integration

The MCP server can also be used from Python agent frameworks. The examples below connect to the hosted server over HTTP. To use the local server instead, connect with the stdio command uvx and the argument mcp-ip2location-io, and pass IP2LOCATION_API_KEY as an environment variable.

Each example reads the API key from the IP2LOCATION_API_KEY environment variable, so the key never appears in your source code.

LangChain

LangChain includes MCP support in the langchain.mcp namespace, which requires LangChain 1.4 or later.

pip install "langchain[mcp]" langchain-anthropic
import asyncio

import os

from fastmcp.client.transports import StreamableHttpTransport from langchain.agents import create_agent from langchain.mcp import MCPAdapter

async def main(): transport = StreamableHttpTransport( "https://mcp.ip2location.io/", headers={"X-API-Key": os.environ["IP2LOCATION_API_KEY"]}, )

async with MCPAdapter(transport) as adapter: tools = await adapter.list_tools()

agent = create_agent("anthropic:claude-sonnet-5", tools) result = await agent.ainvoke({"messages": "Where is 8.8.8.8 located?"}) print(result"messages".content)

if name == "main": asyncio.run(main())

MCPAdapter accepts the server URL directly, but the StreamableHttpTransport object is passed here so the X-API-Key header can be set.

LlamaIndex

pip install llama-index-tools-mcp llama-index-llms-openai
import asyncio

import os

from llama_index.core.agent.workflow import FunctionAgent from llama_index.llms.openai import OpenAI from llama_index.tools.mcp import BasicMCPClient, McpToolSpec

async def main(): client = BasicMCPClient( "https://mcp.ip2location.io/", headers={"X-API-Key": os.environ["IP2LOCATION_API_KEY"]}, )

tools = await McpToolSpec(client=client).to_tool_list_async()

agent = FunctionAgent( tools=tools, llm=OpenAI(model="gpt-5-mini"), system_prompt="You are a helpful assistant that looks up IP addresses.", )

response = await agent.run("Where is 8.8.8.8 located?") print(response)

if name == "main": asyncio.run(main())

CrewAI

CrewAI reads MCP servers from the mcps field on an agent. This requires the mcp package to be installed alongside CrewAI.

pip install crewai mcp
import os

from crewai import Agent, Crew, Process, Task from crewai.mcp import MCPServerHTTP

ip_agent = Agent( role="IP Intelligence Analyst", goal="Look up geolocation and network information for an IP address.", backstory="An analyst who checks IP addresses against IP2Location.io.", mcps=[ MCPServerHTTP( url="https://mcp.ip2location.io/", headers={"X-API-Key": os.environ["IP2LOCATION_API_KEY"]}, ) ], )

task = Task( description="Find the geolocation of 8.8.8.8 and summarize the result.", expected_output="A short summary of the IP address location and network data.", agent=ip_agent, )

crew = Crew(agents=[ip_agent], tasks=[task], process=Process.sequential) print(crew.kickoff())

On CrewAI versions that do not support the mcps field, install crewai-tools[mcp] and wrap the server with MCPServerAdapter from crewai_tools instead.

Usage

Once the MCP server is connected, ask your MCP client questions about an IPv4 or IPv6 address using natural language. Just enter your query about the IP in a chat in Claude Desktop.

IP geolocation
Where is the location of (IP)?
Where is (IP) located?
What is the latitude and longitude of (IP)?

For instance, below is the result of the IP 8.8.8.8:

In Claude Desktop, the model will automatically generate the output based on the result returned by IP2Location.io MCP server.

Proxy and security lookup

Depending on the IP2Location.io plan being used:

Is this IP address a proxy: 8.8.8.8?
Multiple IP addresses

You can also utilize IP2Location.io Bulk IP Geolocation API to query for multiple IP addresses.

Look up 8.8.8.8 8.8.6.6 9.9.9.9

The MCP server detects multiple IP addresses and sends them to the IP2Location.io Bulk API when possible.

IP addresses can be separated by commas, spaces, or new lines.

[!NOTE]

IP2Location.io Bulk IP Geolocation API access requires an eligible paid plan.

Environment Variable

IP2LOCATION_API_KEY

Your IP2Location.io API key IP2LOCATION_API_KEY.

The Free plan currently provides up to 50,000 IP Geolocation API queries per month and access to basic IP information.

Paid plans provide higher query quotas and additional attributes.

You can sign up for a free API key, or subscribe higher plan for comprehensive geo-ip data.

Do not commit your API key to a public Git repository.

MCP Tool

get_geolocation

Description

  • Fet

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx