Give your AI assistant access to your email
Search, browse, and read your Gmail from Claude, Cursor, Windsurf, VS Code, and any MCP-compatible client.
What You Can Do
Search Emails
Ask natural language questions across all your Gmail accounts. AI-powered semantic search with relevance ranking.
Browse Inbox
Filter by label, date, importance, or specific accounts. Paginated results with read status and attachments.
Read Threads
Get complete email conversations with all replies, full content, and attachment details.
Prerequisites
- An EmailZap account with at least one connected Gmail
- For Claude (Connector): no API key needed โ OAuth handles it
- For other clients: an MCP API key from emailzap.co/mcp-server
Setup
Choose your AI client below for setup instructions.
- Open claude.ai
- Go to Customize โ Connectors โ Add custom connector
- Enter Name: "EmailZap" and URL: https://mcp.app.emailzap.co/mcp
- Click Add โ you'll be redirected to sign in with Google
- Authorize EmailZap to access your Gmail
- Done โ ask Claude to search your emails
Tools Reference
Three read-only tools for searching, browsing, and reading your emails.
AI-powered semantic search across all connected email accounts. Returns an AI-generated answer and matching emails.
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | Natural language search query |
Browse your unified inbox with filtering and pagination. Returns threads from all connected accounts.
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | No | Page number (default: 1) |
| page_size | integer | No | Emails per page (default: 10, max: 50) |
| label | string | No | Gmail label (e.g. INBOX, STARRED, IMPORTANT) |
| show_important_only | boolean | No | Show only important emails |
| from_date | string | No | Filter from date (ISO 8601) |
| to_date | string | No | Filter to date (ISO 8601) |
| account_emails | list | No | Filter to specific connected accounts |
Retrieve all messages in an email thread including replies, with full content and attachments info.
| Parameter | Type | Required | Description |
|---|---|---|---|
| thread_id | string | Yes | Thread ID from a search or list result |
Working Examples
Real examples showing prompts and JSON responses from the API.
Response Limits
Tool responses are automatically managed to stay within AI model context limits.
Responses exceeding 80,000 characters (~20,000 tokens) are automatically truncated to stay within the 25,000 token-per-tool-result limit. When this happens, the item array is trimmed to fit and metadata flags are added:
- _truncated โ present and set to
truewhen the response was trimmed - _total_results, _total_messages, or _total_related_emails โ how many items existed before trimming
- Compare the array length to the total to see how many were dropped
- The AI can request more data by using a smaller
page_size, paginating withpage=2, or using more specific queries
Error Handling
All tools return structured JSON. Errors include a code and human-readable message.
| Error Code | Meaning | What to do |
|---|---|---|
| MISSING_API_KEY | No authentication provided | Connect via Claude connector or add API key |
| UNAUTHORIZED | Invalid, expired, or revoked key | Generate a new key at emailzap.co/mcp-server |
| BAD_REQUEST | Invalid request parameters | Check parameters (e.g. invalid account email) |
| TIMEOUT | Search took too long (120s limit) | Try a more specific search query |
| CONNECTION_ERROR | Could not reach EmailZap | Check internet; service may be temporarily down |
| SERVER_ERROR | Unexpected error | Try again; if persistent, contact support |
Security & Privacy
Read-only access
Tools can only read emails. No sending, deleting, or modifying.
API keys are hashed
SHA-256 hashing. Raw key shown only once at creation.
Revocable anytime
Instantly revoke keys from the MCP setup page.
No data stored
MCP server is stateless. Email data lives on the backend only.
HTTPS only
All communication encrypted via TLS.
OAuth 2.0 + PKCE
Claude connector uses secure authorization code flow with PKCE.
Frequently Asked Questions
ยฉ 2026 EmailZap