# Ip2Whois — how to use (mcp.ai)

Connect your Ip2Whois account and use 2 tools for security and identity straight from your AI agent. Connect with your own API key. IP2WHOIS provides a WHOIS lookup API that returns comprehensive domain information, including creation date, updated date, expiration date, domain age, registrant contact information, and nameservers.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_ip2whois?ms=1787291280000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `ip2whois_domain_lookup`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/ip2whois`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/ip2whois/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/ip2whois/domain/lookup` — Retrieves WHOIS registration data for any domain. Returns registrar info, registration/expiration dates, domain age, nameservers, and contact details (registrant, admin, tech, billing). Use to investi
  - body: { domain: string, format?: string }
- `POST https://api.mcp.ai/api/ip2whois/hosted/domains/lookup` — Tool to retrieve hosted domains for a given IP address. Use this after validating the IP.
  - body: { ip: string, page?: integer, format?: string }

## Example prompts
- "What can I do in Ip2Whois?"
- "Show me a summary of my Ip2Whois account"

## More
- Page: https://mcp.ai/ip2whois
- Agent spec (llms.txt): https://mcp.ai/ip2whois/llms.txt
- Postman collection: https://mcp.ai/ip2whois/postman.json
