Mailgun Plugins helps developers use Mailgun from agent tools like Cursor, Claude Code, and Gemini CLI. Each package connects the agent to @mailgun/mcp-server and adds practical workflows for common Mailgun tasks, including domain setup, delivery diagnostics, suppressions, template QA, and platform operations.
| Platform | Package | Status | Notes |
|---|---|---|---|
| Cursor | plugins/mailgun-cursor |
Full | Marketplace manifest, plugin manifest, MCP config, skills, rules, and commands. |
| Claude Code / Claude compatible | plugins/mailgun-claude |
Supported | Claude marketplace/plugin manifest, MCP config, skills, and commands. Rules are included as guidance files where supported by the client. |
| Gemini CLI | plugins/mailgun-gemini |
Supported | Gemini extension manifest, MCP server config, settings metadata, skills, and TOML commands. |
See docs/platform-support.md for the detailed matrix.
shared/is the canonical source for Mailgun skills, reusable rules, setup docs, example prompts, and examples.plugins/mailgun-cursor,plugins/mailgun-claude, andplugins/mailgun-geminicontain platform manifests and generated copies of shared content.scripts/sync-shared.mjscopies shared content into each platform package.scripts/validate.mjschecks manifests, referenced files, skill frontmatter, MCP version pinning, and required docs.- CI runs sync drift checks and validation on every push and pull request.
GitHub Actions is enabled for this repository:
Validateruns on pushes and pull requests tomain.Publish Gemini Extension Branchbuildsplugins/mailgun-geminiinto a Gemini extension artifact and publishes it to thegemini-extensionbranch when Gemini package files change.
This repo currently pins plugin MCP startup commands to:
npx -y @mailgun/mcp-server@2.1.0Required environment:
MAILGUN_API_KEY: Mailgun private API key.MAILGUN_API_REGION: optional MCP server setting,usoreu; the packaged configs omit it and the server defaults tous.MAILGUN_MCP_TAGS: optional MCP server setting for a comma separated subset ofsend,validate,optimize,inspect; the packaged configs omit it and expose all tools.
For EU accounts or scoped tool sets, edit the installed platform MCP config to add MAILGUN_API_REGION or MAILGUN_MCP_TAGS.
Install from the Cursor plugin marketplace when published, or add this repository as a marketplace source in Cursor and install mailgun-cursor.
The Cursor package includes:
- Mailgun MCP config at
plugins/mailgun-cursor/mcp.json. - Fifteen skills.
- Safety rules in
plugins/mailgun-cursor/rules. - Commands for domain health, bounces, DNS, suppressions, templates, and reporting across domains.
Add this repository as a Claude plugin marketplace source, then install mailgun-claude.
The Claude package includes a .mcp.json file, the shared Mailgun skills, and Claude compatible commands.
Install the generated Gemini extension branch:
gemini extensions install https://github.com/mailgun/mailgun-plugins --ref gemini-extensionThe source package is under plugins/mailgun-gemini and includes gemini-extension.json, skills, and TOML commands. Gemini requires gemini-extension.json at the repository root, so GitHub Actions publishes the gemini-extension branch from that package.
npm run sync
npm run validate
npm run check:sync
npm run build:geminiTo verify the MCP server tag list from npm:
npm run mcp:tagsTo test against a local server checkout, build ../mailgun-mcp-server, then use the local override pattern in shared/docs/setup.md.
- Update the compatible MCP version in platform MCP configs, docs, and
scripts/validate.mjs. - Run
npm run sync. - Run
npm run validate,npm run check:sync, andnpm run build:gemini. - Update changelogs and tag the repo release.
- Publish or refresh platform marketplace listings. The Gemini extension branch is generated by GitHub Actions.
See docs/release-process.md for details.
- Missing API key: set
MAILGUN_API_KEYin the platform environment and restart the agent app. - Wrong region: add
MAILGUN_API_REGION=euto the installed MCP config for EU accounts. - Too many tools: add
MAILGUN_MCP_TAGSto the installed MCP config with a narrower subset. - Local server testing: build the MCP server first, then point the platform MCP config at
dist/mailgun-mcp.js.