Security-first MCP server for SendGrid — recipient allowlists, send caps, review-mode, audit log, no silent BCC. Hardened against the postmark-mcp incident class.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add sendgrid-secure --env SENDGRID_API_KEY='<SENDGRID_API_KEY>' -- uvx sendgrid-mcp-secure~/.codex/config.toml
[mcp_servers.sendgrid-secure]
command = "uvx"
args = ["sendgrid-mcp-secure"]
env = { SENDGRID_API_KEY = "<SENDGRID_API_KEY>" }
# codex mcp add sendgrid-secure --env SENDGRID_API_KEY='<SENDGRID_API_KEY>' -- uvx sendgrid-mcp-secure~/.cursor/mcp.json
{
"mcpServers": {
"sendgrid-secure": {
"command": "uvx",
"args": [
"sendgrid-mcp-secure"
],
"env": {
"SENDGRID_API_KEY": "<SENDGRID_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"sendgrid-secure": {
"type": "stdio",
"command": "uvx",
"args": [
"sendgrid-mcp-secure"
],
"env": {
"SENDGRID_API_KEY": "<SENDGRID_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"sendgrid-secure": {
"command": "uvx",
"args": [
"sendgrid-mcp-secure"
],
"env": {
"SENDGRID_API_KEY": "<SENDGRID_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"sendgrid-secure": {
"command": "uvx",
"args": [
"sendgrid-mcp-secure"
],
"env": {
"SENDGRID_API_KEY": "<SENDGRID_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"sendgrid-secure": {
"command": "uvx",
"args": [
"sendgrid-mcp-secure"
],
"env": {
"SENDGRID_API_KEY": "<SENDGRID_API_KEY>"
}
}
}
}Environment variables
SENDGRID_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.