whois-mcp
A Model Context Protocol (MCP) server that provides LLMs with network information lookup tools through WHOIS and RIPE Database queries.
Features
Available Tools
whois_query- Query WHOIS servers for domains, IPs, and ASNsexpand_as_set- Recursively expand AS-SETs into concrete ASN listsvalidate_route_object- Check IRR route/route6 object existencecontact_card- Fetch abuse, admin, and technical contacts
Regional Internet Registry (RIR) Support
This MCP server supports all five Regional Internet Registries (RIRs) with varying tool availability:
Tool | RIPE NCC | ARIN | APNIC | AfriNIC | LACNIC |
WHOIS Query | ✅ | ✅ | ✅ | ✅ | ✅ |
AS-SET Expansion | ✅ | ✅ | ➖ | ➖ | ➖ |
Route Validation | ✅ | ✅ | ➖ | ➖ | ➖ |
Contact Card | ✅ | ✅ | ✅ | ✅ | ✅ |
Legend:
✅ Fully supported via REST/RDAP APIs
➖ Not available (no public API; use
{rir}_whois_queryand parse output instead)
RIR Coverage:
RIPE NCC : Europe, Middle East, Central Asia
ARIN : North America
APNIC : Asia-Pacific
AfriNIC : Africa
LACNIC : Latin America & Caribbean
Usage
This MCP server supports two transport modes:
Stdio mode (recommended for Claude Desktop and Claude Code CLI)
HTTP server mode (for web-based clients and remote access)
With Claude Desktop
Add to your Claude Desktop configuration file:
Location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Configuration:
With Claude Code CLI
Add the MCP server using the CLI:
HTTP Server Mode
For web-based MCP clients or remote access:
Start the server:
The server will be available at http://127.0.0.1:8000/mcp by default.
Add to Claude Code (HTTP):
Add to Claude Desktop (HTTP):
Tool Usage Examples
Query Network Information
Expand AS-SETs
Validate Route Objects
Get Contact Information
Configuration
Environment variables (optional):
RIR Support Control
Each RIR can be individually enabled or disabled using environment variables. All RIR endpoints are hardcoded for reliability:
RIPE NCC:
whois.ripe.net,https://rest.db.ripe.netARIN:
whois.arin.net,https://whois.arin.net/restAPNIC:
whois.apnic.net,https://rdap.apnic.netAfriNIC:
whois.afrinic.net,https://rdap.afrinic.net/rdapLACNIC:
whois.lacnic.net,https://rdap.lacnic.net/rdap
Set any SUPPORT_{RIR}=false to disable specific RIRs. Tools are prefixed with the RIR name (e.g., ripe_whois_query, arin_whois_query, apnic_contact_card).
Development
Local Setup
License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be installed