MCP Server Studio
Security-first SendGrid MCP server: dry-run default, recipient allowlists, rate caps, audit log.
Registry name: io.github.Choppaaahh/sendgrid-mcp-secure
Add to claude_desktop_config.json:
{
"mcpServers": {
"sendgrid-mcp-secure": {
"command": "uvx",
"args": [
"sendgrid-mcp-secure==0.1.0"
],
"env": {
"SENDGRID_API_KEY": "<SENDGRID_API_KEY>",
"SENDGRID_MCP_MODE": "<SENDGRID_MCP_MODE>",
"SENDGRID_MCP_RECIPIENT_ALLOWLIST": "<SENDGRID_MCP_RECIPIENT_ALLOWLIST>",
"SENDGRID_MCP_WRITES_PER_HOUR": "<SENDGRID_MCP_WRITES_PER_HOUR>",
"SENDGRID_MCP_MAX_RECIPIENTS": "<SENDGRID_MCP_MAX_RECIPIENTS>",
"SENDGRID_MCP_AUDIT_LOG": "<SENDGRID_MCP_AUDIT_LOG>",
"SENDGRID_MCP_ALLOW_BCC": "<SENDGRID_MCP_ALLOW_BCC>"
}
}
}
}Run in your terminal:
claude mcp add sendgrid-mcp-secure -e SENDGRID_API_KEY='<SENDGRID_API_KEY>' -e SENDGRID_MCP_MODE='<SENDGRID_MCP_MODE>' -e SENDGRID_MCP_RECIPIENT_ALLOWLIST='<SENDGRID_MCP_RECIPIENT_ALLOWLIST>' -e SENDGRID_MCP_WRITES_PER_HOUR='<SENDGRID_MCP_WRITES_PER_HOUR>' -e SENDGRID_MCP_MAX_RECIPIENTS='<SENDGRID_MCP_MAX_RECIPIENTS>' -e SENDGRID_MCP_AUDIT_LOG='<SENDGRID_MCP_AUDIT_LOG>' -e SENDGRID_MCP_ALLOW_BCC='<SENDGRID_MCP_ALLOW_BCC>' -- uvx sendgrid-mcp-secure==0.1.0Add to .cursor/mcp.json:
{
"mcpServers": {
"sendgrid-mcp-secure": {
"command": "uvx",
"args": [
"sendgrid-mcp-secure==0.1.0"
],
"env": {
"SENDGRID_API_KEY": "<SENDGRID_API_KEY>",
"SENDGRID_MCP_MODE": "<SENDGRID_MCP_MODE>",
"SENDGRID_MCP_RECIPIENT_ALLOWLIST": "<SENDGRID_MCP_RECIPIENT_ALLOWLIST>",
"SENDGRID_MCP_WRITES_PER_HOUR": "<SENDGRID_MCP_WRITES_PER_HOUR>",
"SENDGRID_MCP_MAX_RECIPIENTS": "<SENDGRID_MCP_MAX_RECIPIENTS>",
"SENDGRID_MCP_AUDIT_LOG": "<SENDGRID_MCP_AUDIT_LOG>",
"SENDGRID_MCP_ALLOW_BCC": "<SENDGRID_MCP_ALLOW_BCC>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"sendgrid-mcp-secure": {
"type": "stdio",
"command": "uvx",
"args": [
"sendgrid-mcp-secure==0.1.0"
],
"env": {
"SENDGRID_API_KEY": "<SENDGRID_API_KEY>",
"SENDGRID_MCP_MODE": "<SENDGRID_MCP_MODE>",
"SENDGRID_MCP_RECIPIENT_ALLOWLIST": "<SENDGRID_MCP_RECIPIENT_ALLOWLIST>",
"SENDGRID_MCP_WRITES_PER_HOUR": "<SENDGRID_MCP_WRITES_PER_HOUR>",
"SENDGRID_MCP_MAX_RECIPIENTS": "<SENDGRID_MCP_MAX_RECIPIENTS>",
"SENDGRID_MCP_AUDIT_LOG": "<SENDGRID_MCP_AUDIT_LOG>",
"SENDGRID_MCP_ALLOW_BCC": "<SENDGRID_MCP_ALLOW_BCC>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"sendgrid-mcp-secure": {
"command": "uvx",
"args": [
"sendgrid-mcp-secure==0.1.0"
],
"env": {
"SENDGRID_API_KEY": "<SENDGRID_API_KEY>",
"SENDGRID_MCP_MODE": "<SENDGRID_MCP_MODE>",
"SENDGRID_MCP_RECIPIENT_ALLOWLIST": "<SENDGRID_MCP_RECIPIENT_ALLOWLIST>",
"SENDGRID_MCP_WRITES_PER_HOUR": "<SENDGRID_MCP_WRITES_PER_HOUR>",
"SENDGRID_MCP_MAX_RECIPIENTS": "<SENDGRID_MCP_MAX_RECIPIENTS>",
"SENDGRID_MCP_AUDIT_LOG": "<SENDGRID_MCP_AUDIT_LOG>",
"SENDGRID_MCP_ALLOW_BCC": "<SENDGRID_MCP_ALLOW_BCC>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
SENDGRID_API_KEY | Yes | SendGrid API key (use a restricted key with Mail Send scope only) |
SENDGRID_MCP_MODE | No | dry-run (default) or live |
SENDGRID_MCP_RECIPIENT_ALLOWLIST | No | Comma-separated recipient addresses/domains allowed to receive mail |
SENDGRID_MCP_WRITES_PER_HOUR | No | Hourly cap on write operations (sends) |
SENDGRID_MCP_MAX_RECIPIENTS | No | Max recipients per send |
SENDGRID_MCP_AUDIT_LOG | No | Path to the append-only audit log |
SENDGRID_MCP_ALLOW_BCC | No | BCC stays disabled unless explicitly enabled |