SendGrid Transactional MCP Server
SendGrid transactional email: preflight send, templates, and delivery diagnostics.
SendGrid Transactional scores 59 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Communication. GitHub shows 1 stars. Package registries report about 89 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
59 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 59 comes from
22 + 15 + 1 + 10 + 4 + 7 = 59. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 15 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "neschadin-sendgrid-mcp": { "command": "bunx", "args": [ "-y", "@neschadin/sendgrid-mcp@3.0.3" ], "env": { "SENDGRID_API_KEY": "YOUR_SENDGRID_API_KEY", "SENDGRID_FROM_EMAIL": "", "SENDGRID_FROM_NAME": "", "SENDGRID_REGION": "", "READ_ONLY": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
SENDGRID_API_KEYSecret | Required | SendGrid API key (SG....) |
SENDGRID_FROM_EMAIL | Required | Default From address. Must be a verified sender. |
SENDGRID_FROM_NAME | Optional | Default From display name |
SENDGRID_REGION | Optional | global (default) or eu |
READ_ONLY | Optional | When true, send and mutating tools return an error before any SendGrid request |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
SendGrid MCP Server
This server is for transactional send and delivery, not a map of the whole SendGrid API.
A thin SendGrid MCP treats POST /v3/mail/send as one call and spends the rest of its tools on contacts, lists, and campaigns. Those marketing APIs are out of scope here. The tools follow the checks SendGrid's own delivery troubleshooting expects:
- Before send.
sendgrid_validate_send_requestchecks the/v3/mail/sendpayload, that the dynamic template version is active, sender identity (domain authentication or a verified sender), link branding, recipient suppressions including the ASM group on the send, the DMARC warn list (GET /v3/verified_senders/domains), and thatsend_atis in the future and inside 72 hours.sendgrid_send_with_preflightposts only when that report has no blockers. Sandbox mode accepts the payload and does not deliver. - After accept. The
x-message-idresponse header is not amsg_id. Pass it asxMessageId; search compilesmsg_id LIKE '<id>%', thensendgrid_get_message_activityreads the event chain (reason,bounce_type,asm_group_id,outbound_ip). Email Activity has no real offset. If Activity returns 403/404, or the region iseuand Activity is empty, use Email Logs (POST /v3/logs) withto_emailequality. Logs rejectsmsg_id,from_email, andLIKE. - When it did not arrive.
sendgrid_check_suppressionandsendgrid_triage_delivery_issuecover bounce, block, spam, invalid, global unsubscribe, and ASM groups.sendgrid_delete_suppressionlifts one entry.sendgrid_classify_sendgrid_errorandsendgrid_get_scopesexplain a 403. Paused or canceled scheduled batches are listed; a batch that was only givensend_atis not in that list until you pause or cancel it. - The pipe around the send. Dynamic templates (including bulk rename and pruning inactive versions), Event Webhook create/update/test plus an optional local receiver, and the console settings that change delivery: domains, link branding, enforced TLS, mail and tracking settings, alerts, inbound parse.
Install: bunx --no-env-file x @neschadin/sendgrid-mcp.
Full catalog and runbooks: MCP_TOOLS.md.
This project is community-maintained and is not affiliated with, endorsed by, or sponsored by Twilio SendGrid.
Requirements
- Bun ≥ 1.4.3
- A SendGrid API key with scopes for the tools you call. Keys normally start with
SG.; any other prefix only logs a warning - A verified sender address in
SENDGRID_FROM_EMAIL - An MCP client (Cursor, Claude Desktop, VS Code, etc.)
One process, one API key. Do not share a hosted instance across tenants.
Configuration
Required
| Variable | Description |
|---|---|
SENDGRID_API_KEY | SendGrid API key |
SENDGRID_FROM_EMAIL | Default From address (verified sender) |
SendGrid
| Variable | Default | Description |
|---|---|---|
SENDGRID_FROM_NAME | SendGrid MCP | Default From display name |
SENDGRID_REGION | global | global or eu (case-insensitive). eu uses https://api.eu.sendgrid.com/v3 and falls back to Email Logs when Activity is empty |
SENDGRID_API_BASE_URL | from region | Override the API host. https:// or http:// |
SENDGRID_ON_BEHALF_OF | — | Default on-behalf-of header: a subuser username, or account-id <id> |
READ_ONLY | false | true blocks send and mutating tools before any request |
SENDGRID_MCP_LOG_LEVEL | info | debug, info, warn, or error |
Every tool also accepts onBehalfOf. The value "parent" skips SENDGRID_ON_BEHALF_OF for that call. List subusers with sendgrid_list_subusers (the parent key needs that scope; this key may 403).
Handshake instructions repeat the region, API base, from address, and the workflow above. A tool call with more than 10000 combined array elements and object members is rejected. Results replace oauth_client_secret and api_key values with a length marker.
Remote HTTP
Leave MCP_TRANSPORT unset for stdio. Set MCP_TRANSPORT=http to serve Streamable HTTP on /mcp (/health is unauthenticated).
| Variable | Default | Description |
|---|---|---|
MCP_HTTP_HOST | 127.0.0.1 | Bind address |
MCP_HTTP_PORT | 3000 | Port |
MCP_AUTH_MODE | token | token or none. none is refused when the bind address is not loopback |
MCP_AUTH_TOKEN | — | Bearer token. Required for token mode |
MCP_ALLOWED_HOSTS | loopback names | Comma-separated Host allowlist. Required off loopback |
MCP_ALLOWED_ORIGINS | loopback names | Comma-separated Origin allowlist. A missing Origin is allowed |
MCP_TLS_KEY_FILE | — | TLS key. Set together with MCP_TLS_CERT_FILE |
MCP_TLS_CERT_FILE | — | TLS certificate |
MCP_TRUST_PROXY | false | Allow plaintext HTTP off loopback only behind your own TLS proxy |
Local Event Webhook receiver
Off until SENDGRID_EVENT_WEBHOOK_PORT is set. The buffer is in-memory (default 5000 events) and is dropped when the process exits.
| Variable | Default |
|---|---|
SENDGRID_EVENT_WEBHOOK_HOST | 0.0.0.0 |
SENDGRID_EVENT_WEBHOOK_PATH | /sendgrid/events |
SENDGRID_EVENT_WEBHOOK_HEALTH_PATH | /sendgrid/events/health |
SENDGRID_EVENT_WEBHOOK_MAX_EVENTS | 5000 |
SENDGRID_EVENT_WEBHOOK_VERBOSE | false |
SENDGRID_EVENT_WEBHOOK_REQUIRE_SIGNATURE | false |
SENDGRID_EVENT_WEBHOOK_PUBLIC_KEY | required when signature is required |
Point the SendGrid Event Webhook URL at the tunnel, for example https://<ngrok-host>/sendgrid/events. Read what arrived with sendgrid_get_received_webhook_events and sendgrid_get_webhook_receiver_status. Create or test the SendGrid-side webhook with sendgrid_manage_event_webhook.
MCP client setup
Cursor
mcp.json.example. --no-env-file stops Bun from also reading a .env in the client cwd. In ~/.cursor/mcp.json, envFile must be an absolute path.
{
"mcpServers": {
"sendgrid": {
"command": "bunx",
"args": ["--no-env-file", "x", "@neschadin/sendgrid-mcp"],
"envFile": "${workspaceFolder}/.env"
}
}
}
Remote HTTP, after the server process is started with MCP_TRANSPORT=http:
{
"mcpServers": {
"sendgrid": {
"url": "https://mcp.example.com/mcp",
"headers": {
"Authorization": "Bearer <MCP_AUTH_TOKEN>"
}
}
}
}
Claude Desktop
No envFile. The desktop cwd is not your repo, so pass an absolute --env-file:
{
"mcpServers": {
"sendgrid": {
"command": "bunx",
"args": [
"--no-env-file",
"--env-file=/absolute/path/.env",
"x",
"@neschadin/sendgrid-mcp"
]
}
}
}
Restart the client after changing MCP config.
Safety
- Send tools can enqueue real mail. They do not ask for
confirmToken. Usesendgrid_send_with_preflight, or setREAD_ONLY=true. - Tools that change SendGrid (templates, suppressions, webhooks, domains, settings, scheduled-send pause/cancel) require
confirmToken"CONFIRM". READ_ONLY=trueblocks both sends and those mutations before the HTTP call.- Email Activity (
/v3/messages) may require the Email Activity add-on.
Development
A git tag vX.Y.Z must match version in package.json and both version fields in server.json. That tag runs tests, opens the GitHub Release, publishes @neschadin/sendgrid-mcp to npm, then publishes io.github.Neschadin/sendgrid-mcp to the MCP registry. The release has no binary assets. A prerelease tag (vX.Y.Z-...) publishes to npm with the next dist-tag, skips the MCP registry, and is marked prerelease on GitHub.
git clone https://github.com/Neschadin/sendgrid-mcp.git
cd sendgrid-mcp
bun install
bun run dev # stdio MCP; loads .env
bun run lint
bun run typecheck
bun run smoke
bun test
bun run inspect
Docs
- MCP_TOOLS.md — tools, runbooks, risk matrix
- SendGrid API reference
- SendGrid for developers
License
MIT — see LICENSE.
Frequently asked questions
What is SendGrid Transactional MCP Server?
SendGrid transactional email: preflight send, templates, and delivery diagnostics.
How do I install SendGrid Transactional MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. SendGrid Transactional MCP Server runs locally from the npm package @neschadin/sendgrid-mcp with the command bunx -y @neschadin/sendgrid-mcp@3.0.3.
Is SendGrid Transactional MCP Server free and open source?
Yes. SendGrid Transactional MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does SendGrid Transactional MCP Server support remote (HTTP) connections?
No remote endpoint is listed for SendGrid Transactional MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is SendGrid Transactional MCP Server's trust score calculated?
SendGrid Transactional MCP Server scores 59 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.