ipapi.is-mcp
Officialby NikolaiT
README.md
# ipapi.is-mcp
Model Context Protocol (MCP) server and Agent Skill for [ipapi.is](https://ipapi.is/?ref=mcp) — IP intelligence built for SecOps, fraud investigation, and coding agents.
Zero required runtime dependencies. Runs as:
- **Hosted Remote MCP** (`https://mcp.ipapi.is/mcp`, Streamable HTTP + `Authorization: Bearer <key>`)
- **Local stdio MCP** (`npx ipapi.is-mcp`)
- **Air-gapped / Self-Hosted MCP** against your local Business `ipapid` binary (`IPAPI_BASE_URL=http://127.0.0.1:3899`) or local `.mmdb` databases (`IPAPI_MMDB_DIR=/path/to/mmdb`) so zero internal IPs leave your network.
## Recommended Key: Lookup-Only (`ro_*`)
Get a free API key (1,000 lookups/day, commercial use allowed) at [ipapi.is/app/signup](https://ipapi.is/app/signup?ref=mcp), then create a **lookup-only key** (`ro_*`) on [ipapi.is/app/home](https://ipapi.is/app/home). Lookup-only keys work on `api.ipapi.is` against your quota and return `403` on billing, invoices, and database downloads.
## Connect
### Remote Streamable HTTP (Claude, Cursor, VS Code, ChatGPT)
```json
{
"mcpServers": {
"ipapi": {
"url": "https://mcp.ipapi.is/mcp",
"headers": {
"Authorization": "Bearer ro_your_lookup_key"
}
}
}
}
```
### Local stdio (`npx`)
```json
{
"mcpServers": {
"ipapi": {
"command": "npx",
"args": ["-y", "ipapi.is-mcp"],
"env": {
"IPAPI_KEY": "ro_your_lookup_key"
}
}
}
}
```
### Air-gapped / Self-Hosted (Business `.ipdb` or local `.mmdb`)
```json
{
"mcpServers": {
"ipapi": {
"command": "npx",
"args": ["-y", "ipapi.is-mcp"],
"env": {
"IPAPI_BASE_URL": "http://127.0.0.1:3899"
}
}
}
}
```
Or query local `.mmdb` files directly (requires `npm install mmdb-lib`):
```sh
IPAPI_MMDB_DIR=/path/to/ipapi_database/mmdb npx ipapi.is-mcp
```
## Tools
All tools are strictly read-only (billing and destructive account endpoints are intentionally omitted):
| Tool | What it does |
|---|---|
| `lookup_ip` | Enriches an IPv4/IPv6 address with company, org type, ASN, zero-latency PTR `hostname`, geolocation, named VPN, proxy, Tor, datacenter, `egress_service`, crawler, anycast, and abuser feeds. Supports compact summary (default), `toon`, or `json`. |
| `triage_ips` | Accepts an IP list **or raw log text** (SSH, nginx, firewall, SIEM). Extracts/dedupes public IPs, skips private/bogon for free, enriches in 100-IP bulk batches, and groups threats vs false-positive traps. |
| `lookup_asn` | ASN metadata, abuser score, and prefix counts with paginated/capped `prefixes` so large ASNs like `AS15169` never flood context. |
| `lookup_domain` | Resolves A/AAAA records locally and enriches every public IP. |
| `check_risk` | Returns a `block` / `challenge` / `allow` verdict with explicit warnings for mobile CGNAT, Starlink, corporate SWGs (Zscaler/Netskope), iCloud Private Relay, anycast, and known crawlers. |
## Agent Skill
`skills/ipapi-is/SKILL.md` teaches coding and security agents how to use the MCP server, the `npx ipapi.is` CLI, `format=toon`, false-positive avoidance, and app middleware (`ipapi.is` / `ipapi-is`).
## Self-Hosting the Streamable HTTP Server
```sh
ipapi-mcp --http --host 127.0.0.1 --port 3900
```
See `deploy/ipapi-mcp.service` and `deploy/nginx-mcp.ipapi.is.conf` for systemd + nginx deployment.
## License
MIT.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues