Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, email [email protected] and we’ll put it right.

io.github.codespar/mcp-sendgrid

NPM · @CODESPAR/MCP-SENDGRID · SCANNED AUG 4

MCP server for SendGrid — global transactional + marketing email (Twilio-owned)

+23 this week 69 Trust /100
Trust breakdown (6 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →

Supply Chain Security86
  • No malware found by supply-chain analysis.Pass
  • Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree.Partial
  • No install/post-install scripts declared.Pass
  • Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency45
Schema Quality & AI Usability71
  • AI-judged instruction clarity (good).Pass
  • Tool/resource definitions use about 1836 tokens (~91/item across 20 items; 20 tools + 0 resources), lean.Pass
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management30
  • Stability observed for 9 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Install

Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.

npm · @codespar/mcp-sendgrid

# add to Claude Code
claude mcp add codespar-mcp-sendgrid -- npx -y @codespar/mcp-sendgrid
# add to Codex CLI
codex mcp add codespar-mcp-sendgrid -- npx -y @codespar/mcp-sendgrid
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "codespar-mcp-sendgrid": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@codespar/mcp-sendgrid"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add codespar-mcp-sendgrid --command npx --arg -y --arg @codespar/mcp-sendgrid
# ~/.hermes/config.yaml
mcp_servers:
  codespar-mcp-sendgrid:
    command: "npx"
    args: ["-y", "@codespar/mcp-sendgrid"]
// mcp.json
{
  "mcpServers": {
    "codespar-mcp-sendgrid": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-sendgrid"
      ]
    }
  }
}
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 4 Aug 26 +5
    • Stability: unverified → 0.30 functional
  • 2 Aug 26 +59
    • Provenance: unverified → fail security
    • Install scripts: unverified → pass security
    • Known CVEs: unverified → partial security
    • Malware scan: unverified → pass security
    • Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window). security
    • License: unverified → pass functional
    • Dependency health: unverified → partial functional
    • Maintenance: unverified → pass functional
    • MCP protocol: unverified → pass functional
    • Schema quality: unverified → good functional
    • Tool coverage: unverified → 100 functional
    • Licence: MIT functional
  • 1 Aug 26 −16
    • Tool coverage: 100 → unverified functional
  • 31 Jul 26 +15
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 30 Jul 26 −40
    • Malware scan: pass → unverified security
    • Tool coverage: 100 → unverified functional
    • First check of Schema quality: unverified functional
  • 27 Jul 26 46

    First indexed and scored.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 4 Aug 2026 · Analysed npm/@codespar/[email protected]

Provenance none

Ecosystem: npm · Outcome: none

Dependencies 94 packages

94 packages in the resolved dependency tree · 94 deprecated · 29 stale.

The dependency tree was only partially resolved, so these counts may be incomplete.

MCP tools — 20 exposed · ~1,769 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.

Tool Tokens
add_contact ~94

Upsert contacts in Marketing Campaigns via PUT /marketing/contacts. Matches on email. Returns a job_id — ingestion is async. Optionally assign to list_ids.

NameTypeReqDescription
contactsarrayyesContacts to upsert. Each: { email (required), first_name?, last_name?, phone_number?, country?, city?, custom_fields? }
list_idsarrayOptional list UUIDs to add these contacts to

No output schema declared.

No examples provided.

add_suppression ~65

Add recipients to a suppression group via POST /asm/groups/{group_id}/suppressions. Future mail in this group will be blocked for these addresses.

NameTypeReqDescription
group_idnumberyesUnsubscribe group id
recipient_emailsarrayyesEmails to suppress

No output schema declared.

No examples provided.

cancel_scheduled_send ~108

Cancel or pause a scheduled send by batch_id via POST /user/scheduled_sends. A send_mail call with `send_at` + `batch_id` can be aborted until the send runs. Set status to 'cancel' or 'pause'.

NameTypeReqDescription
batch_idstringyesThe batch_id that was attached to the scheduled /mail/send call
statusstringyes`cancel` aborts; `pause` holds the batch (can be resumed by deleting the status)

No output schema declared.

No examples provided.

create_list ~59

Create a Marketing Campaigns contact list via POST /marketing/lists. Returns the new list UUID. Use the id with add_contact's list_ids to populate it.

NameTypeReqDescription
namestringyesList name (max 100 chars, must be unique)

No output schema declared.

No examples provided.

create_template ~60

Create a transactional template via POST /templates. Returns a template_id. Add versions separately via /templates/{id}/versions.

NameTypeReqDescription
generationstringTemplate generation (recommend `dynamic`)
namestringyesTemplate name (max 100 chars)

No output schema declared.

No examples provided.

delete_bounce ~60

Remove a bounced address from the bounce suppression list via DELETE /suppression/bounces/{email}. Call this after the recipient confirms the underlying issue (e.g. mailbox full) is resolved.

NameTypeReqDescription
emailstringyesBounced email address to clear

No output schema declared.

No examples provided.

delete_contact ~84

Delete contacts by id via DELETE /marketing/contacts?ids=.... Pass a comma-separated list of contact UUIDs, or set delete_all_contacts=true to wipe all contacts (irreversible).

NameTypeReqDescription
delete_all_contactsbooleanIf true, deletes ALL contacts. Ignores `ids`.
idsstringComma-separated list of contact UUIDs to delete

No output schema declared.

No examples provided.

delete_list ~78

Delete a Marketing Campaigns contact list via DELETE /marketing/lists/{id}. Contacts are NOT deleted by default — set delete_contacts=true to also remove contacts that belong ONLY to this list.

NameTypeReqDescription
delete_contactsbooleanIf true, also delete contacts that are exclusive to this list (async job)
idstringyesList UUID

No output schema declared.

No examples provided.

get_bounces ~95

Retrieve bounced recipients via GET /suppression/bounces. Returns [{email, created, reason, status}]. Filter by time window with start_time/end_time (Unix seconds).

NameTypeReqDescription
end_timenumberUnix timestamp (seconds) upper bound
limitnumberMax results to return
offsetnumberOffset for pagination
start_timenumberUnix timestamp (seconds) lower bound

No output schema declared.

No examples provided.

get_contact ~46

Retrieve a single Marketing Campaigns contact by id via GET /marketing/contacts/{id}. Returns full contact record including custom fields and list_ids.

NameTypeReqDescription
idstringyesContact UUID

No output schema declared.

No examples provided.

get_event_webhook_settings ~61

Retrieve the Event Webhook configuration via GET /user/webhooks/event/settings. Returns {url, enabled, delivered, open, click, bounce, dropped, spam_report, unsubscribe, ...} — useful to verify which SendGrid events are being forwarded.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

get_stats ~95

Global email stats via GET /stats. Returns sent/delivered/opens/clicks/bounces/spam_reports aggregated between start_date and end_date.

NameTypeReqDescription
aggregated_bystringBucket size (default day)
categoriesstringOptional category filter (comma-separated if multiple)
end_datestringYYYY-MM-DD (default: today)
start_datestringyesYYYY-MM-DD (required)

No output schema declared.

No examples provided.

list_contacts ~37

List Marketing Campaigns contacts via GET /marketing/contacts. Returns up to 50 sample contacts; for full export use a Contacts Export job.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

list_lists ~69

List all Marketing Campaigns contact lists via GET /marketing/lists. Returns list UUIDs, names, and contact_count. Supports pagination.

NameTypeReqDescription
page_sizenumberResults per page (default 100, max 1000)
page_tokenstringPagination token from previous response

No output schema declared.

No examples provided.

list_suppressions ~50

List all suppressed recipients for an unsubscribe group via GET /asm/groups/{group_id}/suppressions. Returns an array of email strings.

NameTypeReqDescription
group_idnumberyesUnsubscribe group id

No output schema declared.

No examples provided.

list_templates ~78

List transactional templates via GET /templates. By default returns dynamic templates (recommended); set generations='legacy' for legacy.

NameTypeReqDescription
generationsstringTemplate generation filter (default `dynamic`)
page_sizenumberResults per page (1-200, default 10)
page_tokenstringPagination token from previous response

No output schema declared.

No examples provided.

list_unsubscribe_groups ~68

List all unsubscribe groups on the account via GET /asm/groups. Returns [{id, name, description, is_default, unsubscribes}]. Use the id with list_suppressions / add_suppression.

NameTypeReqDescription
idnumberOptional: filter by a single group id

No output schema declared.

No examples provided.

search_contacts ~64

Search contacts with an SGQL query via POST /marketing/contacts/search. Example: `email LIKE '%@codespar.com' AND CONTAINS(list_ids, 'abc-123')`.

NameTypeReqDescription
querystringyesSGQL WHERE clause (SendGrid SQL-like syntax)

No output schema declared.

No examples provided.

send_mail ~341

Send an email via POST /mail/send. Supply at least one `personalization` with `to` recipients, a `from` address (falls back to SENDGRID_FROM_EMAIL), and either `content` blocks or a `template_id` with `dynamic_template_data`. Returns 202 on success.

NameTypeReqDescription
asmobjectUnsubscribe group settings: { group_id, groups_to_display? }
attachmentsarrayAttachments: [{ content (base64), type, filename, disposition?, content_id? }]
categoriesarrayUp to 10 category tags for analytics
contentarrayContent blocks: [{ type: 'text/plain' | 'text/html', value }]. Omit if using template_id.
fromobjectSender. { email, name? }. If omitted, SENDGRID_FROM_EMAIL is used.
mail_settingsobjecte.g. { sandbox_mode: { enable: true } }
personalizationsarrayyesArray of personalization objects. Each has `to` (array of {email,name}), optional `cc`, `bcc`, `subject`, `dynamic_template_data`, `substitutions`.
reply_toobjectOptional reply-to. { email, name? }
send_atnumberUnix timestamp to schedule send (must be within 72h)
subjectstringGlobal subject (overridden by personalization.subject)
template_idstringDynamic template id (starts with `d-`). Use with dynamic_template_data on each personalization.
tracking_settingsobjectClick / open / subscription tracking config

No output schema declared.

No examples provided.

send_template ~157

Convenience wrapper for POST /mail/send with a dynamic template. Equivalent to send_mail with `template_id` set. Supply `to`, `template_id`, and `dynamic_template_data`; content is rendered from the template.

NameTypeReqDescription
dynamic_template_dataobjectHandlebars variables substituted into the template
fromobjectSender { email, name? }. Falls back to SENDGRID_FROM_EMAIL.
subjectstringOptional subject override (usually set inside the template)
template_idstringyesDynamic template id (starts with `d-`)
tostringyesRecipient email (single address). Use send_mail for multiple/complex personalizations.
to_namestringOptional recipient display name

No output schema declared.

No examples provided.