@bentonow/bento-mcp

中文文档
1.3.3发布于 2026/07/09MITTypeScriptES Module近 30 天下载 8280

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

原始使用文档
文档目录25 节
  1. Features
  2. Installation
  3. Configuration
  4. Usage with Claude Desktop
  5. Installing the .mcpb bundle in Claude Desktop
  6. Usage with Claude Code
  7. Usage with OpenCode
  8. Usage with Cursor
  9. Available Tools
  10. Subscribers
  11. Tags
  12. Fields
  13. Events
  14. Statistics
  15. Broadcasts
  16. Automations
  17. Sequences
  18. Email Templates
  19. Example Prompts
  20. Response Format
  21. Error Handling
  22. Development
  23. MCP manifest & bundle
  24. License
  25. Links

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 and ads attribution reports

Installation

npm install -g @bentonow/bento-mcp

Or run directly with npx:

npx @bentonow/bento-mcp

Configuration

The server requires three environment variables:

VariableDescription
BENTO_PUBLISHABLE_KEYYour Bento publishable API key
BENTO_SECRET_KEYYour Bento secret API key
BENTO_SITE_UUIDYour 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"
      }
    }
  }
}

Installing the .mcpb bundle in Claude Desktop

Claude Desktop can also load the packaged bundle directly, so you don’t need to edit JSON by hand:

  1. Run npm run build (or npm run bundle, which aliases build). This compiles the server, syncs manifest.json, and creates bento-mcp.mcpb in the repo root.
  2. In Finder/Explorer, double-click bento-mcp.mcpb (or open Claude Desktop → Tools (hammer icon) → Install Bundle → Choose File… and select bento-mcp.mcpb).
  3. Claude will show the Bento MCP install dialog and prompt for the manifest’s user config fields:
    • Bento Publishable Key → your BENTO_PUBLISHABLE_KEY
    • Bento Secret Key → your BENTO_SECRET_KEY
    • Bento Site UUID → your BENTO_SITE_UUID
  4. Click Install. Claude Desktop copies the bundle and remembers the credentials. The server now appears in the Tools list and can be toggled on/off like any other MCP integration.

To ship an update, re-run npm run build (or npm run bundle) and repeat steps 2–4 (Claude Desktop will replace the previous bundle version automatically).

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

ToolDescription
bento_get_subscriberLook up subscriber details by email or UUID
bento_batch_import_subscribersImport or update up to 1000 subscribers with custom fields and tags

Tags

ToolDescription
bento_list_tagsList all tags in your account
bento_create_tagCreate a new tag

Fields

ToolDescription
bento_list_fieldsList all custom fields
bento_create_fieldCreate a new custom field

Events

ToolDescription
bento_track_eventTrack a custom event for a subscriber (can trigger automations)

Statistics

ToolDescription
bento_get_site_statsGet site statistics including subscriber and broadcast counts
bento_get_ads_statsGet ads attribution stats by source, campaign, medium, content, or ad

Broadcasts

ToolDescription
bento_list_broadcastsList all broadcasts/campaigns
bento_create_broadcastCreate a draft broadcast

Automations

ToolDescription
bento_list_automationsList sequences and/or workflows with their templates (supports separate pagination for each type)
bento_list_workflowsList workflows with their embedded email templates and stats

Sequences

ToolDescription
bento_list_sequencesList all email sequences with their email templates (supports pagination)
bento_create_sequence_emailCreate a new email template in a sequence (accepts sequence ID or exact name) with optional delay settings

Email Templates

ToolDescription
bento_get_email_templateGet email template content by ID
bento_update_email_templateUpdate 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"
  • "How many people came from YouTube last week?"
  • "How much did we earn from Meta last month?"
  • "How is the summer_2015 campaign doing?"
  • "What are all the tags in my Bento account?"
  • "Create a new broadcast for the spring sale"
  • "List all my email sequences"
  • "Show me my workflows and highlight the email templates"
  • "Create a welcome email in sequence abc123 that sends after 2 days"
  • "Add a follow-up email to my onboarding sequence with a 1 week delay"
  • "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

MCP manifest & bundle

  • manifest.json declares the server name, entry point, tool roster, and required runtime per the MCP manifest specification so launchers can discover the server automatically.
  • Run npm run sync:manifest whenever the package version changes; it keeps manifest.json's version field in sync with package.json so there's only one authoritative version number.
  • npm run build (and npm run bundle, which aliases it) validates bundle contents after packing and fails if blocked paths are present or required runtime files are missing.
  • .mcpbignore provides a strict allowlist so local docs/config files are excluded from release bundles.

License

MIT - see LICENSE

版本与发布记录

@bentonow/bento-mcp 共发布 8 个版本,首次发布于 2026/01/05;过去 12 个月发布了 8 个版本。

版本发布日期距今
1.3.3latest2026/07/094 个月前
1.3.22026/06/104 个月前
1.3.02026/06/104 个月前
1.2.12026/03/058 个月前
1.2.02026/02/158 个月前
1.0.22026/01/119 个月前

关于 @bentonow/bento-mcp 的常见问题

@bentonow/bento-mcp 是什么?

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

如何安装 @bentonow/bento-mcp?

在项目目录运行 npm install @bentonow/bento-mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 bento-mcp,可以用 npx bento-mcp 直接运行。

@bentonow/bento-mcp 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@bentonow/bento-mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@bentonow/bento-mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@bentonow/bento-mcp 可以商用吗?

@bentonow/bento-mcp 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@bentonow/bento-mcp 的下载量有多少?

根据 npm 官方下载统计,@bentonow/bento-mcp 在 2026/10/08 – 2026/11/06 这 30 天内被下载 8,280 次,日均约 276 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@bentonow/bento-mcp 还在维护吗?

最新版本 1.3.3 发布于 2026/07/09(4 个月前);至今共发布 8 个版本,其中过去 12 个月发布了 8 个;首次发布于 2026/01/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。