Skip to main content
Glama
MIDAS MCP Server

MIDAS MCP Server

by Pyrexx-AI

@midas-aem/client — Cold Email API, Shadow DOM Newsletter SDK & MCP Server

Official zero-dependency TypeScript/React/Next.js SDK, Shadow DOM Web Component newsletter modal (match-host theming + Cart Recovery), 1-line Next.js App Router proxy, and Model Context Protocol (MCP) server bridge for MIDAS (https://midas.pyrexxai.com).

Unlike iframe newsletter embeds (Substack, Beehiiv) or blast-only outreach tools, MIDAS unifies multi-mailbox cold B2B email outreach (with automated warmup, Spintax, and AI reply triage) and encapsulated Shadow DOM newsletter channels (Town Crier Gongs) under one deliverability-protected API and MCP server.



Related MCP server: Winnr MCP Server

Install & 60-Second CLI Setup

npm install @midas-aem/client
npx @midas-aem/client init

1. Connect MIDAS MCP Server to Claude Code, Cursor & Codex

Option A: Stdio Bridge (npx)

Add to .mcp.json (Claude Code / Cursor / Windsurf):

{
  "mcpServers": {
    "midas": {
      "command": "npx",
      "args": ["-y", "@midas-aem/client", "mcp"],
      "env": {
        "MIDAS_API_KEY": "midas_live_YOUR_SECRET_KEY",
        "MIDAS_BASE_URL": "https://midas.pyrexxai.com"
      }
    }
  }
}

Option B: Remote Streamable HTTP MCP

  • Endpoint: POST https://midas.pyrexxai.com/api/mcp

  • Header: Authorization: Bearer midas_live_YOUR_SECRET_KEY

  • Manifest: https://midas.pyrexxai.com/.well-known/mcp.json

Exposed MCP Tools (7): midas_create_gong_channel, midas_get_embed_snippet, midas_subscribe_contact, midas_track_event, midas_send_sandbox_test, midas_get_campaign_health, midas_create_artifact.


2. Zero-CLI Next.js App Router Proxy + Shadow DOM React Modal

Keep MIDAS_API_KEY strictly on your server while rendering zero-CSS-conflict Shadow DOM modals in the browser:

// app/api/midas/subscribe/route.ts
export { POST } from '@midas-aem/client/next';
// components/NewsletterCTA.tsx
'use client';
import { MidasModal, MidasEmbed } from '@midas-aem/client/react';

export function NewsletterCTA() {
  return (
    <>
      <MidasModal
        endpoint="/api/midas/subscribe"
        gongId="weekly-alpha"
        themeMode="match-host"
        progressiveSteps
        developerToggle
        className="px-4 py-2 rounded-xl bg-amber-500 text-white font-bold"
      >
        Subscribe
      </MidasModal>

      <MidasEmbed
        endpoint="/api/midas/subscribe"
        gongId="weekly-alpha"
        layout="horizontal"
        themeMode="match-host"
        showCount
      />
    </>
  );
}

3. Server / Node.js Cold Email, Events & Newsletter SDK

import { MidasClient } from '@midas-aem/client';

// Automatically resolves process.env.MIDAS_API_KEY & process.env.MIDAS_BASE_URL
const midas = new MidasClient();

// 1. Zero-Setup Sandbox test email to your own inbox (no DNS needed)
await midas.sendSandboxTest({ subject: 'Hello from MIDAS' });

// 2. Subscribe a lead to a Town Crier Gong channel
await midas.subscribe({
  email: 'founder@acme.com',
  name: 'Alex Mercer',
  gongId: 'weekly-alpha',
  cadence: 'weekly',
  metadata: { isDeveloper: true },
});

// 3. Emit SaaS behavioral events to trigger transactional emails or sequences
await midas.trackEvent({
  email: 'founder@acme.com',
  eventName: 'trial.expiring',
  idempotencyKey: 'evt_trial_expiring_acme',
  properties: { daysLeft: 3 },
});

// 4. Trigger bounded cold-outreach sweep (<= 5 emails/tick)
await midas.dispatchCampaign('campaign_cuid_123');

4. Verify Outbound Webhooks (HMAC-SHA256)

import { MidasClient } from '@midas-aem/client';

const isValid = MidasClient.verifyWebhookSignature(
  rawBody,
  req.headers.get('x-midas-signature') || '',
  process.env.MIDAS_WEBHOOK_SECRET!
);

License

Apache-2.0 — Pyrexx Technologies Inc.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to programmatically manage email outreach campaigns, leads, domains, senders, and webhook events, as well as send emails, through the Model Context Protocol over HTTP.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to manage cold-email infrastructure through natural language, covering domain and mailbox provisioning, DNS setup, email warming, inbox and reply triage, exports, pre-warmed domain purchases, and webhooks. Supports hosted OAuth or local stdio installs with scoped read, write, and purchase permissions, plus two-step confirmation for anything that charges a card.
      14 PyPI
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to read, search, send, manage, schedule, and analyze messages across multiple IMAP/SMTP accounts, including real-time inbox watching, verification-code capture, calendar extraction, and analytics. Exposes 52 tools, 7 prompts, and 6 resources over stdio or Streamable HTTP.
      31 npm
      ISC
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to read, search, send, manage, schedule, and analyze mail across multiple IMAP/SMTP accounts, with real-time inbox watching, verification-code capture, calendar extraction, and provider-aware labeling. It also exposes drafts, templates, bulk operations, analytics, and OAuth2 support over stdio or Streamable HTTP.
      31 npm
      ISC