IP地理位置分析
一个模型上下文协议服务器,它使用ipinfo.io API检索有关IP地址的详细地理信息,帮助确定用户位置和网络详情。
可用工具 (1 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
get_ip_details 1 个参数 需填 1 项
Get information about an IP address. Use this tool to: - Determine the user's geographic location to coarse granularity - Get information about the user's internet service provider - Get information about a specific IP address Args: ip (str | None): The IP address to look up. If None, returns information about the requesting client's IP address. ctx (Context): The MCP request context. Returns: IPDetails: Object containing information about the IP address, including geographic location, network operator, and more. Note: This tool requires an IPInfo API Token specified via the IPINFO_API_TOKEN environment variable for full functionality.
必填参数:ip
服务介绍
IP 地理位置 MCP 服务器
这是一个简单的模型上下文协议服务器,使用ipinfo.io API 来获取关于一个 IP 地址的详细信息。
这可以用来确定用户的大致位置以及他们所使用的网络。

安装
您需要创建一个 token 来使用 IPInfo API。如果您还没有,请在 https://ipinfo.io/signup 注册一个免费账户。
要与 Claude 桌面版一起使用,请将以下内容添加到您的 claude_desktop_config.json 文件中的 mcpServers 部分:
"ipinfo": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/briandconnelly/mcp-server-ipinfo.git",
"mcp-server-ipinfo"
],
"env": {
"IPINFO_API_TOKEN": "<YOUR TOKEN HERE>"
}
}
组件
工具
get_ip_details: 此工具用于获取有关 IP 地址的详细信息。- 输入:
ip: 要获取信息的 IP 地址。 - 输出:
IPDetails: 包含有关 IP 的详细信息(包括位置、组织和国家详情)的 Pydantic 模型。
- 输入:
资源
没有包含自定义资源
提示
没有包含自定义提示
许可证
MIT 许可证 - 详情请参阅 LICENSE 文件。
免责声明
此项目与 IPInfo 无关。