securitytrails-mcp

v1.0.1
securitytrails-mcp Checked 2 hours ago Published 2 months ago

Unofficial 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.

ParameterTypeDescription
response_formatstring"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.

ParameterTypeDescription
response_formatstring"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.

ParameterTypeDescription
domain *stringapex domain or hostname, e.g. example.com
response_formatstring"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.

ParameterTypeDescription
domain *stringapex domain, e.g. example.com
children_onlybooleanonly direct children (one label deep) rather than the full tree
include_inactivebooleaninclude subdomains with no current DNS resolution
limitintegermaximum hostnames to return (default 100)
offsetintegernumber of hostnames to skip before returning
response_formatstring"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.

ParameterTypeDescription
domain *stringapex domain
pageinteger1-indexed page number; each page costs one API query
response_formatstring"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.

ParameterTypeDescription
domain *stringapex domain or hostname
type *stringDNS record type to retrieve history for
pageinteger1-indexed page number; each page costs one API query
response_formatstring"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.

ParameterTypeDescription
domain *stringapex domain
response_formatstring"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.

ParameterTypeDescription
domain *stringapex domain
response_formatstring"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.

ParameterTypeDescription
domain *stringdomain or subdomain
include_subdomainsbooleanalso return certificates issued for subdomains of this host
pageinteger1-indexed page number; each page costs one API query
response_formatstring"markdown" for a compact human-readable summary, "json" for the full raw API payload
statusstringcertificate 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.

ParameterTypeDescription
domain *stringapex domain or hostname
response_formatstring"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.

ParameterTypeDescription
ip *stringIPv4 address, e.g. 8.8.8.8
response_formatstring"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.

ParameterTypeDescription
ip *stringIPv4 address, e.g. 8.8.8.8
response_formatstring"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.

ParameterTypeDescription
ip *stringIPv4 address
pageinteger1-indexed page number; each page costs one API query
response_formatstring"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.

ParameterTypeDescription
company_domain *stringthe company’s primary domain, e.g. example.com
response_formatstring"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.

ParameterTypeDescription
filterobjectstructured filter object, e.g. {"apex_domain": "example.com"}
include_ipsbooleaninclude resolved IPs for each domain
pageinteger1-indexed page number; each page costs one API query
querystringDSL query string, e.g. "ipv4 = '1.2.3.4'"
response_formatstring"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.

ParameterTypeDescription
filterobjectstructured filter object
pageinteger1-indexed page number; each page costs one API query
querystringDSL query, e.g. "ptr_part = 'example'"
response_formatstring"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.

ParameterTypeDescription
scroll_id *stringscroll id from a previous search response’s meta block
response_formatstring"markdown" for a compact human-readable summary, "json" for the full raw API payload