API & MCP › Cursor

Free · MCP server & REST API · no signup

Use DNSai in Cursor

Add DNSai to Cursor's MCP config (global or per-project) and the lookup tools load in Agent mode.

✓ Free key works — passed as a header

Works with: Any Cursor plan · one domain per request

Each lookup = one domain or IP. Free: 10 lookups/day per IP (anonymous) or 100 lookups/day per key (free key).

↓ Download this guide (.md) drop it into your repo or paste it into your assistant

Running bulk / multi-domain or enterprise-scale lookups? → DNSai Pro & Enterprise

Set it up

Add the server

Edit ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project). Prefer ${env:DNSAI_MCP_TOKEN} over a literal token so the key isn't committed.

{
  "mcpServers": {
    "dnsai": {
      "url": "https://mcp.dnsai.com/mcp",
      "headers": { "Authorization": "Bearer ${env:DNSAI_MCP_TOKEN}" }
    }
  }
}
Your key. Cursor supports a header, so the free key works directly. Get a free key, set it as DNSAI_MCP_TOKEN, and you're at 100 lookups/day. Omit the headers block to run anonymously (10 lookups/day).

Verify it works

In Cursor Agent, ask:

Use dnsai to look up the MX records for github.com

Every result ends with a plain-English summary, a source link on dnsai.com, and your remaining quota.

Troubleshooting

Sources: Cursor MCP docs

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 →