trackmcp
Back to directory
recepyavuz0

sendgrid-mcp-server

View on GitHub

Sendrid API Integration For LLM

0 stars JavaScriptAI & Machine Learning Updated Sep 28, 2025

Documentation

SendGrid MCP Server

๐Ÿš€ Model Context Protocol (MCP) server with SendGrid API integration

This project is an MCP server that enables AI assistants (Claude, ChatGPT, etc.) to send emails, manage templates, and track statistics using the SendGrid's API v3.

๐ŸŒŸ Features

๐Ÿ“ง Email Operations

  • Single Email Sending: Send emails in plain text or HTML format
  • Batch Email Sending: Send emails to multiple recipients simultaneously
  • Template-based Emails: Send dynamic emails using pre-built templates
  • Scheduled Emails: Schedule emails to be sent at a future date and time

๐Ÿ“‹ Template Management

  • Template Listing: View existing email templates
  • Template Creation: Create new dynamic email templates

๐Ÿ“Š Statistics and Reporting

  • Email Statistics: View email statistics for specific date ranges
  • Detailed Reports: Get daily, weekly, or monthly reports

๐Ÿ› ๏ธ Installation

1. Clone the Repository

bash
git clone https://github.com/recepyavuz0/sendgrid-mcp-server.git
cd sendgrid-mcp-server

2. Install Dependencies

bash
npm install

3. Set Environment Variables

Create a `.env` file in the project root directory:

env
SENDGRID_API_KEY=your_sendgrid_api_key_here
FROM_EMAIL=your_verified_sender_email@domain.com

Important Notes:

  • `SENDGRID_API_KEY`: API key obtained from your SendGrid account
  • `FROM_EMAIL`: Verified sender email address in SendGrid

4. Build the Project

bash
npm run build

๐Ÿ”ง Usage

Standalone Execution

bash
npm start

Usage with MCP Client

The MCP server works over stdin/stdout. You can use it with various clients:

๐ŸŽฏ Client Integrations

๐Ÿ–ฑ๏ธ Usage with Cursor IDE

To use the MCP server in Cursor:

1. Go to Cursor Settings > Extensions > MCP section

2. Add a new MCP server:

json
{
  "mcpServers": {
    "sendgrid-api-mcp-server": {
      "command": "npx",
      "args": ["-y", "sendgrid-api-mcp-server"],
      "env": {
        "SENDGRID_API_KEY": "your_api_key",
        "FROM_EMAIL": "your_email@domain.com"
      }
    }
  }
}

3. Restart Cursor

4. Now you can send emails in Chat:

Example Usage:

code
"Send a project meeting reminder to john@example.com"
"Send an HTML welcome message to user@test.com"

๐Ÿค– Usage with Claude Desktop

For usage in Claude Desktop application:

1. Edit your Claude configuration file (`~/.claude_desktop_config.json`):

json
{
  "mcpServers": {
    "sendgrid-api-mcp-server": {
      "command": "npx",
      "args": ["-y", "sendgrid-api-mcp-server"],
      "env": {
        "SENDGRID_API_KEY": "your_api_key",
        "FROM_EMAIL": "your_email@domain.com"
      }
    }
  }
}

2. Restart Claude Desktop

3. Give email commands directly in chat

๐Ÿ”— Other MCP Clients

This MCP server is compatible with the following clients since it uses the standard MCP protocol:

  • Zed Editor
  • VS Code MCP Extension
  • Continue.dev
  • Custom MCP clients

Similar configuration structure is used for each client.

๐Ÿ“š Available Tools

1. `sendEmail` - Send Email

Basic email sending functionality.

Parameters:

  • `to`: Recipient email address
  • `subject`: Email subject
  • `text`: Email text
  • `html`: HTML format (optional)

Example Usage:

code
"Send a meeting reminder to ali@example.com: 'We'll meet tomorrow at 2:00 PM.'"

2. `sendEmailWithTemplate` - Template-based Email

Send dynamic emails using pre-built templates.

Parameters:

  • `to`: Recipient email address
  • `subject`: Email subject
  • `templateId`: SendGrid template ID
  • `dynamicData`: Template variables

Example Usage:

code
"Send email to user@test.com using template d-123456789 with data: {name: 'John', company: 'ABC Corp'}"

3. `sendBatchEmails` - Batch Email

Send emails to multiple recipients simultaneously.

Parameters:

  • `toList`: List of recipient email addresses
  • `subject`: Email subject
  • `text`: Email text
  • `html`: HTML format (optional)

Example Usage:

code
"Send new feature announcement to john@test.com, jane@test.com, bob@test.com"

4. `listTemplates` - List Templates

View existing email templates.

Example Usage:

code
"List existing email templates"

5. `getStats` - Email Statistics

Get email statistics for a specific date range.

Parameters:

  • `start_date`: Start date (YYYY-MM-DD)
  • `end_date`: End date (YYYY-MM-DD)
  • `aggregated_by`: Grouping (day/week/month)

Example Usage:

code
"Show email statistics for January 2024"

6. `scheduleEmail` - Scheduled Email

Schedule an email to be sent at a future date.

Parameters:

  • `to`: Recipient email address
  • `subject`: Email subject
  • `text`: Email text
  • `send_at`: Unix timestamp (seconds)
  • `html`: HTML format (optional)

Example Usage:

code
"Schedule a meeting reminder to user@test.com for tomorrow at 10:00 AM"

7. `createTemplate` - Create Template

Create a new dynamic email template.

Parameters:

  • `name`: Template name
  • `subject`: Email subject template
  • `html_body`: HTML content (with {{variable}} format)
  • `plain_body`: Plain text content

Example Usage:

code
"Create a welcome-email template with {{name}} and {{company}} variables"

๐Ÿ’ก Usage Examples

Simple Email Sending

code
AI: "Send an invoice reminder to customer@company.com"

Dynamic Email with Template

code
AI: "Send monthly newsletter to all customers using template d-123456789"

Batch Email Campaign

code
AI: "Send new policy announcement to team@company.com, sales@company.com, support@company.com"

Statistics Tracking

code
AI: "Generate this month's email performance report"

Scheduled Campaign

code
AI: "Schedule weekly meeting reminder to entire team for Monday 9:00 AM"

Frequently asked questions

What is sendgrid-mcp-server?

sendgrid-mcp-server is Sendrid API Integration For LLM

How do I install sendgrid-mcp-server?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is sendgrid-mcp-server open source?

Yes โ€” it is hosted on GitHub at https://github.com/recepyavuz0/sendgrid-mcp-server.

Related MCP tools

Mintplex-Labsanything-llm

The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.

50,686 JavaScript
ai-agentscustom-ai-agentsdeepseek+16
eyaltoledanoclaude-task-master

An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others. Built for the Model Context Protocol to enhance AI capabiliti

23,033 JavaScript
aicursorcursor-ai+9
xszyoufay

Fayๆ˜ฏไธ€ไธชๅธฎๅŠฉๆ•ฐๅญ—ไบบ๏ผˆ2.5dใ€3dใ€็งปๅŠจใ€pcใ€็ฝ‘้กต๏ผ‰ๆˆ–ๅคง่ฏญ่จ€ๆจกๅž‹๏ผˆopenaiๅ…ผๅฎนใ€deepseek๏ผ‰่ฟž้€šไธšๅŠก็ณป็ปŸ็š„mcpๆก†ๆžถใ€‚ JavaScript-based implementation. Trusted by 12000+ developers.

12,003 JavaScript
aiandroidapi+4
sonnylazuardicursor-talk-to-figma-mcp

CTTF: MCP integration between Cursor and Figma, allowing Cursor Agentic AI to communicate with Figma for reading designs and modifying them programmatically.

5,539 JavaScript
agentagenticagentic-ai+11
mendableaifirecrawl-mcp-server

๐Ÿ”ฅ Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients. JavaScript-based implementation.

4,847 JavaScript
batch-processingclaudecontent-extraction+11
wonderwhy-erdesktopcommandermcp

This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities JavaScript-based implementation.

4,840 JavaScript
agentaicode-analysis+5

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP