SendGrid MCP Server
Allows sending emails, managing contacts, and interacting with SendGrid's email platform.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SendGrid MCP Serversend a welcome email to newuser@example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SendGrid MCP Server
A production-ready Model Context Protocol (MCP) Server for SendGrid email services, built with FastMCP 2.0. This server enables AI models like Claude, GPT, and others to send emails, manage contacts, and interact with SendGrid's powerful email platform.
š Features
š§ Email Management: Send HTML/text emails with templates and attachments
š„ Contact Management: Add contacts and manage mailing lists
š Secure Authentication: Bearer token authentication with fallback support
ā” Rate Limiting: Built-in API rate limiting to prevent abuse
š”ļø Production Ready: Comprehensive error handling and logging
š§ Easy Configuration: Environment-based configuration management
Related MCP server: MCP Email Server with SendGrid
š Requirements
Python 3.8+
SendGrid API Key
FastMCP 2.0
š ļø Installation
Clone the repository:
git clone https://github.com/FINCH285/SendGrid-MCP-Server.git cd SendGrid-MCP-ServerInstall dependencies:
pip install -r requirements.txtSet up environment variables:
cp .env.example .envEdit
.envwith your SendGrid configuration:SENDGRID_API_KEY=your_sendgrid_api_key_here DEFAULT_FROM_EMAIL=your-verified-email@example.com DEFAULT_FROM_NAME=Your Name DEFAULT_TEMPLATE_ID=your-template-id RATE_LIMIT=10 DEBUG=false
š Usage
Running the Server
python main.pyThe server will start and listen for MCP connections via STDIO.
Available Tools
Email Tools
send_email- Send HTML/text emails to multiple recipientsget_template_info- Fetch SendGrid template detailssend_template_email- Send emails using dynamic templates
Contact Tools
add_contact- Add/update contacts with custom fieldsget_contact_lists- Retrieve all contact lists
š§ Configuration
Authentication
The server supports two authentication methods:
Environment Variable: Set
SENDGRID_API_KEYin your.envfileBearer Token: Pass API key via Authorization header in MCP requests
š SendGrid Configuration example
{
"mcpServers": {
"sendgrid-mcp": {
"command": "python",
"args": ["/path/to/your/project/main.py"],
"cwd": "/path/to/your/project",
"disabled": false,
"env": {
"SENDGRID_API_KEY": "SG.your-actual-api-key-here"
}
}
}
}For Windows users, use paths like:
"args": ["C:\\Users\\YourUsername\\project-folder\\main.py"]
"cwd": "C:\\Users\\YourUsername\\project-folder"For macOS/Linux users, use paths like:
"args": ["/Users/yourusername/project-folder/main.py"]
"cwd": "/Users/yourusername/project-folder"Key configuration elements:
"sendgrid-mcp": The server name/identifier (customizable)
args: Specifies the path to your main.py file
cwd: Sets the working directory to your project folder
disabled: Set to false to enable the server
env: Contains your SendGrid API key (replace with your actual key starting with "SG.")
šļø Architecture
āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāā
ā AI Model āāāāāŗā FastMCP āāāāāŗā SendGrid ā
ā (Claude/GPT) ā ā Server ā ā API ā
āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāā
ā ā ā
ā MCP Protocol ā HTTP/REST ā
ā¼ ā¼ ā¼
āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāā
ā Tools Layer ā ā Auth Layer ā ā Config Layer ā
ā ⢠email_tools ā ā ⢠Bearer Token ā ā ⢠Environment ā
ā ⢠contact_tools ā ā ⢠API Key Auth ā ā ⢠Rate Limits ā
āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāš¤ Contributing
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
š License
This project is licensed under the MIT License - see the LICENSE file for details.
š Support
Issues: GitHub Issues
SendGrid Documentation: SendGrid API Docs
FastMCP Documentation: FastMCP Docs
š Acknowledgments
This server cannot be deployed
Maintenance
Related MCP Connectors
Email infrastructure for AI agents ā send, receive, search, and reply to email over MCP.
Send transactional email and manage domains, audiences, and broadcasts from any MCP client.
Hosted email for AI agents: create inboxes, send, receive, and reply over MCP with scoped API keys
AgentiSend is a transactional email API: send through verified domains with a message log, budgets, a preflight and refusals that name the fix; built so AI agents can send on your behalf. The hosted MCP server at https://api.agentisend.com/mcp exposes 82 tools (44 on tools/list; the rest via list_more_tools). A send is one message or a batch of up to 500 items with per-item results. preflight_email runs every gate a real send runs, sends nothing, and costs nothing. Every 4xx returns code, message, and fix. There is no tool for unsolicited mail. Auth is a bearer API key or OAuth 2.1 with dynamic client registration. Starter prompts: "Send this receipt to the customer." "Preflight this send and tell me what would stop it." "What can I spend today?"
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.58240 npm3ISC
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI applications to send text, HTML, and template-based emails using SendGrid. It supports file attachments, CC/BCC recipients, and easy deployment via Python or Docker.-

@sendbyte/mcpofficial
AlicenseAqualityDmaintenanceEnables AI agents to send emails and manage sending domains, templates, analytics, and content checks through the SendByte platform using the Model Context Protocol.117 npmMIT- AlicenseNot gradedqualityCmaintenanceEnables AI agents to send emails, create drafts in Gmail, and append content to Google Docs via standardized MCP tools.44 npmISC