MCP Integration
Search for IP or hostnames:
This is a public HTTP streaming implementation of the Model Context Protocol (MCP) for https://dns.ninja
Endpoint: https://mcp.dns.ninja/mcp
You can try it out directly on ChatGPT as a GPT
🤖 Setup Instructions
Claude Desktop
Add to your Claude Desktop config file:
{ "mcpServers": { "ninja": { "url": "https://mcp.dns.ninja/mcp" } } }📍 Config file location
- Windows:
%APPDATA%\Claude\config.json - macOS:
~/Library/Application Support/Claude/config.json - Linux:
~/.config/Claude/config.json
Claude Code (Terminal)
Run this command:
claude mcp add --transport http ninja https://mcp.dns.ninja/mcp
ChatGPT (Custom GPT)
Quick setup:
- Go to GPT Builder
- Click Create → Configure → Actions
- Click "Import from URL"
- Enter:
https://mcp.dns.ninja/mcp/openapi.yaml - Click Import and save
Or manually add the endpoint https://mcp.dns.ninja/mcp as an action.
Note: After adding the configuration, restart your Claude application for changes to take effect.
🔧 Available Tools (6)
- rbls: Lookup real time blocklists for IP numbers.
- lookup_dns: Lookup DNS records for a given hostname.
- reverse_lookup_dns_records: Find hostnames that use a specific DNS record value. Query which hostnames point to an IP address, use a particular nameserver, or reference any DNS value. For example: 'which hostnames point to 1.2.3.4?' or 'which hostnames use chris.ns.cloudflare.com as their nameserver?'
- reverse_lookup_mx: Find hostnames that use a specific mail server. For example: which hostnames use aspmx.l.google.com as their mail server?
- reverse_lookup_ns: Find hostnames that use a specific nameserver. For example: which hostnames use chris.ns.cloudflare.com as their nameserver?
- reverse_lookup_ip: Find hostnames that point to a specific IP address (IPv4 or IPv6). Searches both A and AAAA records. For example: which hostnames point to 1.2.3.4?