Model Context Protocol
Let an agent operate your email — inside a key it can’t exceed.
Point a coding agent at the NoticeAPI MCP server. It discovers its tools over MCP, acts only where a scoped ntc_ key allows, and proves the whole flow against the simulator before a real domain is ever in play.
{
"mcpServers": {
"noticeapi": {
"type": "http",
"url": "https://mcp.noticeapi.com/mcp",
"headers": { "Authorization": "Bearer ntc_…" }
}
}
}One connection block. The full setup — OAuth, headers, project scoping, and the tool list — lives in the MCP reference.
Machine-readable
Enough structure to build, not just to send.
A single send call is easy to paste. Building the real path — templates, scheduling, recipient outcomes — needs structure the agent can read. NoticeAPI publishes it: the same tools over hosted and local MCP, one OpenAPI contract behind them, and stable error codes an agent can branch on instead of guessing.
- Hosted MCP
mcp.noticeapi.com/mcpStreamable HTTP with OAuth sign-in or a bearer key.
- Local MCP
noticeapi-mcpA stdio server that keeps the key in your local process.
- OpenAPI 3.1
/openapi.jsonThe canonical contract every MCP tool maps back to.
- Stable errors
project_required, …Documented codes, so a failure tells the agent what to fix.
Test first
Prove the flow before a real domain.
An agent should not learn your integration works by mailing real people. It sends from the sandbox to simulator recipients and gets deterministic outcomes back — plus the same signed events a production send would fire. Your sender reputation stays untouched until the code is right.
- Send from the sandbox
[email protected] - To a simulator recipient
[email protected] - Get a deterministic outcomedelivered · bounced · complained · suppressed
- Fire the same signed eventsx-noticeapi-* headers, exactly like production
- Agent reads the resultthen graduates to a verified domain
Give the agent a key. Keep the boundary.
Create a project-scoped key, connect the MCP server, and let the agent build against the simulator first.