FernTool

FernTool IP API & MCP server

Free, no-key API. CORS enabled (*). Please keep it under ~1 request/second.

Endpoints

GET /ip
Your IP, plain text
GET /json
Your IP + ISP, ASN, location, timezone
GET /api/ip/{ip}
Validate any IPv4/IPv6 + country, ASN, network, plus a plain one-line answer (normal ISP / datacenter / VPN / Tor / private) (IP Geolocation by DB-IP, CC BY 4.0; IPtoASN)
POST /api/batch
Look up to 100 IPs: {"ips":["8.8.8.8","1.1.1.1"]}
GET /api/whois/{q}
RDAP WHOIS for a domain, IP or ASN, plus a plain answer (taken or available, age, expiry date, new-domain and expiring warnings)
GET /api/dns/{domain}?type=A,MX
DNS records via Cloudflare DoH (A, AAAA, MX, TXT, NS, CNAME, SOA)
GET /api/reverse-dns/{ip}
PTR hostname + forward confirmation, plus a plain one-line answer (checks out / doesn’t / no name, and what that means for email)
GET /api/dns-propagation/{domain}?type=A
Has a DNS change spread? The domain’s own name server vs 8 public resolvers, with remaining cache times (web version)
GET /api/email-security/{domain}?selector=
Can someone fake email from this domain? SPF (with the 10-lookup count), DMARC policy and DKIM keys, plain-language verdict and the exact records to add (web version)
GET /api/spf-record?services=microsoft365,mailchimp&domain=
Build one valid SPF record from a list of email senders (27 known services, plus ip= and include=), reading the domain’s current record first, with a live 10-DNS-lookup count (web version)
GET /api/is-it-down?url=…
Is a website up? DNS check plus one HTTP load (10 s timeout) from the Cloudflare data centre handling the request: status code, response time, verdict and reason (web version). Results are cached 30 s.
GET /api/redirects?url=…
Where does a link go? Every redirect hop, final URL and title, scam warning signs (new domain, look-alike name, IP address, no HTTPS) and a tracking-free copy of the final URL (web version)
GET /api/website-legit?url=…
Is this website legit? Scam warning signs: domain age, look-alike brand names, redirects, HTTPS, email (web version)
POST /api/email-headers
Email header analyzer: JSON {"headers":"..."}; who really sent it, SPF/DKIM/DMARC, Reply-To tricks, hops and sending IP (web version)
GET /api/subnet?mask=
Subnet mask ↔ CIDR: a mask, /prefix, wildcard or device count (e.g. 50 hosts) → prefix, mask, wildcard, usable hosts
GET /api/subnet?big=48&small=64
How many fit? Count of /small subnets inside a /big (add v=4 for IPv4, e.g. 256 × /24 in a /16)
GET /api/subnet?cidr=2001:db8:abcd:1200::/56&plan=Home,Guest
IPv6 network plan: one /64 per named network, with a router address each
GET /api/subnet?cidr=2001:db8:abcd:1200::/56&n=10
Which /64 is network number 10? (counted from 0, plus the VLAN-style /64)
GET /api/subnet?mac=00:1a:2b:3c:4d:5e&prefix=2001:db8:abcd:12::/64
IPv6 address from a MAC (EUI-64: interface ID, fe80:: link-local, full address), or the MAC inside an EUI-64 IPv6 address
GET /api/subnet?cidr=…&split=
IPv4/IPv6 subnet calculator; optional split=64 lists the smaller subnets (IPv6 web version)
GET /openapi.json
OpenAPI 3.1 spec
POST /mcp
MCP server (streamable HTTP)

Time and dates

GET /api/timestamp?value=…&tz=…
Current time (no value) or convert a Unix timestamp (seconds, ms, µs, ns auto-detected) or a date to UTC, ISO 8601 and any IANA time zone
GET /api/date-calc?start=…&end=…
Days, weeks, months and weekdays between two dates (include_end=true to count the last day)
GET /api/date-calc?start=…&add_days=…
Add or subtract add_days, add_weeks, add_months, add_years; business_days=true skips weekends
GET /api/timezone?time=…&from=…&to=a,b
Convert a time between zones, abbreviations (SAST, EST) or cities, daylight saving applied

Random

GET /api/random?min=1&max=49&count=6&unique=true
Cryptographically secure random integers (no modulo bias)
GET /api/pick?items=Ann,Ben,Cara&count=1
Pick random winners from a list (comma or newline separated, up to 10,000). mode=shuffle returns the whole list in random order; mode=teams&teams=3 splits it into even teams; dedupe=true removes duplicates. POST JSON {"items":[…]} for long lists.

QR codes

GET /api/qr?text=…
Static QR code as SVG (embed it in an <img>). Options: ecc=L|M|Q|H, fg/bg hex colours, margin=0-10, format=json. Max 2000 characters.

Examples

curl https://www.ferntool.com
curl "https://www.ferntool.com/api/qr?text=https://example.com" -o qr.svg
curl "https://www.ferntool.com/api/timestamp?value=1760000000&tz=Africa/Johannesburg"
curl "https://www.ferntool.com/api/date-calc?start=2026-10-18&end=2026-12-25"
curl "https://www.ferntool.com/api/pick?items=Ann,Ben,Cara,Dev&count=2"
curl https://www.ferntool.com/json
curl https://www.ferntool.com/api/ip/8.8.8.8
curl https://www.ferntool.com/api/whois/example.com
curl "https://www.ferntool.com/api/dns/example.com?type=A,MX"
curl https://www.ferntool.com/api/reverse-dns/1.1.1.1
curl "https://www.ferntool.com/api/subnet?cidr=192.168.1.0/24"
curl "https://www.ferntool.com/api/cgnat?wan=100.64.12.5"   # am I behind CGNAT?
curl "https://www.ferntool.com/api/router-ip?ip=192.168.1.105"   # which IP is my router?
curl -X POST https://www.ferntool.com/api/batch -H 'Content-Type: application/json' -d '{"ips":["8.8.8.8","185.220.101.1"]}'
curl -4 https://www.ferntool.com   # force IPv4
curl -6 https://www.ferntool.com   # force IPv6

MCP for AI agents

Add FernTool to any MCP client (Claude, Cursor, etc.) as a remote server: https://www.ferntool.com/mcp. Tools: get_my_ip, lookup_ip, batch_lookup_ip, validate_ip, whois_lookup, dns_lookup, reverse_dns, check_dns_propagation, subnet_calc, subnet_mask_convert, subnet_how_many_fit, check_cgnat, find_router_ip, ipv6_plan_networks, estimate_ai_cost, ai_service_status, make_qr_code, count_words, get_current_time, convert_timestamp, date_calc, convert_timezone, random_number, pick_random.

Lookups include flags (is_tor, is_datacenter, provider) and timezone. Please stay under ~40 network lookups per minute.

{"mcpServers":{"ferntool":{"url":"https://www.ferntool.com/mcp"}}}