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

@bentonow/bento-mcp

v1.2.0

Published

MCP server for Bento - Email marketing and analytics tools for AI assistants

Downloads

159

Readme

Bento MCP Server

A Model Context Protocol (MCP) server for Bento - the email marketing and analytics platform. This server enables AI assistants like Claude, Cursor, and others to interact with your Bento account.

Features

  • Subscriber Management - Import, update, and lookup subscribers with full custom field support
  • Tagging - Create and manage tags
  • Event Tracking - Track custom events that can trigger automations
  • Field Management - Create and list custom fields
  • Broadcasts - Create and list email campaigns
  • Automations - View sequences and workflows
  • Email Templates - Read and update email template content
  • Statistics - Get site-level stats

Installation

npm install -g @bentonow/bento-mcp

Or run directly with npx:

npx @bentonow/bento-mcp

Configuration

The server requires three environment variables:

| Variable | Description | |----------|-------------| | BENTO_PUBLISHABLE_KEY | Your Bento publishable API key | | BENTO_SECRET_KEY | Your Bento secret API key | | BENTO_SITE_UUID | Your Bento site UUID |

You can find these in your Bento account settings.

Usage with Claude Desktop

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "bento": {
      "command": "npx",
      "args": ["-y", "@bentonow/bento-mcp"],
      "env": {
        "BENTO_PUBLISHABLE_KEY": "your-publishable-key",
        "BENTO_SECRET_KEY": "your-secret-key",
        "BENTO_SITE_UUID": "your-site-uuid"
      }
    }
  }
}

Usage with Claude Code

Run this command to add the Bento MCP server to Claude Code:

claude mcp add bento --env BENTO_PUBLISHABLE_KEY=your-publishable-key --env BENTO_SECRET_KEY=your-secret-key --env BENTO_SITE_UUID=your-site-uuid -- npx -y @bentonow/bento-mcp

Usage with OpenCode

Add to your OpenCode config file (~/.config/opencode/config.json):

{
  "mcp": {
    "bento": {
      "type": "local",
      "command": ["npx", "-y", "@bentonow/bento-mcp"],
      "environment": {
        "BENTO_PUBLISHABLE_KEY": "your-publishable-key",
        "BENTO_SECRET_KEY": "your-secret-key",
        "BENTO_SITE_UUID": "your-site-uuid"
      }
    }
  }
}

Note: OpenCode does not support referencing environment variables from a .env file. You must enter your actual credential values directly in the configuration file.

Usage with Cursor

Add to your Cursor MCP settings (~/.cursor/mcp.json):

{
  "mcpServers": {
    "bento": {
      "command": "npx",
      "args": ["-y", "@bentonow/bento-mcp"],
      "env": {
        "BENTO_PUBLISHABLE_KEY": "your-publishable-key",
        "BENTO_SECRET_KEY": "your-secret-key",
        "BENTO_SITE_UUID": "your-site-uuid"
      }
    }
  }
}

Note: Cursor does not support referencing environment variables from a .env file. You must enter your actual credential values directly in the configuration file.

Available Tools

Subscribers

| Tool | Description | |------|-------------| | bento_get_subscriber | Look up subscriber details by email or UUID | | bento_batch_import_subscribers | Import or update up to 1000 subscribers with custom fields and tags |

Tags

| Tool | Description | |------|-------------| | bento_list_tags | List all tags in your account | | bento_create_tag | Create a new tag |

Fields

| Tool | Description | |------|-------------| | bento_list_fields | List all custom fields | | bento_create_field | Create a new custom field |

Events

| Tool | Description | |------|-------------| | bento_track_event | Track a custom event for a subscriber (can trigger automations) |

Statistics

| Tool | Description | |------|-------------| | bento_get_site_stats | Get site statistics including subscriber and broadcast counts |

Broadcasts

| Tool | Description | |------|-------------| | bento_list_broadcasts | List all broadcasts/campaigns | | bento_create_broadcast | Create a draft broadcast |

Automations

| Tool | Description | |------|-------------| | bento_list_automations | List sequences and/or workflows with their templates |

Email Templates

| Tool | Description | |------|-------------| | bento_get_email_template | Get email template content by ID | | bento_update_email_template | Update email template subject and/or content |

Example Prompts

Once configured, you can ask your AI assistant things like:

  • "Look up the subscriber [email protected] in Bento"
  • "Import these 5 subscribers with the 'newsletter' tag"
  • "Show me the site statistics from Bento"
  • "What are all the tags in my Bento account?"
  • "Create a new broadcast for the spring sale"
  • "List all my email sequences"
  • "Track a 'feature_used' event for [email protected]"

Response Format

All tool responses are formatted to be informative for both humans and LLMs:

  • Success responses include context about the operation performed and structured data
  • Error responses include the isError flag and helpful error messages with suggested fixes
  • Empty results are clearly indicated (e.g., "No items found")
  • Batch operations report both successful and total counts

Error Handling

The server provides helpful error messages for common issues:

  • Missing credentials: Clear message about which environment variables are missing
  • Authentication failures: Guidance to check API keys
  • Rate limiting: Information about waiting before retrying
  • Not found errors: Clear indication when resources don't exist
  • API errors: Helpful messages for temporary service issues

Development

# Clone the repository
git clone https://github.com/bentonow/bento-mcp.git
cd bento-mcp

# Install dependencies
npm install

# Build
npm run build

# Lint
npm run lint

# Format
npm run format

# Run locally
BENTO_PUBLISHABLE_KEY=xxx BENTO_SECRET_KEY=xxx BENTO_SITE_UUID=xxx npm start

License

MIT - see LICENSE

Links