SendGrid MCP Server
SendGrid MCP サーバー
AIアシスタントがSendGridのWeb API v3を通じてメールの送信や連絡先の管理を行えるようにするPython製MCP(Model Context Protocol)サーバーです。
ツール
ツール | 説明 |
| 1人以上の受信者にプレーンテキスト/HTMLメールを送信します |
| 動的テンプレートの構造を確認します |
| 置換データを使用して動的テンプレート経由で送信します |
| マーケティング連絡先を追加/更新します(SendGridによって非同期で処理されます) |
| 制限付きSGQLクエリで連絡先を検索します |
| 名前付きマーケティング連絡先リストを一覧表示します |
| 新しい送信ドメインのドメイン認証を開始し、追加するDNSレコードを返します |
| ドメインとその検証ステータスを一覧表示します |
| レコード追加後にDNSを再チェックします |
| ドメイン認証を削除します |
Related MCP server: sendcraft-mcp
セットアップ
仮想環境を作成して依存関係をインストールします:
python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate pip install -r requirements.txt.env.exampleを.envにコピーし、SendGrid APIキー(SendGridダッシュボードの「Settings > API Keys」)とデフォルトの送信者を入力します:cp .env.example .env送信前にSendGridの「Settings > Sender Authentication」で送信者メールを検証してください。検証されていない送信者は拒否されます。
(オプション)「Email API > Dynamic Templates」で動的テンプレートを作成し、
.envにDEFAULT_TEMPLATE_IDを設定します。
実行
python main.pyこれにより、Claude DesktopのようなMCPクライアントがローカルサブプロセスに期待するstdioトランスポートでサーバーが実行されます。
動作確認
python smoke_test.py登録済みツールの一覧を表示し、SendGridアカウントに対して1回のライブ呼び出しを実行します。対話形式でのスキーマ/ツール検査には:
npx @modelcontextprotocol/inspector python main.pyClaude Desktopへの接続
claude_desktop_config.json に以下を追加します:
{
"mcpServers": {
"sendgrid-mcp": {
"command": "python",
"args": ["/path/to/twilio-sendgrid-mcp/main.py"],
"cwd": "/path/to/twilio-sendgrid-mcp",
"env": {
"SENDGRID_API_KEY": "SG.your-actual-api-key-here"
}
}
}
}その後、Claude Desktopを再起動します。ツール呼び出しが失敗した場合は、~/Library/Logs/Claude/mcp*.log(macOS)でサーバーのstderr出力を確認してください。
This server cannot be deployed
Maintenance
Related MCP Connectors
Send, track, and manage transactional and bulk email delivery
Send transactional emails for AI agents via SMTP. Templates included.
Let AI agents send email from your own Gmail, Microsoft 365 or SMTP inbox, with guardrails.
Email, calendar and contacts for AI agents: Gmail, Microsoft 365 and IMAP accounts behind one API.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables comprehensive email marketing and transactional email operations through SendGrid's API v3. Supports contact management, campaign creation, email automation, list management, and email sending with built-in read-only safety mode.58322 npm4ISC

sendcraft-mcpofficial
AlicenseAqualityDmaintenanceEnables AI agents to send emails, manage campaigns, subscribers, templates, and domains via the SendCraft email API.263 npmMIT- AlicenseNot gradedqualityDmaintenanceEnables AI models to send emails, manage contacts, and interact with SendGrid's email platform via MCP.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables querying SendGrid email statistics, blocked addresses, and bounces through the SendGrid v3 API, allowing AI agents to retrieve delivery metrics and lists of problematic recipients.294 npmMIT