securitytrails-mcp
v1.0.1Unofficial MCP server for the SecurityTrails API — DNS history, subdomain enumeration, WHOIS, SSL certificates and IP intelligence as tools for LLM agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
securitytrails_ping Verify API key
Check that the configured SecurityTrails API key is accepted. Returns only a success flag — use securitytrails_usage for quota figures.
| Parameter | Type | Description |
|---|---|---|
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
securitytrails_usage Check API quota
Report this month’s SecurityTrails API consumption against the plan allowance. Call this before a large enumeration to confirm there is remaining quota.
| Parameter | Type | Description |
|---|---|---|
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
securitytrails_domain_details Domain details
Fetch the current DNS records (A, AAAA, MX, NS, SOA, TXT), hostname counts and registrar metadata for one domain. The best first call when profiling an unfamiliar domain.
| Parameter | Type | Description |
|---|---|---|
domain * | string | apex domain or hostname, e.g. example.com |
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
securitytrails_subdomains Enumerate subdomains
List known subdomains of a domain as fully-qualified hostnames, ready to feed into resolution or scanning. Costs one API query regardless of how many hostnames exist, so prefer a single call with a high `limit` over paging with `offset` — each page is separately billed. The response always reports `total_count` and `has_more` so a truncated result is never mistaken for a complete one.
| Parameter | Type | Description |
|---|---|---|
domain * | string | apex domain, e.g. example.com |
children_only | boolean | only direct children (one label deep) rather than the full tree |
include_inactive | boolean | include subdomains with no current DNS resolution |
limit | integer | maximum hostnames to return (default 100) |
offset | integer | number of hostnames to skip before returning |
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
securitytrails_associated Associated domains
Find other domains associated with this one through shared registrant details or infrastructure. Useful for expanding scope from a single known domain to an organisation’s wider estate.
| Parameter | Type | Description |
|---|---|---|
domain * | string | apex domain |
page | integer | 1-indexed page number; each page costs one API query |
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
securitytrails_dns_history Historical DNS records
Retrieve historical values of one DNS record type for a domain, with the date range each value was observed. The primary tool for spotting infrastructure migrations and origin IPs that predate a CDN.
| Parameter | Type | Description |
|---|---|---|
domain * | string | apex domain or hostname |
type * | string | DNS record type to retrieve history for |
page | integer | 1-indexed page number; each page costs one API query |
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
securitytrails_whois_current Current WHOIS
Fetch the current WHOIS record for a domain: registrar, registrant contacts where not redacted, nameservers, and creation/expiry dates.
| Parameter | Type | Description |
|---|---|---|
domain * | string | apex domain |
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
securitytrails_whois_history Historical WHOIS
Retrieve past WHOIS records for a domain, each with the window it was observed in. Historical records often expose registrant details that have since been redacted behind privacy services.
| Parameter | Type | Description |
|---|---|---|
domain * | string | apex domain |
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
securitytrails_ssl SSL/TLS certificates
List SSL/TLS certificates issued for a hostname. Subject alternative names in the results frequently reveal hostnames that subdomain enumeration alone misses. Pass `status: "all"` to include expired certificates, which are often the more interesting ones historically.
| Parameter | Type | Description |
|---|---|---|
domain * | string | domain or subdomain |
include_subdomains | boolean | also return certificates issued for subdomains of this host |
page | integer | 1-indexed page number; each page costs one API query |
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
status | string | certificate validity filter; use "all" when hunting historical hostnames |
securitytrails_tags Domain tags
Return SecurityTrails’ classification tags for a domain. Many domains carry no tags at all.
| Parameter | Type | Description |
|---|---|---|
domain * | string | apex domain or hostname |
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
securitytrails_ip_neighbors List neighbouring IPs
List IP blocks adjacent to the given IPv4 address, with the number of sites and sample hostnames seen on each. Useful for finding sibling infrastructure in the same allocation.
| Parameter | Type | Description |
|---|---|---|
ip * | string | IPv4 address, e.g. 8.8.8.8 |
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
securitytrails_ip_whois IP WHOIS
Fetch WHOIS and network-block registration data for one IPv4 address — owning organisation, allocation, and abuse contacts.
| Parameter | Type | Description |
|---|---|---|
ip * | string | IPv4 address, e.g. 8.8.8.8 |
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
securitytrails_ip_useragents User agents seen on an IP
List user-agent strings SecurityTrails has observed originating from one IPv4 address, with first and last seen dates. Paginated. Requires a paid SecurityTrails plan — returns a plan error on the free tier.
| Parameter | Type | Description |
|---|---|---|
ip * | string | IPv4 address |
page | integer | 1-indexed page number; each page costs one API query |
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
securitytrails_company_associated_ips Company IP ranges
Look up IP addresses and ranges attributed to the organisation that owns a domain. Takes the company’s primary domain, not a company name. Requires a paid SecurityTrails plan — returns a plan error on the free tier.
| Parameter | Type | Description |
|---|---|---|
company_domain * | string | the company’s primary domain, e.g. example.com |
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
securitytrails_search_domains Search domains
Search the domain dataset by structured filter or DSL query. Valid fields include apex_domain, keyword, tld, mx, ns, cname, ipv4, ipv6 and whois_email — for example {"apex_domain": "example.com"} or "whois_email = 'admin@example.com'". Note that the domain and IP datasets accept different field names: IP-only fields such as ptr_part or open_port_80 are a syntax error here, and belong in securitytrails_search_ips. Exactly one of `filter` or `query` is required. Each page costs one API query.
| Parameter | Type | Description |
|---|---|---|
filter | object | structured filter object, e.g. {"apex_domain": "example.com"} |
include_ips | boolean | include resolved IPs for each domain |
page | integer | 1-indexed page number; each page costs one API query |
query | string | DSL query string, e.g. "ipv4 = '1.2.3.4'" |
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
securitytrails_search_ips Search IPs
Search the IP dataset by DSL query or structured filter — for example "ptr_part = 'example'" or "open_port_80 = true". These IP-dataset fields are distinct from the domain-dataset fields used by securitytrails_search_domains. Exactly one of `query` or `filter` is required. Each page costs one API query.
| Parameter | Type | Description |
|---|---|---|
filter | object | structured filter object |
page | integer | 1-indexed page number; each page costs one API query |
query | string | DSL query, e.g. "ptr_part = 'example'" |
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |
securitytrails_scroll Scroll search results
Fetch the next batch of a large search using a scroll id. Only usable when a previous securitytrails_search_domains or securitytrails_search_ips response included `meta.scroll_id` — scrolling is not enabled on every plan or every query. When no scroll id is offered, page with the `page` argument instead.
| Parameter | Type | Description |
|---|---|---|
scroll_id * | string | scroll id from a previous search response’s meta block |
response_format | string | "markdown" for a compact human-readable summary, "json" for the full raw API payload |