Notify

السجل الرسمي أدوات المطورين

Transactional email for coding agents: send, test, verify domains, webhooks, logs.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package notifycx-mcp
Claude Code
claude mcp add notify -e 'NOTIFY_API_KEY=<your notify_api_key>' -- npx -y notifycx-mcp@1.2.3
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "notify": {
            "command": "npx",
            "args": [
                "-y",
                "notifycx-mcp@1.2.3"
            ],
            "env": {
                "NOTIFY_API_KEY": "<your notify_api_key>"
            }
        }
    }
}

متغيرات البيئة

  • NOTIFY_API_KEY سري Notify API key (nk_...). Optional until bootstrap_start/bootstrap_confirm returns one.

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. notifycx
  2. What this repo is
  3. Three ways to send
  4. First email in minutes
  5. Native fetch (no SDK)
  6. OpenAPI
  7. MCP for coding agents
  8. Links
  9. Develop

notifycx

Official Node/TypeScript client for Notify — a deliberately minimal transactional email API.

Notify sends email with one HTTPS request. You (or your AI) already render the HTML; Notify delivers it. Domain auth (SPF/DKIM/DMARC), logs, and webhooks included.

Pro is $10 for 10,000 emails · Pricing

What this repo is

This repository is the official client (notifycx) and official MCP (notifycx-mcp). It talks to https://notify.cx over HTTPS.

It does not include Notify’s server, AWS SES credentials, or any way to use Notify’s infrastructure without your own API key from the dashboard. Forks cannot send on Notify’s AWS account.

Three ways to send

ContextPrefer
App / CI / production (Node/TS)npm i notifycx (this package)
App / any languageNative fetch / curl — see examples/fetch-send
IDE coding agentsnotifycx-mcp — npx -y notifycx-mcp with NOTIFY_API_KEY

First email in minutes

  1. Create an account at notify.cx and copy an API key.
  2. Install and send (sandbox first if you have not verified a domain yet):
npm install notifycx
import Notify from 'notifycx'

const notify = new Notify({ apiKey: process.env.NOTIFY_API_KEY! })

// Non-delivering API rehearsal (no SES):
await notify.sendTest({
  to: 'you@example.com',
  from: 'hello@yourdomain.com',
  subject: 'API rehearsal',
  html: '<p>Does not deliver</p>',
})

// Production (requires verified domain for custom from):
await notify.send({
  to: 'user@example.com',
  from: 'Acme <hello@yourdomain.com>',
  subject: 'Reset your password',
  html: '<p>Click to reset…</p>',
})

Prefer html in new code. message and text are also accepted.

Auth
  • Header: x-api-key (the SDK sets this for you)
  • Env: NOTIFY_API_KEY — never commit real keys; never put keys in client bundles
  • Optional: NOTIFY_BASE_URL / baseUrl for local mocks only (default https://notify.cx)
Responses

Success: { success: true, data: { messageId: "…" } }
Failure: { success: false, error: "…", code: "…" } — the SDK throws NotifyError with status and body.

Security
  • Call Notify only from server-side code (Route Handlers, Workers, Actions, backends).
  • Prefer domain-locked sending_access keys in apps; use full_access for MCP / dashboard management.
  • No AWS keys belong in this client. SES runs on Notify’s servers after your authenticated API request.

Native fetch (no SDK)

See examples/fetch-send or:

const res = await fetch('https://notify.cx/api/email/send', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': process.env.NOTIFY_API_KEY,
  },
  body: JSON.stringify({
    to: 'user@example.com',
    from: 'noreply@your-verified-domain.com',
    subject: 'Hello',
    html: '<p>Sent with fetch.</p>',
  }),
})

OpenAPI

MCP for coding agents

npx -y notifycx-mcp

Set NOTIFY_API_KEY in your MCP server env. Details: mcp/README.md · notify.cx/mcp

Develop

npm test
npm run build

See CONTRIBUTING.md and MAINTAINING.md.

الأسئلة الشائعة

ما هو Notify؟

Transactional email for coding agents: send, test, verify domains, webhooks, logs.

كيف أثبّت Notify؟

يعمل على جهازك. في Claude Code: claude mcp add notify -e 'NOTIFY_API_KEY=<your notify_api_key>' -- npx -y notifycx-mcp@1.2.3. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Notify إلى مفتاح API؟

نعم. يتطلب NOTIFY_API_KEY، وتضبطها في إعداداته.

هل Notify مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون Notify؟

ينشره notifycx. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.