npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@codespar/mcp-sendgrid

v0.2.1

Published

MCP server for SendGrid — global transactional + marketing email (Twilio-owned). Pairs with @codespar/mcp-twilio for full messaging coverage.

Readme

@codespar/mcp-sendgrid

MCP server for SendGrid — global transactional and marketing email.

SendGrid is Twilio-owned (acquired 2019). Together with @codespar/mcp-twilio this package closes the messaging loop:

  • Twilio — SMS, WhatsApp, Voice, Verify
  • SendGrid — email (transactional + marketing)

Agents building commerce notification flows — order confirmations, shipping updates, abandoned-cart nudges, promos — can now cover every channel through two packages.

Tools (20)

| Tool | Purpose | |---|---| | send_mail | Send an email via POST /mail/send. | | send_template | Convenience wrapper for POST /mail/send with a dynamic template. | | add_contact | Upsert contacts in Marketing Campaigns via PUT /marketing/contacts. | | list_contacts | List Marketing Campaigns contacts via GET /marketing/contacts. | | delete_contact | Delete contacts by id via DELETE /marketing/contacts?ids=.... | | search_contacts | Search contacts with an SGQL query via POST /marketing/contacts/search. | | get_contact | Retrieve a single Marketing Campaigns contact by id via GET /marketing/contacts/{id}. | | list_lists | List all Marketing Campaigns contact lists via GET /marketing/lists. | | create_list | Create a Marketing Campaigns contact list via POST /marketing/lists. | | delete_list | Delete a Marketing Campaigns contact list via DELETE /marketing/lists/{id}. | | list_templates | List transactional templates via GET /templates. | | create_template | Create a transactional template via POST /templates. | | list_suppressions | List all suppressed recipients for an unsubscribe group via GET /asm/groups/{group_id}/suppressions. | | add_suppression | Add recipients to a suppression group via POST /asm/groups/{group_id}/suppressions. | | list_unsubscribe_groups | List all unsubscribe groups on the account via GET /asm/groups. | | get_bounces | Retrieve bounced recipients via GET /suppression/bounces. | | delete_bounce | Remove a bounced address from the bounce suppression list via DELETE /suppression/bounces/{email}. | | cancel_scheduled_send | Cancel or pause a scheduled send by batch_id via POST /user/scheduled_sends. | | get_event_webhook_settings | Retrieve the Event Webhook configuration via GET /user/webhooks/event/settings. | | get_stats | Global email stats via GET /stats. |

Install

npm install @codespar/mcp-sendgrid

Environment

SENDGRID_API_KEY="SG...."         # required (secret)
SENDGRID_FROM_EMAIL="[email protected]"   # optional default sender

The SENDGRID_FROM_EMAIL must be either a Verified Sender or belong to an authenticated domain.

Authentication

Bearer-token auth. The server handles this automatically.

Authorization: Bearer <SENDGRID_API_KEY>

API surface

  • Base URL: https://api.sendgrid.com/v3
  • All requests/responses are application/json
  • POST /mail/send returns 202 Accepted on success (no body)

Send with a dynamic template

{
  "to": "[email protected]",
  "template_id": "d-abc123...",
  "dynamic_template_data": {
    "order_id": "1001",
    "total_brl": "R$ 249,90",
    "tracking_url": "https://example.com/track/1001"
  }
}

Run

# stdio (default — for Claude Desktop, Cursor, etc)
npx @codespar/mcp-sendgrid

# HTTP (for server-to-server testing)
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-sendgrid

Pairs with

License

MIT