# IPLocate — how to use (mcp.ai)

Connect your IPLocate account and use 1 tools for analytics straight from your AI agent. Connect with your own API key. IPLocate provides current geolocation, network, privacy, hosting, company, and abuse intelligence for IP addresses.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_iplocate?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. `iplocate_lookup_ip`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/iplocate`
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/iplocate/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/iplocate/lookup/ip` — Look up current geolocation, network, ASN, privacy, hosting, company, and abuse intelligence for one IPv4 or IPv6 address. Optionally return only selected fields to reduce the response.
  - body: { ip: string, include?: string }

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

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