SendGrid MCP Server
SendGrid MCP サーバー
AIアシスタントがSendGridのWeb API v3を通じてメールの送信や連絡先の管理を行えるようにするPython製MCP(Model Context Protocol)サーバーです。
ツール
ツール | 説明 |
| 1人以上の受信者にプレーンテキスト/HTMLメールを送信します |
| 動的テンプレートの構造を確認します |
| 置換データを使用して動的テンプレート経由で送信します |
| マーケティング連絡先を追加/更新します(SendGridによって非同期で処理されます) |
| 制限付きSGQLクエリで連絡先を検索します |
| 名前付きマーケティング連絡先リストを一覧表示します |
| 新しい送信ドメインのドメイン認証を開始し、追加するDNSレコードを返します |
| ドメインとその検証ステータスを一覧表示します |
| レコード追加後にDNSを再チェックします |
| ドメイン認証を削除します |
セットアップ
仮想環境を作成して依存関係をインストールします:
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Email for AI agents: send mail, manage contacts, automations & webhooks. Zero-DNS first send.
Email for AI agents — send, receive as a webhook, manage domains, templates, routing.
Send transactional email, run campaigns, manage contacts and automations, audit deliverability.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bhoggard/twilio-sendgrid-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server