This MCP Server provides a tool to send emails using the SendGrid API.
This server can be used with any DXT-compatible application or configured to run directly in your preferred IDE (Cursor, Cline, etc).
-
Install the Extension:
- Download the latest
sendgrid-mcp-server.dxtfile from the GitHub Releases tab. - Open Claude for macOS or Windows.
- Install the extension by opening the downloaded
.dxtfile.
- Download the latest
-
Configure the Extension:
- After installation, you will be prompted to configure the extension.
- SendGrid API Key: Enter your SendGrid API key. This is a sensitive value and will be stored securely.
- From Email: Enter the email address you want to send emails from. This must be a verified sender in your SendGrid account.
You can configure the server to run directly with npx in Cline Desktop's MCP settings. There are two ways to do this:
-
Open Cline Desktop's settings.
-
Navigate to the MCP (Model Context Protocol) section.
-
Click "Add Server" and configure it as follows:
- Server Name:
SendGrid MCP Server(or any name you prefer) - Command:
npx - Arguments:
sendgrid-mcp-server - Environment Variables:
SENDGRID_API_KEY: Your SendGrid API key.FROM_EMAIL: The email address you want to send emails from.
- Server Name:
-
Save the settings and restart Cline.
The server will now be managed by Cline and will start automatically.
Alternatively, you can add the following JSON object to your cline_mcp_settings.json file:
{
"mcpServers": {
"sendgrid": {
"command": "npx",
"args": [
"sendgrid-mcp-server"
],
"env": {
"SENDGRID_API_KEY": "YOUR_API_KEY",
"FROM_EMAIL": "YOUR_VERIFIED_FROM_ADDRESS"
},
"transportType": "stdio"
}
}
}Replace "YOUR_API_KEY" and "YOUR_VERIFIED_FROM_ADDRESS" with your actual credentials.
Add the following to your mcp_servers.json file:
{
"sendgrid": {
"command": "npx",
"args": [
"sendgrid-mcp-server"
],
"env": {
"SENDGRID_API_KEY": "YOUR_SENDGRID_API_KEY",
"FROM_EMAIL": "YOUR_FROM_EMAIL"
}
}}Replace "YOUR_SENDGRID_API_KEY" and "YOUR_FROM_EMAIL" with your actual credentials.
The extension provides a single tool: sendEmail.
This tool sends an email to the specified recipient.
to: The recipient's email address.subject: The subject of the email.body: The plain text body of the email.
Example:
sendEmail(
to: "recipient@example.com",
subject: "Hello from DXT!",
body: "This is a test email sent from the SendGrid DXT extension."
)
- Node.js >= 16.0.0
- npm
- Clone the repository.
- Install the dependencies:
npm install
To run the MCP server directly for testing, you can use npm start or npx:
npm startOr, if you want to run it without cloning the repository:
npx sendgrid-mcp-serverTo package the extension into a .dxt file:
- Install the
dxtCLI tool:npm install -g @anthropic-ai/dxt
- Run the pack command:
dxt pack
This will create a sendgrid-mcp-server.dxt file in the project root.