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 分