mailveri-mcp 2.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mailveri_mcp-2.0.0/LICENSE +21 -0
- mailveri_mcp-2.0.0/PKG-INFO +343 -0
- mailveri_mcp-2.0.0/README.md +314 -0
- mailveri_mcp-2.0.0/mailveri_mcp/__init__.py +8 -0
- mailveri_mcp-2.0.0/mailveri_mcp/client.py +339 -0
- mailveri_mcp-2.0.0/mailveri_mcp/server.py +848 -0
- mailveri_mcp-2.0.0/mailveri_mcp.egg-info/PKG-INFO +343 -0
- mailveri_mcp-2.0.0/mailveri_mcp.egg-info/SOURCES.txt +12 -0
- mailveri_mcp-2.0.0/mailveri_mcp.egg-info/dependency_links.txt +1 -0
- mailveri_mcp-2.0.0/mailveri_mcp.egg-info/entry_points.txt +2 -0
- mailveri_mcp-2.0.0/mailveri_mcp.egg-info/requires.txt +6 -0
- mailveri_mcp-2.0.0/mailveri_mcp.egg-info/top_level.txt +1 -0
- mailveri_mcp-2.0.0/pyproject.toml +45 -0
- mailveri_mcp-2.0.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MailVeri
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mailveri-mcp
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: Official Model Context Protocol (MCP) server for MailVeri email verification service
|
|
5
|
+
Author-email: MailVeri Team <support@mailveri.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://mailveri.com
|
|
8
|
+
Project-URL: Documentation, https://mailveri.com/docs/mcp/
|
|
9
|
+
Project-URL: Repository, https://github.com/mailveri/mailveri-mcp
|
|
10
|
+
Keywords: mcp,model-context-protocol,mailveri,email-verification,claude,cursor
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: Communications :: Email
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: mcp<2.0,>=1.30.0
|
|
23
|
+
Requires-Dist: anyio>=4.14.2
|
|
24
|
+
Requires-Dist: httpx>=0.27.0
|
|
25
|
+
Requires-Dist: starlette>=1.7.0
|
|
26
|
+
Requires-Dist: sse-starlette>=3.5.0
|
|
27
|
+
Requires-Dist: uvicorn>=0.31.1
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
|
|
30
|
+
# MailVeri MCP Server 🚀
|
|
31
|
+
|
|
32
|
+
[](https://mailveri.com/docs/mcp/)
|
|
33
|
+
[](https://mailveri.com)
|
|
34
|
+
[](https://registry.smithery.ai/servers/mailveri/mailveri-mcp)
|
|
35
|
+
[](https://glama.ai/mcp/servers/mailveri/mailveri-mcp)
|
|
36
|
+
[](LICENSE)
|
|
37
|
+
|
|
38
|
+
Official [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for [MailVeri](https://mailveri.com) — Fast, accurate, and privacy-friendly email deliverability verification for AI agents and coding assistants.
|
|
39
|
+
|
|
40
|
+
> 📖 **Interactive Documentation**: For advanced client configurations, tool parameters, and error codes, visit our official [MailVeri MCP Documentation](https://mailveri.com/docs/mcp/).
|
|
41
|
+
> 🧠 **Agent Skill (`SKILL.md`)**: Includes [`SKILL.md`](SKILL.md) with pre-send deliverability routing rules (`VALID`, `ROLE_ACCOUNT` for SMBs, `CATCH_ALL`, zero-cost `UNKNOWN`) for Claude Code, Cursor, Hark, OpenClaw, and AgentMail (`agentmail.to`) pipelines.
|
|
42
|
+
> 📰 **Step-by-step Tutorial**: Read our comprehensive guide on [How to Verify Emails Directly in Claude, Cursor & Windsurf](https://mailveri.com/blog/mailveri-mcp-email-verification-ai-agents).
|
|
43
|
+
> ⚡ **Official Registries**: Listed on [Glama.ai](https://glama.ai/mcp/servers/mailveri/mailveri-mcp) and indexed in the [Smithery Registry (`mailveri/mailveri-mcp`)](https://registry.smithery.ai/servers/mailveri/mailveri-mcp).
|
|
44
|
+
|
|
45
|
+
This server enables AI assistants (**Claude Desktop**, **Claude Code**, **Cursor**, **Windsurf**, **Codex**, **Antigravity**, **OpenCode**, **Pi**, **Oh My Pi**, etc.) to verify email deliverability, check mailbox existence, check credit balances, and manage bulk verification batches directly from chat.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Features & Tools
|
|
50
|
+
|
|
51
|
+
| Tool | Safety Hints (`ToolAnnotations`) | Description |
|
|
52
|
+
| :--- | :--- | :--- |
|
|
53
|
+
| `mailveri_verify_email` | `readOnly: false`, `destructive: false` | Verifies a single email address (returns `VALID`, `INVALID`, `DISPOSABLE`, `ROLE_ACCOUNT`, `CATCH_ALL`, `FULL_INBOX`, `UNKNOWN`, plus `credits_used`, `quality_score`, `is_forwarding`, and `balance`). |
|
|
54
|
+
| `mailveri_get_balance` | `readOnly: true`, `idempotent: true` | Retrieves remaining verification credits (plus `daily_limit`, `daily_remaining`, `daily_used` on daily-quota plans). |
|
|
55
|
+
| `mailveri_verify_batch` | `readOnly: false`, `destructive: false` | Queues a list of emails (minimum 2) for background distributed verification. |
|
|
56
|
+
| `mailveri_get_batch_status` | `readOnly: true`, `idempotent: true` | Checks progress percentage, status (`QUEUED`, `PROCESSING`, `DONE`, `CANCELED`, `MERGED`), and download links for a batch job. |
|
|
57
|
+
| `mailveri_download_batch_result` | `readOnly: true`, `idempotent: true` | Gets the download link for completed batch results (full ZIP archive or filtered CSV; CSV `status` defaults to `VALID,ROLE_ACCOUNT` when omitted). |
|
|
58
|
+
| `mailveri_delete_batch` | `destructive: true`, `idempotent: true` | Deletes a finished or canceled verification batch. |
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Quick Start
|
|
63
|
+
|
|
64
|
+
### 1-Click Install via Smithery
|
|
65
|
+
Add to your MCP client in one command:
|
|
66
|
+
```bash
|
|
67
|
+
npx -y smithery mcp add mailveri/mailveri-mcp
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
### 1. Get Your MailVeri API Key
|
|
73
|
+
Sign up or log in to the [MailVeri Dashboard](https://app.mailveri.com) and copy your API Key from **Dashboard → API Keys**:
|
|
74
|
+
👉 **[https://app.mailveri.com/api-keys/](https://app.mailveri.com/api-keys/)**
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
### 2. Configuration for Claude Desktop
|
|
79
|
+
|
|
80
|
+
Add this configuration to your Claude Desktop config file:
|
|
81
|
+
|
|
82
|
+
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
83
|
+
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
84
|
+
|
|
85
|
+
```json
|
|
86
|
+
{
|
|
87
|
+
"mcpServers": {
|
|
88
|
+
"mailveri": {
|
|
89
|
+
"command": "uvx",
|
|
90
|
+
"args": [
|
|
91
|
+
"--from",
|
|
92
|
+
"git+https://github.com/mailveri/mailveri-mcp",
|
|
93
|
+
"mailveri-mcp"
|
|
94
|
+
],
|
|
95
|
+
"env": {
|
|
96
|
+
"MAILVERI_API_KEY": "YOUR_MAILVERI_API_KEY"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
> **Note**: Requires [uv](https://docs.astral.sh/uv/) installed on your system (`curl -LsSf https://astral.sh/uv/install.sh | sh` or `brew install uv`).
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
### 3. Configuration for Claude Code
|
|
108
|
+
|
|
109
|
+
Run with Anthropic's Claude Code CLI:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
claude mcp add mailveri -e MAILVERI_API_KEY=YOUR_MAILVERI_API_KEY -- uvx --from git+https://github.com/mailveri/mailveri-mcp mailveri-mcp
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Or add to `~/.claude.json`:
|
|
116
|
+
|
|
117
|
+
```json
|
|
118
|
+
{
|
|
119
|
+
"mcpServers": {
|
|
120
|
+
"mailveri": {
|
|
121
|
+
"command": "uvx",
|
|
122
|
+
"args": [
|
|
123
|
+
"--from",
|
|
124
|
+
"git+https://github.com/mailveri/mailveri-mcp",
|
|
125
|
+
"mailveri-mcp"
|
|
126
|
+
],
|
|
127
|
+
"env": {
|
|
128
|
+
"MAILVERI_API_KEY": "YOUR_MAILVERI_API_KEY"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
### 4. Configuration for Codex
|
|
138
|
+
|
|
139
|
+
Add to your Codex config (`~/.codex/config.json`):
|
|
140
|
+
|
|
141
|
+
```json
|
|
142
|
+
{
|
|
143
|
+
"mcpServers": {
|
|
144
|
+
"mailveri": {
|
|
145
|
+
"command": "uvx",
|
|
146
|
+
"args": [
|
|
147
|
+
"--from",
|
|
148
|
+
"git+https://github.com/mailveri/mailveri-mcp",
|
|
149
|
+
"mailveri-mcp"
|
|
150
|
+
],
|
|
151
|
+
"env": {
|
|
152
|
+
"MAILVERI_API_KEY": "YOUR_MAILVERI_API_KEY"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
### 5. Configuration for Cursor
|
|
162
|
+
|
|
163
|
+
In Cursor, open **Settings** > **Features** > **MCP Servers** > **Add New MCP Server**:
|
|
164
|
+
|
|
165
|
+
- **Name**: `mailveri`
|
|
166
|
+
- **Type**: `command`
|
|
167
|
+
- **Command**: `uvx --from git+https://github.com/mailveri/mailveri-mcp mailveri-mcp`
|
|
168
|
+
- **Environment Variables**:
|
|
169
|
+
- `MAILVERI_API_KEY`: `YOUR_MAILVERI_API_KEY`
|
|
170
|
+
|
|
171
|
+
Or add to `.cursor/mcp.json`:
|
|
172
|
+
|
|
173
|
+
```json
|
|
174
|
+
{
|
|
175
|
+
"mcpServers": {
|
|
176
|
+
"mailveri": {
|
|
177
|
+
"command": "uvx",
|
|
178
|
+
"args": [
|
|
179
|
+
"--from",
|
|
180
|
+
"git+https://github.com/mailveri/mailveri-mcp",
|
|
181
|
+
"mailveri-mcp"
|
|
182
|
+
],
|
|
183
|
+
"env": {
|
|
184
|
+
"MAILVERI_API_KEY": "YOUR_MAILVERI_API_KEY"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
### 6. Configuration for Windsurf
|
|
194
|
+
|
|
195
|
+
Add to your Windsurf configuration file (`~/.codeium/windsurf/mcp_config.json`):
|
|
196
|
+
|
|
197
|
+
```json
|
|
198
|
+
{
|
|
199
|
+
"mcpServers": {
|
|
200
|
+
"mailveri": {
|
|
201
|
+
"command": "uvx",
|
|
202
|
+
"args": [
|
|
203
|
+
"--from",
|
|
204
|
+
"git+https://github.com/mailveri/mailveri-mcp",
|
|
205
|
+
"mailveri-mcp"
|
|
206
|
+
],
|
|
207
|
+
"env": {
|
|
208
|
+
"MAILVERI_API_KEY": "YOUR_MAILVERI_API_KEY"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
### 7. Configuration for OpenCode, Pi, Oh My Pi, Antigravity
|
|
218
|
+
|
|
219
|
+
Add to your tool's MCP configuration (`opencode.json`, `~/.pi/config.json`, `~/.omp/mcp.json`, or `.gemini/antigravity/mcp_config.json`):
|
|
220
|
+
|
|
221
|
+
```json
|
|
222
|
+
{
|
|
223
|
+
"mcpServers": {
|
|
224
|
+
"mailveri": {
|
|
225
|
+
"command": "uvx",
|
|
226
|
+
"args": [
|
|
227
|
+
"--from",
|
|
228
|
+
"git+https://github.com/mailveri/mailveri-mcp",
|
|
229
|
+
"mailveri-mcp"
|
|
230
|
+
],
|
|
231
|
+
"env": {
|
|
232
|
+
"MAILVERI_API_KEY": "YOUR_MAILVERI_API_KEY"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## Environment Variables
|
|
242
|
+
|
|
243
|
+
| Variable | Required | Default | Description |
|
|
244
|
+
| :--- | :---: | :--- | :--- |
|
|
245
|
+
| `MAILVERI_API_KEY` | **Yes** | — | Your MailVeri API Key. |
|
|
246
|
+
| `MAILVERI_BASE_URL` | No | `https://api.mailveri.com` | Base API endpoint (useful for staging or self-hosted instances). |
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## Transport Options
|
|
251
|
+
|
|
252
|
+
### Hosted Remote MCP (No Local Install)
|
|
253
|
+
|
|
254
|
+
Connect any Streamable HTTP or SSE MCP client directly to `mcp.mailveri.com`:
|
|
255
|
+
|
|
256
|
+
```json
|
|
257
|
+
{
|
|
258
|
+
"mcpServers": {
|
|
259
|
+
"mailveri": {
|
|
260
|
+
"url": "https://mcp.mailveri.com/mcp",
|
|
261
|
+
"headers": {
|
|
262
|
+
"Authorization": "Bearer YOUR_MAILVERI_API_KEY"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
> **Authentication Security**: Always prefer sending your API key via the `Authorization: Bearer YOUR_MAILVERI_API_KEY` or `X-API-Key: YOUR_MAILVERI_API_KEY` HTTP header rather than query parameters (`?api_key=` / `?token=`) so credentials are never exposed in client, browser, or reverse-proxy URL logs. Legacy SSE clients remain supported at `https://mcp.mailveri.com/sse` using `Authorization: Bearer` / `X-API-Key` headers (use `?api_key=` only for older SSE clients that cannot set custom headers).
|
|
270
|
+
|
|
271
|
+
### Self-Hosted / Local CLI
|
|
272
|
+
|
|
273
|
+
By default the CLI uses **stdio** transport (recommended for local desktop and CLI agents).
|
|
274
|
+
|
|
275
|
+
For local or self-hosted HTTP (**Streamable HTTP** at `/mcp` + **SSE** at `/sse`):
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
export MAILVERI_API_KEY="your_api_key"
|
|
279
|
+
mailveri-mcp --transport streamable-http --host 127.0.0.1 --port 8000
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
> **⚠️ Security**: When `MAILVERI_API_KEY` or `--api-key` is pre-configured, self-hosted HTTP/SSE runs in single-tenant mode without per-request client authentication. Never bind to `0.0.0.0` or a public interface without placing an authenticating reverse proxy in front.
|
|
283
|
+
> In this self-hosted mode (a fixed key from `--api-key` or `MAILVERI_API_KEY`) the server only accepts a `Host` header of `localhost`, `127.0.0.1` or `[::1]`, so a reverse proxy in front must keep nginx's default `Host` (`$proxy_host`) and must not set `proxy_set_header Host $host`.
|
|
284
|
+
|
|
285
|
+
| Flag | Default | Description |
|
|
286
|
+
| :--- | :--- | :--- |
|
|
287
|
+
| `--transport` | `stdio` | Transport type: `stdio`, `streamable-http`, or `sse` |
|
|
288
|
+
| `--host` | `127.0.0.1` | Host to bind for HTTP/SSE transport |
|
|
289
|
+
| `--port` | `8000` | Port to bind for HTTP/SSE transport |
|
|
290
|
+
| `--api-key` | — | API key (alternative to env var) |
|
|
291
|
+
| `--base-url` | `https://api.mailveri.com` | Base API URL |
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
## Rate Limits
|
|
296
|
+
|
|
297
|
+
- **Single email verification**: 10 requests per second (up to 5 checks at a time)
|
|
298
|
+
- **Batch verification**: No per-request limit (emails are queued server-side)
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
## Credit Exhaustion
|
|
303
|
+
|
|
304
|
+
If your account runs out of verification credits, `mailveri_verify_email` will return an error with message `"Not enough credits to verify email"`. Check your balance with `mailveri_get_balance` and top up at [MailVeri Pricing](https://mailveri.com/pricing) or your [MailVeri Dashboard](https://app.mailveri.com).
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
## Local Development & Testing
|
|
309
|
+
|
|
310
|
+
Clone this repository and run locally:
|
|
311
|
+
|
|
312
|
+
```bash
|
|
313
|
+
git clone https://github.com/mailveri/mailveri-mcp.git
|
|
314
|
+
cd mailveri-mcp
|
|
315
|
+
|
|
316
|
+
# Install dependencies
|
|
317
|
+
pip install -e .
|
|
318
|
+
|
|
319
|
+
# Run unit tests (when tests/ is included in your checkout)
|
|
320
|
+
if [ -d tests ]; then python -m unittest discover -s tests; fi
|
|
321
|
+
|
|
322
|
+
# Test running the MCP server locally (stdio)
|
|
323
|
+
export MAILVERI_API_KEY="your_api_key"
|
|
324
|
+
python -m mailveri_mcp.server
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
## Example Prompts for AI
|
|
330
|
+
|
|
331
|
+
Once connected, you can ask Claude or Cursor:
|
|
332
|
+
|
|
333
|
+
- *"Check if alex@gmail.com and support@stripe.com are valid and deliverable."*
|
|
334
|
+
- *"How many email verification credits do I have left in MailVeri?"*
|
|
335
|
+
- *"Verify this list of 20 lead emails and let me know the batch status."*
|
|
336
|
+
- *"Get the result download link for my verification batch."*
|
|
337
|
+
- *"Give me a CSV download link for only the valid, deliverable emails from batch 'bX9K3LwZqP2YtR8vN4mQ'."*
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
341
|
+
## License
|
|
342
|
+
|
|
343
|
+
[MIT License](LICENSE) © 2026 MailVeri
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
# MailVeri MCP Server 🚀
|
|
2
|
+
|
|
3
|
+
[](https://mailveri.com/docs/mcp/)
|
|
4
|
+
[](https://mailveri.com)
|
|
5
|
+
[](https://registry.smithery.ai/servers/mailveri/mailveri-mcp)
|
|
6
|
+
[](https://glama.ai/mcp/servers/mailveri/mailveri-mcp)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
|
|
9
|
+
Official [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for [MailVeri](https://mailveri.com) — Fast, accurate, and privacy-friendly email deliverability verification for AI agents and coding assistants.
|
|
10
|
+
|
|
11
|
+
> 📖 **Interactive Documentation**: For advanced client configurations, tool parameters, and error codes, visit our official [MailVeri MCP Documentation](https://mailveri.com/docs/mcp/).
|
|
12
|
+
> 🧠 **Agent Skill (`SKILL.md`)**: Includes [`SKILL.md`](SKILL.md) with pre-send deliverability routing rules (`VALID`, `ROLE_ACCOUNT` for SMBs, `CATCH_ALL`, zero-cost `UNKNOWN`) for Claude Code, Cursor, Hark, OpenClaw, and AgentMail (`agentmail.to`) pipelines.
|
|
13
|
+
> 📰 **Step-by-step Tutorial**: Read our comprehensive guide on [How to Verify Emails Directly in Claude, Cursor & Windsurf](https://mailveri.com/blog/mailveri-mcp-email-verification-ai-agents).
|
|
14
|
+
> ⚡ **Official Registries**: Listed on [Glama.ai](https://glama.ai/mcp/servers/mailveri/mailveri-mcp) and indexed in the [Smithery Registry (`mailveri/mailveri-mcp`)](https://registry.smithery.ai/servers/mailveri/mailveri-mcp).
|
|
15
|
+
|
|
16
|
+
This server enables AI assistants (**Claude Desktop**, **Claude Code**, **Cursor**, **Windsurf**, **Codex**, **Antigravity**, **OpenCode**, **Pi**, **Oh My Pi**, etc.) to verify email deliverability, check mailbox existence, check credit balances, and manage bulk verification batches directly from chat.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Features & Tools
|
|
21
|
+
|
|
22
|
+
| Tool | Safety Hints (`ToolAnnotations`) | Description |
|
|
23
|
+
| :--- | :--- | :--- |
|
|
24
|
+
| `mailveri_verify_email` | `readOnly: false`, `destructive: false` | Verifies a single email address (returns `VALID`, `INVALID`, `DISPOSABLE`, `ROLE_ACCOUNT`, `CATCH_ALL`, `FULL_INBOX`, `UNKNOWN`, plus `credits_used`, `quality_score`, `is_forwarding`, and `balance`). |
|
|
25
|
+
| `mailveri_get_balance` | `readOnly: true`, `idempotent: true` | Retrieves remaining verification credits (plus `daily_limit`, `daily_remaining`, `daily_used` on daily-quota plans). |
|
|
26
|
+
| `mailveri_verify_batch` | `readOnly: false`, `destructive: false` | Queues a list of emails (minimum 2) for background distributed verification. |
|
|
27
|
+
| `mailveri_get_batch_status` | `readOnly: true`, `idempotent: true` | Checks progress percentage, status (`QUEUED`, `PROCESSING`, `DONE`, `CANCELED`, `MERGED`), and download links for a batch job. |
|
|
28
|
+
| `mailveri_download_batch_result` | `readOnly: true`, `idempotent: true` | Gets the download link for completed batch results (full ZIP archive or filtered CSV; CSV `status` defaults to `VALID,ROLE_ACCOUNT` when omitted). |
|
|
29
|
+
| `mailveri_delete_batch` | `destructive: true`, `idempotent: true` | Deletes a finished or canceled verification batch. |
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Quick Start
|
|
34
|
+
|
|
35
|
+
### 1-Click Install via Smithery
|
|
36
|
+
Add to your MCP client in one command:
|
|
37
|
+
```bash
|
|
38
|
+
npx -y smithery mcp add mailveri/mailveri-mcp
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
### 1. Get Your MailVeri API Key
|
|
44
|
+
Sign up or log in to the [MailVeri Dashboard](https://app.mailveri.com) and copy your API Key from **Dashboard → API Keys**:
|
|
45
|
+
👉 **[https://app.mailveri.com/api-keys/](https://app.mailveri.com/api-keys/)**
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
### 2. Configuration for Claude Desktop
|
|
50
|
+
|
|
51
|
+
Add this configuration to your Claude Desktop config file:
|
|
52
|
+
|
|
53
|
+
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
54
|
+
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
55
|
+
|
|
56
|
+
```json
|
|
57
|
+
{
|
|
58
|
+
"mcpServers": {
|
|
59
|
+
"mailveri": {
|
|
60
|
+
"command": "uvx",
|
|
61
|
+
"args": [
|
|
62
|
+
"--from",
|
|
63
|
+
"git+https://github.com/mailveri/mailveri-mcp",
|
|
64
|
+
"mailveri-mcp"
|
|
65
|
+
],
|
|
66
|
+
"env": {
|
|
67
|
+
"MAILVERI_API_KEY": "YOUR_MAILVERI_API_KEY"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
> **Note**: Requires [uv](https://docs.astral.sh/uv/) installed on your system (`curl -LsSf https://astral.sh/uv/install.sh | sh` or `brew install uv`).
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
### 3. Configuration for Claude Code
|
|
79
|
+
|
|
80
|
+
Run with Anthropic's Claude Code CLI:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
claude mcp add mailveri -e MAILVERI_API_KEY=YOUR_MAILVERI_API_KEY -- uvx --from git+https://github.com/mailveri/mailveri-mcp mailveri-mcp
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Or add to `~/.claude.json`:
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{
|
|
90
|
+
"mcpServers": {
|
|
91
|
+
"mailveri": {
|
|
92
|
+
"command": "uvx",
|
|
93
|
+
"args": [
|
|
94
|
+
"--from",
|
|
95
|
+
"git+https://github.com/mailveri/mailveri-mcp",
|
|
96
|
+
"mailveri-mcp"
|
|
97
|
+
],
|
|
98
|
+
"env": {
|
|
99
|
+
"MAILVERI_API_KEY": "YOUR_MAILVERI_API_KEY"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
### 4. Configuration for Codex
|
|
109
|
+
|
|
110
|
+
Add to your Codex config (`~/.codex/config.json`):
|
|
111
|
+
|
|
112
|
+
```json
|
|
113
|
+
{
|
|
114
|
+
"mcpServers": {
|
|
115
|
+
"mailveri": {
|
|
116
|
+
"command": "uvx",
|
|
117
|
+
"args": [
|
|
118
|
+
"--from",
|
|
119
|
+
"git+https://github.com/mailveri/mailveri-mcp",
|
|
120
|
+
"mailveri-mcp"
|
|
121
|
+
],
|
|
122
|
+
"env": {
|
|
123
|
+
"MAILVERI_API_KEY": "YOUR_MAILVERI_API_KEY"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
### 5. Configuration for Cursor
|
|
133
|
+
|
|
134
|
+
In Cursor, open **Settings** > **Features** > **MCP Servers** > **Add New MCP Server**:
|
|
135
|
+
|
|
136
|
+
- **Name**: `mailveri`
|
|
137
|
+
- **Type**: `command`
|
|
138
|
+
- **Command**: `uvx --from git+https://github.com/mailveri/mailveri-mcp mailveri-mcp`
|
|
139
|
+
- **Environment Variables**:
|
|
140
|
+
- `MAILVERI_API_KEY`: `YOUR_MAILVERI_API_KEY`
|
|
141
|
+
|
|
142
|
+
Or add to `.cursor/mcp.json`:
|
|
143
|
+
|
|
144
|
+
```json
|
|
145
|
+
{
|
|
146
|
+
"mcpServers": {
|
|
147
|
+
"mailveri": {
|
|
148
|
+
"command": "uvx",
|
|
149
|
+
"args": [
|
|
150
|
+
"--from",
|
|
151
|
+
"git+https://github.com/mailveri/mailveri-mcp",
|
|
152
|
+
"mailveri-mcp"
|
|
153
|
+
],
|
|
154
|
+
"env": {
|
|
155
|
+
"MAILVERI_API_KEY": "YOUR_MAILVERI_API_KEY"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
### 6. Configuration for Windsurf
|
|
165
|
+
|
|
166
|
+
Add to your Windsurf configuration file (`~/.codeium/windsurf/mcp_config.json`):
|
|
167
|
+
|
|
168
|
+
```json
|
|
169
|
+
{
|
|
170
|
+
"mcpServers": {
|
|
171
|
+
"mailveri": {
|
|
172
|
+
"command": "uvx",
|
|
173
|
+
"args": [
|
|
174
|
+
"--from",
|
|
175
|
+
"git+https://github.com/mailveri/mailveri-mcp",
|
|
176
|
+
"mailveri-mcp"
|
|
177
|
+
],
|
|
178
|
+
"env": {
|
|
179
|
+
"MAILVERI_API_KEY": "YOUR_MAILVERI_API_KEY"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
### 7. Configuration for OpenCode, Pi, Oh My Pi, Antigravity
|
|
189
|
+
|
|
190
|
+
Add to your tool's MCP configuration (`opencode.json`, `~/.pi/config.json`, `~/.omp/mcp.json`, or `.gemini/antigravity/mcp_config.json`):
|
|
191
|
+
|
|
192
|
+
```json
|
|
193
|
+
{
|
|
194
|
+
"mcpServers": {
|
|
195
|
+
"mailveri": {
|
|
196
|
+
"command": "uvx",
|
|
197
|
+
"args": [
|
|
198
|
+
"--from",
|
|
199
|
+
"git+https://github.com/mailveri/mailveri-mcp",
|
|
200
|
+
"mailveri-mcp"
|
|
201
|
+
],
|
|
202
|
+
"env": {
|
|
203
|
+
"MAILVERI_API_KEY": "YOUR_MAILVERI_API_KEY"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Environment Variables
|
|
213
|
+
|
|
214
|
+
| Variable | Required | Default | Description |
|
|
215
|
+
| :--- | :---: | :--- | :--- |
|
|
216
|
+
| `MAILVERI_API_KEY` | **Yes** | — | Your MailVeri API Key. |
|
|
217
|
+
| `MAILVERI_BASE_URL` | No | `https://api.mailveri.com` | Base API endpoint (useful for staging or self-hosted instances). |
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
## Transport Options
|
|
222
|
+
|
|
223
|
+
### Hosted Remote MCP (No Local Install)
|
|
224
|
+
|
|
225
|
+
Connect any Streamable HTTP or SSE MCP client directly to `mcp.mailveri.com`:
|
|
226
|
+
|
|
227
|
+
```json
|
|
228
|
+
{
|
|
229
|
+
"mcpServers": {
|
|
230
|
+
"mailveri": {
|
|
231
|
+
"url": "https://mcp.mailveri.com/mcp",
|
|
232
|
+
"headers": {
|
|
233
|
+
"Authorization": "Bearer YOUR_MAILVERI_API_KEY"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
> **Authentication Security**: Always prefer sending your API key via the `Authorization: Bearer YOUR_MAILVERI_API_KEY` or `X-API-Key: YOUR_MAILVERI_API_KEY` HTTP header rather than query parameters (`?api_key=` / `?token=`) so credentials are never exposed in client, browser, or reverse-proxy URL logs. Legacy SSE clients remain supported at `https://mcp.mailveri.com/sse` using `Authorization: Bearer` / `X-API-Key` headers (use `?api_key=` only for older SSE clients that cannot set custom headers).
|
|
241
|
+
|
|
242
|
+
### Self-Hosted / Local CLI
|
|
243
|
+
|
|
244
|
+
By default the CLI uses **stdio** transport (recommended for local desktop and CLI agents).
|
|
245
|
+
|
|
246
|
+
For local or self-hosted HTTP (**Streamable HTTP** at `/mcp` + **SSE** at `/sse`):
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
export MAILVERI_API_KEY="your_api_key"
|
|
250
|
+
mailveri-mcp --transport streamable-http --host 127.0.0.1 --port 8000
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
> **⚠️ Security**: When `MAILVERI_API_KEY` or `--api-key` is pre-configured, self-hosted HTTP/SSE runs in single-tenant mode without per-request client authentication. Never bind to `0.0.0.0` or a public interface without placing an authenticating reverse proxy in front.
|
|
254
|
+
> In this self-hosted mode (a fixed key from `--api-key` or `MAILVERI_API_KEY`) the server only accepts a `Host` header of `localhost`, `127.0.0.1` or `[::1]`, so a reverse proxy in front must keep nginx's default `Host` (`$proxy_host`) and must not set `proxy_set_header Host $host`.
|
|
255
|
+
|
|
256
|
+
| Flag | Default | Description |
|
|
257
|
+
| :--- | :--- | :--- |
|
|
258
|
+
| `--transport` | `stdio` | Transport type: `stdio`, `streamable-http`, or `sse` |
|
|
259
|
+
| `--host` | `127.0.0.1` | Host to bind for HTTP/SSE transport |
|
|
260
|
+
| `--port` | `8000` | Port to bind for HTTP/SSE transport |
|
|
261
|
+
| `--api-key` | — | API key (alternative to env var) |
|
|
262
|
+
| `--base-url` | `https://api.mailveri.com` | Base API URL |
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
## Rate Limits
|
|
267
|
+
|
|
268
|
+
- **Single email verification**: 10 requests per second (up to 5 checks at a time)
|
|
269
|
+
- **Batch verification**: No per-request limit (emails are queued server-side)
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
## Credit Exhaustion
|
|
274
|
+
|
|
275
|
+
If your account runs out of verification credits, `mailveri_verify_email` will return an error with message `"Not enough credits to verify email"`. Check your balance with `mailveri_get_balance` and top up at [MailVeri Pricing](https://mailveri.com/pricing) or your [MailVeri Dashboard](https://app.mailveri.com).
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## Local Development & Testing
|
|
280
|
+
|
|
281
|
+
Clone this repository and run locally:
|
|
282
|
+
|
|
283
|
+
```bash
|
|
284
|
+
git clone https://github.com/mailveri/mailveri-mcp.git
|
|
285
|
+
cd mailveri-mcp
|
|
286
|
+
|
|
287
|
+
# Install dependencies
|
|
288
|
+
pip install -e .
|
|
289
|
+
|
|
290
|
+
# Run unit tests (when tests/ is included in your checkout)
|
|
291
|
+
if [ -d tests ]; then python -m unittest discover -s tests; fi
|
|
292
|
+
|
|
293
|
+
# Test running the MCP server locally (stdio)
|
|
294
|
+
export MAILVERI_API_KEY="your_api_key"
|
|
295
|
+
python -m mailveri_mcp.server
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
---
|
|
299
|
+
|
|
300
|
+
## Example Prompts for AI
|
|
301
|
+
|
|
302
|
+
Once connected, you can ask Claude or Cursor:
|
|
303
|
+
|
|
304
|
+
- *"Check if alex@gmail.com and support@stripe.com are valid and deliverable."*
|
|
305
|
+
- *"How many email verification credits do I have left in MailVeri?"*
|
|
306
|
+
- *"Verify this list of 20 lead emails and let me know the batch status."*
|
|
307
|
+
- *"Get the result download link for my verification batch."*
|
|
308
|
+
- *"Give me a CSV download link for only the valid, deliverable emails from batch 'bX9K3LwZqP2YtR8vN4mQ'."*
|
|
309
|
+
|
|
310
|
+
---
|
|
311
|
+
|
|
312
|
+
## License
|
|
313
|
+
|
|
314
|
+
[MIT License](LICENSE) © 2026 MailVeri
|