IPinfo

io.github.ipinfo由 GitHub 账号 ipinfo 发布v0.2.3更新于 Oct 29, 2026

Official IPinfo MCP Server - IP intelligence tools for AI assistants

已验证Streamable HTTP可网页运行位置与生活安全与监控

概览

AI 生成的概览

IPinfo 官方 MCP 服务器,让助手查询 IP 地址的地理位置、网络归属,以及是否为 VPN、代理、Tor 或住宅代理。

可以做什么
  • 批量查询公网 IPv4/IPv6 地址的完整 IP 数据、地理位置和网络归属(ASN),可用详细模式获取更多字段
  • 检查每个 IP 的隐私特征:VPN、代理、中继、Tor、托管、任播、移动和卫星标记
  • 检测住宅代理,包括代理服务名称和最近出现时间
  • 查询令牌的 API 用量与剩余配额
  • 对大量 IP 分页处理,并返回单个 IP 的错误和无效地址的校验错误
适用场景
适合助手需要解读日志、注册或客服工单中的 IP 地址时使用:访客所在位置、所属网络或公司,或流量是否像 VPN、Tor 或住宅代理。适用于反欺诈、滥用和访问分析,而非通用网页搜索。
运行要求
需要 IPinfo 账号和 API 令牌(IPINFO_TOKEN)来运行本地 PyPI 包(通过 uvx 以 stdio 运行);托管端点 mcp.ipinfo.io 改用 OAuth 登录。部分工具需要付费套餐或住宅代理权限。仅从源码运行时需要 Python 3.14+ 和 uv。
安装前请注意
令牌是会计费的凭据:查询会消耗 API 配额,详细和隐私类工具需要付费套餐。所查询的 IP 地址会发送到 IPinfo 的 API,请勿提交不可外传的地址。结果会缓存在内存中;服务器也可通过 HTTP 运行,此时每个请求携带自己的 bearer 令牌。

安装

在 SourceWeft 中

  1. 打开 控制台中的 IPinfo,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.ipinfo%2Fmcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "ipinfo": {
      "type": "http",
      "url": "https://mcp.ipinfo.io/"
    }
  }
}

README

IPinfo MCP Server

The official IPinfo MCP Server lets AI assistants such as Claude answer questions about IP addresses. Ask where an IP is located, which company or network it belongs to, or whether it's a VPN, proxy, Tor exit node, or residential proxy, and the assistant looks it up with IPinfo data.

It implements the Model Context Protocol (MCP), the open standard AI assistants use to connect to external tools, so it works with any MCP-compatible client. It supports the IPinfo Lite, Core, Plus, and Residential Proxy plans.

For the full guide, see the official documentation.

[OpenSSF Scorecard] [OpenSSF Best Practices]

Installation

You need an IPinfo account. Sign up for free at ipinfo.io/signup.

Hosted server

Point your MCP client at https://mcp.ipinfo.io/ (Streamable HTTP). The first time it connects, it asks you to sign in with your IPinfo account through OAuth.

Local server (PyPI)

The server is published on PyPI as ipinfo-mcp-server and runs over stdio, authenticating with your API token. With uv installed, add it to your MCP client configuration:

json
{  "mcpServers": {    "ipinfo": {      "command": "uvx",      "args": ["ipinfo-mcp-server"],      "env": {        "IPINFO_TOKEN": "<your-ipinfo-token>"      }    }  }}

Claude Desktop extension

Download mcp.mcpb from the latest GitHub release and open it with Claude Desktop. You'll be asked for your API token during installation.

MCP Registry

The server is listed in the MCP Registry as io.github.ipinfo/mcp.

The server is also listed on LightNow.

Tools

ToolDescriptionPlan requirement
ipinfo_lookupFull IP data: geolocation, network, and metadataAny; detailed: true needs Core/Plus
ipinfo_geolocateGeographic locationAny; detailed: true needs Core/Plus
ipinfo_asnAutonomous system (network ownership)Any; detailed: true needs Core/Plus
ipinfo_check_privacyVPN, proxy, relay, Tor, hosting, anycast, mobile, satellite flagsPaid plan
ipinfo_check_residential_proxyResidential proxy detectionResidential Proxy access
ipinfo_quotaAPI usage and remaining quotaAny

Tools that lack access for the token's plan return an ACCESS_DENIED error.

Common parameters

All tools except ipinfo_quota take a list of IPs and are paginated:

ParameterTypeDefaultDescription
ipsstring[]requiredPublic IPv4 or IPv6 addresses. Private, loopback, reserved, multicast, and bogon addresses are rejected and reported in validation_errors.
pageinteger11-based page of the result set. Values below 1 are clamped to 1.
page_sizeinteger25IPs resolved per page, up to 1000. Only IPs on the requested page are fetched, so smaller pages consume less quota per call.

ipinfo_lookup, ipinfo_geolocate, and ipinfo_asn also take:

ParameterTypeDefaultDescription
detailedbooleanfalsefalse queries the Lite endpoint. true queries the full lookup endpoint, which returns more fields.

Common output

IP-based tools return:

FieldDescription
resultsObject keyed by IP with the tool-specific data below.
errorsObject keyed by IP for IPs the API returned an error for. These IPs are left out of results.
validation_errorsObject keyed by input for values that aren't valid public IPs. Only present when there are any.
_paginationtotal_results, page, page_size, total_pages, has_next, has_previous.
_metaapi_calls_made and from_cache. Results are cached in memory, so repeat lookups don't consume API quota.

If the whole request fails (for example a missing or invalid token), the tool returns an error object instead, with code (ACCESS_DENIED, RATE_LIMITED, INVALID_TOKEN, NO_TOKEN, API_ERROR, or UNKNOWN), message, and suggestion.

ipinfo_lookup

Returns the raw IPinfo API response for each IP.

  • detailed: false (Lite): ip, asn, as_name, as_domain, country, country_code, continent, continent_code.
  • detailed: true (full lookup): ip, hostname, geo (city, region, country, continent, coordinates, timezone, postal code), as (ASN, name, domain, type), anonymous (proxy, relay, Tor, VPN), mobile, and the is_anonymous, is_anycast, is_hosting, is_mobile, is_satellite flags. Some fields are only available on Plus.

ipinfo_geolocate

Returns, per IP: ip, country, country_code, continent, continent_code. With detailed: true, also city, region, region_code, latitude, longitude, timezone, postal_code.

ipinfo_asn

Returns, per IP: ip, asn, name, domain. With detailed: true, also type (isp, hosting, business, education) and last_changed.

ipinfo_check_privacy

Returns, per IP: ip, is_anonymous, anonymous (is_proxy, is_relay, is_tor, is_vpn), is_anycast, is_hosting, is_mobile, is_satellite.

ipinfo_check_residential_proxy

Returns, per IP: ip and is_residential_proxy. For residential proxies, also service (proxy service name), last_seen (date), and percent_days_seen.

ipinfo_quota

Takes no parameters. Returns token (omitted when connected with OAuth), requests (day, month, limit, remaining), and per-feature quotas under features.

Configuration

The server is configured through environment variables:

VariableDefaultDescription
IPINFO_TOKENAPI token (stdio transport; over HTTP the token comes from the request)
IPINFO_API_BASE_URLhttps://api.ipinfo.ioBase URL for api.ipinfo.io endpoints
IPINFO_LEGACY_BASE_URLhttps://ipinfo.ioBase URL for legacy ipinfo.io endpoints (e.g. /me)
IPINFO_CACHE_TTL3600Seconds a cached IP result stays fresh
IPINFO_TRANSPORTstdioTransport type (stdio or http)
HOST0.0.0.0HTTP host (only for http transport)
PORT8000HTTP port (only for http transport)
IPINFO_OAUTH_ISSUEROAuth issuer whose access tokens are accepted; OAuth is off when unset
IPINFO_MCP_RESOURCE_URLPublic URL of this server, required with IPINFO_OAUTH_ISSUER
IPINFO_OAUTH_JWKS_URI<issuer>/.well-known/jwks.jsonWhere the issuer publishes its signing keys
IPINFO_OPENAI_APPS_CHALLENGEToken served at /.well-known/openai-apps-challenge for OpenAI's domain verification

With the http transport, each request authenticates with its own Authorization: Bearer <token> header.

Setting IPINFO_OAUTH_ISSUER turns on OAuth for the http transport. The server then advertises the issuer at /.well-known/oauth-protected-resource, answers requests without a valid credential with 401 Unauthorized, and verifies access tokens against the issuer's signing keys. A verified access token is sent to the IPinfo API in place of an API token. API tokens keep working as before.

Feedback

Contributing

Contributions are welcome. See CONTRIBUTING.md for the workflow and the requirements a change has to meet.

Development

Prerequisites

  • Python 3.14+
  • uv

Setup

bash
uv sync --devcp .env.example .env# Add your IPinfo token to .env

Running the server

The server supports two transports: stdio (default) and HTTP.

bash
# stdio (default, used by MCP clients)uv run ipinfo-mcp-server
# HTTPIPINFO_TRANSPORT=http HOST=0.0.0.0 PORT=8000 uv run ipinfo-mcp-server

Tests

bash
# All testsuv run pytest
# Integration tests (requires IPINFO_TOKEN)uv run pytest tests/integration/

Integration tests hit the real IPinfo API and validate response structure only (no exact value assertions). They require IPINFO_TOKEN to be set and are skipped otherwise.

Type checking

bash
uv run pyright

Linting

bash
uv run ruff check .uv run ruff format .

来源:README.md,提交 f4b89e3

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

6
  1. v0.2.3最新Oct 29, 2026
  2. v0.2.1Oct 22, 2026
  3. v0.2.0Oct 21, 2026
  4. v0.1.14Oct 1, 2026
  5. v0.1.13Sep 24, 2026
  6. v0.1.12Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分