Spamhaus Technology and abuse.ch Logo
Deteqtive Logo
Get in touch
Back to Previous Page

MCP for Agents

Give your AI agents DNS history

Posted on
July 08, 2026
Author
The Deteqtive Team
Read time
4 mins

Introduction

Introduction

Deteqtive's MCP server lets AI agents search passive DNS history directly. Using the Model Context Protocol (MCP), an agent can look up a domain or IP address, follow the results to related infrastructure, and keep going, with nothing for you to build or maintain in between.

The server is hosted by Spamhaus, so there's nothing to install or run. Point an MCP client at it, sign in with your Spamhaus account, and your agent can start investigating.

At a glance

Item Detail
Address https://mcp.deteqtive.com/pdns/
Connection Streamable HTTP (remote MCP server)
Sign-in Spamhaus single sign-on, in your browser (OAuth)
Tools dns_rrset, dns_rdata, dns_status
Works with Claude Code, Claude Desktop and other clients that support remote MCP servers with OAuth

Sign-in

There's no API key to copy and paste. The first time your client connects, it opens your browser so you can sign in with your Spamhaus account and approve access. The client then holds a short-lived sign-in token and renews it on its own. The server checks that token on every request.

This is the same Spamhaus single sign-on, with multi-factor authentication, that you use for the Deteqtive interface.

What your agent can do

The server gives your agent three tools, drawing on the same Passive DNS API as the Deteqtive interface and API.

Tool What it does
dns_rrset Forward search: the IP addresses and other records a domain has used, including every host under a domain.
dns_rdata Reverse search: the domains that have pointed to an IP address, an IP range or a host name.
dns_status Account status: your current usage and limits.

Questions your agent can answer

  • Map a footprint: "Which hosts exist under example.com?"
  • Protect a brand: "Find domains containing our brand name that we don't own."
  • Catch lookalikes: "Find domains spelled almost the same as example.com."
  • Pivot in reverse: "Which other domains have pointed to 192.0.2.20, or anywhere in that range?"

Each answer is the starting point for the next question, so an agent can work from one suspicious domain to the infrastructure behind it.

Connect

You connect a client once. After the first browser sign-in, it stays signed in.

Claude Code

Add the server:

claude mcp add --transport http deteqtive https://mcp.deteqtive.com/pdns/

The name (deteqtive here) is your choice. Then run /mcp in Claude Code to sign in: your browser opens to Spamhaus single sign-on. Check the connection at any time with claude mcp list.

Claude Desktop

  1. Go to Settings, then Connectors, then Add custom connector.
  2. Name it Deteqtive and set the address to https://mcp.deteqtive.com/pdns/.
  3. Save, then select Connect. Your browser opens to Spamhaus single sign-on; sign in and approve.

The three Deteqtive tools then appear in your chats.

Other MCP clients

Any client that supports remote MCP servers with OAuth sign-in can connect. Add the server address in your client's MCP settings. The client opens the Spamhaus sign-in the first time it connects. Most clients use a JSON entry like this:

{
  "mcpServers": {
    "deteqtive": {
      "type": "http",
      "url": "https://mcp.deteqtive.com/pdns/"
    }
  }
}

If your client only supports local MCP servers, use a bridge such as mcp-remote, which handles the browser sign-in and connects to the hosted server for you. For example:

{
  "mcpServers": {
    "deteqtive": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.deteqtive.com/pdns/"]
    }
  }
}

Good to know

  • Searches count as normal usage. Searches your agent makes through MCP count toward your account's usage in the same way as searches in the interface or the API. There's no separate charge for using the MCP server.
  • Ask your agent to check status. If searches start to fail, dns_status shows your current usage and limits, which usually explains why.
  • Be specific. Agents get better results when you name the domain, IP address or range, and say whether you want forward or reverse results.

Troubleshooting

What you see What to do
The browser sign-in doesn't open Check that your client supports remote MCP servers with OAuth sign-in. If it only supports local servers, use a bridge such as mcp-remote.
Searches start failing Ask your agent to run dns_status. You may have reached a limit, or need to sign in again.
The tools don't appear in your client Check the server address, then reconnect and complete the sign-in.

Want to access
the platform?

Interested in purchasing a product
0

Spamhaus is committed to protecting and respecting your privacy. We’ll only use your personal information to respond to your enquiry, manage any accounts you may set-up, and to provide the products and services you request from us. From time to time, we would like to contact you about our products and services, as well as other security related content that may be of interest to you. If you consent to us contacting you for this purpose, please tick the box below.

You can unsubscribe from these communications at any time. For more information on how to unsubscribe, our privacy practices, and how we are committed to protecting and respecting your privacy, please review our Privacy Notice.

By clicking submit below, you consent to allow Spamhaus to store and process the personal information submitted above to provide you the content requested.

I agree to receive other communications from Spamhaus.