API & MCP › ChatGPT
Use DNSai in ChatGPT
Two paths: a Custom GPT "Action" built from the OpenAPI schema (works on Plus), or a full MCP connector via Developer mode (Business/Enterprise for read-write).
⚠ Custom GPT Action takes a key · the MCP connector is anonymous / OAuthChatGPT Plus and up (GPTs) · one domain per request
↓ Download this guide (.md) drop it into your repo or paste it into your assistant
Set it up
Custom GPT Action (Plus and up) — key works here
Create or edit a GPT → Configure → Actions → Create new action → Import from URL and paste the schema. Set Authentication: None for the free anonymous tier, or API key → Bearer with a dk_free_… key for 100/day (shared across that GPT's users).
https://api.dnsai.com/openapi.json MCP connector (Developer mode)
Settings → Connectors → Advanced → Developer mode ON, then Create and add the URL. Plus/Pro are read-only; full read-write needs Business/Enterprise (admin-enabled). Present-day Bearer support in this UI is unconfirmed — anonymous/OAuth is the documented path.
https://mcp.dnsai.com/mcp OpenAI Codex CLI — key works here
Native remote MCP — no bridge. Add to ~/.codex/config.toml, then export DNSAI_TOKEN="dk_free_xxxxxxxx" and run codex.
[mcp_servers.dnsai]
url = "https://mcp.dnsai.com/mcp"
bearer_token_env_var = "DNSAI_TOKEN" Verify it works
In the GPT, ask:
Check the DMARC policy for nfl.com
Every result ends with a plain-English summary, a source link on dnsai.com, and your remaining quota.
Troubleshooting
- Import-from-URL fails? Some setups block OpenAI's fetcher — download
openapi.jsonand paste it inline instead. The schema is OpenAPI 3.1 with an absoluteservers: https://api.dnsai.com/v1. - Free / Go plans can't create GPTs, and MCP read-write needs Business/Enterprise.
Sources: GPT Action authentication · ChatGPT Developer mode · Codex config reference
Need bulk, multi-domain, or the full API?
Pro unlocks bulk / multi-domain lookups; Enterprise adds large-scale scanning and the full programmatic API.
See plans & pricing →