GnistAI GnistAI
Log in

Getting Started with Email Validation

Email address validation — format checking, MX record verification, disposable and role address detection.

All Tutorials   |   Overview   |   Playground   |   MCP   |   REST API   |   Home
Utilities

Data source: Cloudflare DNS, curated lists

Overview

Email Validation wraps Cloudflare DNS, curated lists, handling authentication, pagination, and rate limits for you. This tutorial covers all 3 tools with working code examples you can copy and run.

Prerequisites

  1. Sign up at https://context.gnist.ai/signup for a free API key (100 calls/day).
  2. Choose your integration method: MCP protocol or REST API.

Connect via MCP

Add to your MCP client config (Claude Desktop, Cursor, etc.):

MCP Config
{
  "mcpServers": {
    "gnist-email-validation": {
      "url": "https://context.gnist.ai/mcp/email-validation/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Tools (3)

validate_email

Validate an email address — checks format, MX records, disposable/role detection. Returns whether the format is valid, if the domain has MX records (can receive mail), whether it's a known disposable email provider, and whether it's a role address (e.g. admin@, support@). Args: email: Email address to validate (e.g. "[email protected]").

ParameterTypeRequiredDescription
emailstringrequired
curl -X POST "https://context.gnist.ai/mcp/email-validation/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "validate_email", "arguments": {"email": "[email protected]"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/email-validation/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'email': '[email protected]'},
            'name': 'validate_email'}},
)
print(resp.json())

validate_email_batch

Validate multiple email addresses at once (max 50). Args: emails: Comma-separated email addresses (e.g. "[email protected],[email protected]").

ParameterTypeRequiredDescription
emailsstringrequired
curl -X POST "https://context.gnist.ai/mcp/email-validation/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "validate_email_batch", "arguments": {"emails": "[email protected]"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/email-validation/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'emails': '[email protected]'},
            'name': 'validate_email_batch'}},
)
print(resp.json())

report_feedback

Report a bug, feature request, or general feedback for this data source. Use this when something doesn't work as expected, when you'd like a new feature, or when you have suggestions for improvement. Args: feedback: Describe the issue or suggestion. feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: general)
curl -X POST "https://context.gnist.ai/mcp/email-validation/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "report_feedback", "arguments": {"feedback": "example"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/email-validation/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'feedback': 'example'}, 'name': 'report_feedback'}},
)
print(resp.json())

FAQ

What data does Email Validation provide?

Email address validation — format checking, MX record verification, disposable and role address detection. It exposes 3 tools: validate_email, validate_email_batch, report_feedback.

What do I need to get started?

A Gnist API key (free tier: 100 calls/day). Sign up at https://context.gnist.ai/signup.

What format does the Email Validation API return?

JSON, via either MCP protocol (JSON-RPC 2.0) or REST API.

Next Steps

Related Tutorials