# MCP

Use mails.fit from Claude, Cursor or any [Model Context Protocol](https://modelcontextprotocol.io) client. The hosted server is `https://mcp.mails.fit/mcp` (Streamable HTTP, stateless). It uses your API key, so the same scopes, credits and rate limits apply as for the API.

## Claude in one line

```bash
claude mcp add --transport http mailsfit https://mcp.mails.fit/mcp \
  --header "Authorization: Bearer $MAILSFIT_KEY"
```

Then ask: *"Verify jane@example.com with mails.fit"* or *"Check the DMARC record of example.com"*.

## Other clients

```json
{
  "mcpServers": {
    "mailsfit": {
      "url": "https://mcp.mails.fit/mcp",
      "headers": { "Authorization": "Bearer mf_live_..." }
    }
  }
}
```

That is the Cursor config (`~/.cursor/mcp.json`); most HTTP-capable clients use the same shape. Clients that only speak stdio (such as Claude Desktop) can bridge with `mcp-remote`:

```json
{
  "mcpServers": {
    "mailsfit": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.mails.fit/mcp", "--header", "Authorization:${AUTH_HEADER}"],
      "env": { "AUTH_HEADER": "Bearer mf_live_..." }
    }
  }
}
```

A local stdio binary, `mailsfit-mcp`, is also available from the source repository (`MAILSFIT_API_KEY` in its environment).

## Tools

| Tool | What it does | Scope |
|---|---|---|
| `verify_email` | Verify one address | `verify` |
| `verify_list` | Verify up to 500 addresses as a list | `lists` |
| `get_list_result` | Progress and results of a list | `lists` |
| `check_domain_dns` | MX, SPF, DMARC and DNS records of a domain | none |
| `check_blacklist` | An IP or domain on public blocklists | none |
| `find_email` | Find a person's address at a domain | `verify` |

## Safety

- Give each agent its own key, verify-only unless it needs lists. Revoking the key stops it at once.
- Text that comes from third parties (DNS records, web pages, blocklist answers, list names) is returned in an `untrusted_data` field, so the agent can tell data from instructions.
- `verify_list` is capped at 500 addresses per call, so an agent steered by text it read cannot spend more than that per call.

## Docs for agents

Point your agent at [/llms.txt](/llms.txt) (index) or [/llms-full.txt](/llms-full.txt) (all docs in one file). Every docs page is also Markdown at the same URL plus `.md`.
