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

mcp-mautic-server

v1.2.4

Published

MCP server for Mautic marketing automation platform integration

Readme

MCP Mautic Server

A Model Context Protocol (MCP) server for Mautic marketing automation platform. Provides secure API access to contacts, assets, segments, and analytics data.

Quick Start

Install & Use with NPX

{
  "mcpServers": {
    "mautic": {
      "command": "npx",
      "args": ["--yes", "mcp-mautic-server@latest"],
      "env": {
        "MAUTIC_URL": "https://your-mautic-instance.com",
        "MAUTIC_CLIENT_ID": "your_client_id",
        "MAUTIC_CLIENT_SECRET": "your_client_secret"
      }
    }
  }
}

Mautic API Setup

  1. Go to Mautic → Configuration → API Settings
  2. Enable API and create new credentials with "Client Credentials" grant type
  3. Copy Client ID and Client Secret to your environment

Key Features

  • OAuth2 Authentication - Secure server-to-server access
  • Contact Management - CRUD operations with optimized responses
  • Asset & Segment Management - Complete marketing asset control
  • Analytics - Email stats, campaign data, and contact activity
  • Response Optimization - Minimal data by default, full responses on demand

Core Tools

Contacts

  • mautic_list_contacts - List and search contacts
  • mautic_get_contact - Get specific contact by ID
  • mautic_create_contact - Create new contact
  • mautic_update_contact - Update existing contact
  • mautic_delete_contact - Delete contact (requires confirmation)

Emails

  • mautic_list_emails - List marketing emails
  • mautic_get_email - Get specific email by ID
  • mautic_create_email - Create new email (template or segment)
  • mautic_update_email - Update email content and settings
  • mautic_delete_email - Delete email (requires confirmation)
  • mautic_send_email_to_contact - Send email to specific contact with token personalization
  • mautic_send_email_to_segments - Send email to all contacts in assigned segments

Assets

  • mautic_list_assets - List marketing assets
  • mautic_get_asset - Get specific asset
  • mautic_create_asset - Create new asset
  • mautic_update_asset - Update asset
  • mautic_delete_asset - Delete asset

Segments

  • mautic_list_segments - List contact segments
  • mautic_get_segment - Get specific segment
  • mautic_create_segment - Create new segment with filters
  • mautic_update_segment - Update segment
  • mautic_delete_segment - Delete segment
  • mautic_add_contact_to_segment - Add contact to segment
  • mautic_remove_contact_from_segment - Remove contact from segment

Analytics

  • mautic_get_stats - Database statistics (email_stats, form_submissions, etc.)
  • mautic_get_dashboard_data - Dashboard metrics (emails.in.time, created.leads.in.time, etc.)
  • mautic_get_contact_activity - Contact activity timeline

Response Optimization

All contact APIs return optimized responses by default:

  • Default: Returns only fields.all (simplified key-value pairs)
  • Full Response: Set fullResponse: true for complete field definitions
  • Minimal: Set minimal: true for reduced API output (default for list operations)

Common Parameters

Most list operations support:

  • limit (1-100): Number of items to retrieve
  • search: Search term for filtering
  • orderBy / orderByDir: Sorting options
  • start: Pagination offset
  • minimal: Return reduced output (default: true)
  • fullResponse: Return complete field data (default: false)

Installation Options

Global Install

npm install -g mcp-mautic-server

Local Development

git clone <repo>
npm install
cp .env.example .env
npm run build
npm start

Available Data Sources

Statistics Tables: email_stats, asset_downloads, campaign_lead_event_log, form_submissions, page_hits, sms_message_stats

Dashboard Types: emails.in.time, created.leads.in.time, most.hit.email.redirects, anonymous.vs.identified.leads, map.of.leads

License

MIT