MCP Server Studio

SendGrid Secure MCP server

Security-first SendGrid MCP server: dry-run default, recipient allowlists, rate caps, audit log.

Registry name: io.github.Choppaaahh/sendgrid-mcp-secure

Publisher
Choppaaahh
Runs
Runs locally
Package
PyPI
Version
0.1.0
Category
Security
Updated
2026-08-14

Source code on GitHub

Set up SendGrid Secure (run locally)

Claude Desktop

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>"
      }
    }
  }
}

Claude Code

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.0

Cursor

Add 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>"
      }
    }
  }
}

VS Code

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>"
      }
    }
  }
}

Windsurf

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>"
      }
    }
  }
}

Settings

NameRequiredWhat it is
SENDGRID_API_KEYYesSendGrid API key (use a restricted key with Mail Send scope only)
SENDGRID_MCP_MODENodry-run (default) or live
SENDGRID_MCP_RECIPIENT_ALLOWLISTNoComma-separated recipient addresses/domains allowed to receive mail
SENDGRID_MCP_WRITES_PER_HOURNoHourly cap on write operations (sends)
SENDGRID_MCP_MAX_RECIPIENTSNoMax recipients per send
SENDGRID_MCP_AUDIT_LOGNoPath to the append-only audit log
SENDGRID_MCP_ALLOW_BCCNoBCC stays disabled unless explicitly enabled

More security MCP servers