Skip to main content
Glama
HubSpot Email MCP Server
by hdmt

HubSpot Email MCP Server

A Model Context Protocol (MCP) server for the HubSpot Marketing Email API. Manage HubSpot marketing emails from Claude Desktop.

日本語版 README

Features

  • List marketing emails

  • Get email details

  • Create email drafts

  • Update emails

Note: This server does not include email sending functionality to prevent accidental sends.

Related MCP server: HubSpot MCP Server

Setup

1. Install Dependencies

npm install

2. Get HubSpot Access Token

  1. Log in to your HubSpot account

  2. Go to Development > Legacy Apps (開発 > 旧アプリ)

  3. Create a new app

  4. Set the required scopes: content (for Marketing Emails)

  5. Copy the Access Token (pat-na1-... format)

3. Build

npm run build

4. Configure Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "hubspot-email": {
      "command": "npx",
      "args": ["-y", "/path/to/hubspot-email-mcp"],
      "env": {
        "HUBSPOT_ACCESS_TOKEN": "your-access-token"
      }
    }
  }
}

5. Restart Claude Desktop

Restart Claude Desktop completely to apply the settings.

Usage

You can use it in Claude Desktop like this:

"Create a newsletter draft in HubSpot.
Subject: New Product Announcement
Body: We have released a new version of Product A"

"Show me the list of emails created last week"

"Check the content of email ID 12345"

Development

Testing with MCP Inspector

You can test the MCP server using the official inspector tool:

npx @modelcontextprotocol/inspector npx -y /path/to/hubspot-email-mcp

Set the HUBSPOT_ACCESS_TOKEN environment variable in the inspector UI to test with your HubSpot account.

Local Testing

npm run dev

Build

npm run build

License

MIT

Available Tools

4 tools
create_draft_emailB

メールの下書きを作成。既存メールを複製する場合はget_emailで取得したcontent等を渡す

Inputs: name (required), subject (required), htmlBody, content, +3 more.

get_emailC

特定のメールの詳細情報を取得

Inputs: emailId (required).

list_emailsC

HubSpotのマーケティングメール一覧を取得

Inputs: limit, offset, sort.

update_emailC

メールを更新

Inputs: emailId (required), name, subject, htmlBody, +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: create_draft_email for creation, get_email for retrieval, list_emails for listing, and update_email for updating. The descriptions reinforce these distinct roles, making tool selection straightforward for an agent.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (create_draft_email, get_email, list_emails, update_email), using snake_case uniformly. This predictability aids in understanding and usage without confusion.

    Tool Count4/5

    With 4 tools, the server is well-scoped for basic email management, covering creation, retrieval, listing, and updating. It's slightly lean but reasonable, as it handles core CRUD operations without unnecessary bloat.

    Completeness4/5

    The tool set covers essential CRUD operations for emails (create, get, list, update), with no dead ends. A minor gap exists in lacking a delete_email tool, but agents can work around this, and the surface supports core workflows effectively.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers