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

@marketmasher/mcp-server

v0.10.0

Published

Model Context Protocol server for MarketMasher. Lets Claude, ChatGPT, and other MCP-capable agents drive MarketMasher campaigns on behalf of the user.

Readme

@marketmasher/mcp-server

Model Context Protocol server for MarketMasher. Lets Claude, ChatGPT, and other MCP-capable agents drive MarketMasher campaigns on behalf of the user.

What you can do with it

Once installed, an agent can handle requests like:

Create a MarketMasher campaign from this sales page: https://example.com/offer. Run the swarm to build the brief, then generate LinkedIn and Twitter content. Approve everything and turn on autopilot three times a week.

Under the hood the agent calls tools like mm_create_campaign, mm_run_swarm, mm_generate_content, mm_approve_all, mm_set_autopilot.

Safety model

  • Every tool call goes through the MarketMasher REST API using your personal API key. All server-side safeguards apply: scopes, per-key rate limits, audit logging, credit accounting.
  • API keys cannot delete anything. An agent can create, edit, publish, and schedule, but it cannot remove campaigns, posts, brand voices, or anything else. Destructive actions must be done in the UI.
  • You can narrow an agent's access by issuing a key with fewer scopes (e.g. read only, or read,write without post).
  • You can cap the agent's throughput with per-key rate limits. Your subscription plan sets a hard ceiling.

Install

1. Generate an API key

Go to Settings -> API Access in MarketMasher and click Generate New Key. Pick the scopes you want the agent to have. Copy the key (you only see it once). Format: mm_live_<64 hex chars>.

2. One-line install (recommended)

Requires Node.js 18+. In a terminal:

npx -y @marketmasher/mcp-server install --key mm_live_YOUR_KEY

This auto-detects Claude Desktop, Claude Code, Cursor, and Windsurf on your machine and writes the right config file for each. Existing MCP servers are preserved. Restart your AI client to load the tools.

2b. Manual install (Claude Desktop)

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "marketmasher": {
      "command": "npx",
      "args": ["-y", "@marketmasher/mcp-server"],
      "env": {
        "MM_API_KEY":  "mm_live_your_key_here",
        "MM_BASE_URL": "https://app.marketmasher.com"
      }
    }
  }
}

On macOS this file lives at ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows: %APPDATA%\Claude\claude_desktop_config.json.

Restart Claude Desktop. You should see marketmasher in the tool list.

3. Wire up in other MCP clients

Any MCP-compliant client works. Point it at mm-mcp (or node /path/to/mcp-server/bin/mm-mcp.js for development), set the same two env vars, and it will speak stdio MCP.

Environment

| Var | Required | Default | Purpose | | - | - | - | - | | MM_API_KEY | yes | — | Personal API key, starts with mm_live_ | | MM_BASE_URL | no | https://app.marketmasher.com | Override for staging / self-hosting |

Tools

Grouped by purpose. See src/index.js for exact parameters.

Read

  • mm_me — profile, credits, plan
  • mm_stats — dashboard stats
  • mm_leaderboard — monthly top users
  • mm_list_campaigns — all campaigns
  • mm_get_campaign — single campaign
  • mm_list_packs — content packs for a campaign
  • mm_list_queue — scheduled posts queue
  • mm_list_accounts — connected social accounts
  • mm_list_webhooks — user webhooks
  • mm_list_brand_voices — saved brand voices

Campaign lifecycle

  • mm_create_campaign — new campaign
  • mm_update_campaign — edit (auto-refreshes brief on URL change)
  • mm_refresh_brief — force brief re-fetch
  • mm_run_swarm — run the agent swarm brief pass
  • mm_generate_content — full content pack (costs credits)
  • mm_regenerate_platform — single platform regen
  • mm_approve_platform — toggle approval for one platform
  • mm_approve_all — bulk-approve everything with content

Publishing

  • mm_post_now — publish immediately
  • mm_schedule_post — schedule for later
  • mm_retry_post — retry a failed post
  • mm_set_autopilot — configure autopilot

Running locally for development

cd mcp-server
npm install
MM_API_KEY=mm_live_... MM_BASE_URL=https://test.marketmasher.com node bin/mm-mcp.js

The server communicates over stdio, so an interactive shell will just look idle. Use an MCP client (Claude Desktop, or the MCP inspector) to exercise it.

Not included (yet)

  • Destructive operations — intentional, see Safety Model above.
  • Adding / disconnecting social accounts — needs OAuth in a browser.
  • Adding / revoking API keys — must be done in the UI.
  • File uploads (images, support attachments) — agent can trigger AI image generation via mm_generate_content but not upload arbitrary files.

These are all reachable via the REST API for users who want to build their own integrations; they're held back from the MCP server because an agent driving them is either awkward (OAuth) or risky (key management).