Metadata-Version: 2.4
Name: ipjudge
Version: 0.1.0
Summary: Check whether an IP is residential, datacenter or proxy, and whether ChatGPT / Claude / Gemini / Muse support its region.
Author-email: IP Judge <hi@ipjudge.org>
License-Expression: MIT
Project-URL: Homepage, https://ipjudge.org
Project-URL: Documentation, https://ipjudge.org/tools/api/
Project-URL: Repository, https://github.com/ipjudge/ipjudge
Keywords: ip,residential-ip,datacenter,chatgpt,claude,gemini,muse,network
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet
Classifier: Topic :: System :: Networking
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# ipjudge

Check whether an IP is **residential, datacenter or proxy**, and whether
**ChatGPT / Claude / Gemini / Meta Muse** officially support its region — from the terminal.

```bash
pip install ipjudge
ipjudge 8.8.8.8
```

```
8.8.8.8  机房 IP  score 75 (B)  美国
  Muse     bad  地区已开放，但机房 IP 注册 Muse 常被拒（进等候名单）
  Claude   warn 地区可用；机房 IP 能用，但更容易被要求验证、触发风控
  ChatGPT  warn 地区可用；机房 IP 能用，但更容易被要求验证、触发风控
  Gemini   warn 地区可用；机房 IP 能用，但更容易被要求验证、触发风控
  Gemini API good 地区在 Google 公布的 Gemini API / AI Studio 可用名单里（这份名单和网页版分开）
  detail: https://ipjudge.org/ip/8.8.8.8
```

## What it answers

- Is this IP **residential / ISP / mobile / datacenter / proxy**?
- Is it **native** to its country or announced elsewhere (broadcast)?
- Would **ChatGPT, Claude, Gemini or Muse** accept it — by official region list and IP type?
- A **purity score (0–100)** with the deductions listed.

Useful when you are about to sign up for an AI account, run an agent, or debug why
"the site opens but the account gets flagged".

## How it works

It calls the free public API at <https://ipjudge.org/api/ip/{ip}> — **no key required**,
no data stored about you. Same data source as the website. JSON only, one argument.

For bulk use, a key raises the quota: <https://ipjudge.org/tools/api/>

## MCP

If you are wiring this into an AI agent instead of a shell, the same checks are exposed as
an MCP server: `https://ipjudge.org/mcp` (Streamable HTTP, no auth for light use).

```bash
claude mcp add --transport http ipjudge https://ipjudge.org/mcp
```

## Limits

- Rate limited per visitor (40 new lookups / 10 min without a key).
- Judgements follow each platform's **officially published** region lists; they are not a
  guarantee that an account will or will not be flagged.
- Not affiliated with OpenAI, Anthropic, Google or Meta.

## License

MIT
