# SentriSend MCP setup SentriSend's hosted MCP endpoint is `https://sentrisend.com/mcp`. It provides one tool, `validate_email`, which calls the existing validation API. It only validates addresses; it never sends email. Each validation uses the connected key's normal monthly request allowance and is subject to the API's existing authorization, expiry and rate limits. Keep your SentriSend API key private. Do not put it in a public repository, conversation, prompt, or tool input. Add it only to the private MCP configuration for the app that will use it. ## Claude Code example Replace `YOUR_API_KEY` with your own SentriSend key in your private terminal and run: ```sh claude mcp add --transport http sentrisend https://sentrisend.com/mcp --header "Authorization: Bearer YOUR_API_KEY" ``` This configures a remote Streamable HTTP MCP server in Claude Code. Treat the saved Claude MCP configuration as private because it contains the API key. ## OpenAI Codex example Add this to your Codex MCP configuration: ```toml [mcp_servers.sentrisend] url = "https://sentrisend.com/mcp" bearer_token_env_var = "SENTRISEND_API_KEY" ``` Set `SENTRISEND_API_KEY` in the environment where Codex runs, then restart or reload its MCP connection. Keep that environment value private. ## What the tool returns For an address verdict, the tool returns `allowed`, `disposable`, and `risk_score`. A response may also contain `reason`, `advisories`, or `suggested_domain`. Authentication, expiry, quota, rate-limit, and service errors are returned as errors, not as address verdicts. ## Separate public send receipts The MCP server remains validation-only; it has no sending or receipt tool. For sends made through the HTTP API, see https://sentrisend.com/receipts. When public signing is configured, the additional publicReceipt records provider acceptance, not delivery. The existing HMAC receipt fields remain separate. Public keys are at https://sentrisend.com/api/v1/receipts/keys and the signature checker is POST https://sentrisend.com/api/v1/receipts/verify. Send only the compact receipt string as {"receipt":""} to that checker; opening salts and original send data stay with the holder for local commitment comparisons. For the separate MCP endpoint that can send email, see the [MCP email gateway setup](https://sentrisend.com/mcp-gateway-setup.md). ## Sign in instead of pasting an API key If your MCP client supports hosted OAuth sign-in, connect it to `https://sentrisend.com/mcp` without an API key header. When the client prompts you to sign in, enter the email address on an active SentriSend key, open the sign-in link, select the key, and review the app name, redirect host and validation permission before approving. This connection only validates addresses. It cannot send email. Each validation uses the selected key's existing quota. To revoke connected apps, open the dashboard with that key and choose **Disconnect connected apps**. API-key setup above remains available. The separate email gateway does not accept these OAuth tokens. ## Connect in Claude with sign-in 1. Add a custom connector using the remote MCP URL `https://sentrisend.com/mcp`. 2. If Claude detects “No sign-in,” review the authentication setting and choose **Sign in when needed**. 3. Under **OAuth client**, choose **Use Claude’s published identity**. 4. When you use `validate_email`, follow the SentriSend sign-in link, choose an active API key, review the app name and redirect host, and approve access. Validation uses the selected key’s existing request quota. The `/mcp` endpoint validates addresses and does not send email.