Skip to content

HubSpot MCP Server

Enables Claude to interact with HubSpot CRM for sales analysis and insights, providing tools for managing contacts, deals, companies, and retrieving sales analytics data.

9
GitHub Stars
MIT
License
4
Weekly Downloads
automate.revenue_ops.personalizationanalyze.research.web_summary#environment:network#hosting:remote-capable

Install HubSpot MCP Server in your MCP client

HubSpot MCP Server is a Model Context Protocol server. Add it to your MCP client config once, restart, and the server's tools become available to your AI assistant. The same JSON snippet below works across all four major clients — only the config file path differs.

  1. Locate your client's MCP config file.
    • Cursor: ~/.cursor/mcp.json
    • Claude Desktop (macOS): ~/Library/Application Support/Claude/claude_desktop_config.json
    • Claude Desktop (Windows): %APPDATA%\Claude\claude_desktop_config.json
    • VS Code: Settings → Extensions → MCP
    • Windsurf: Settings → MCP Servers
  2. Add HubSpot MCP Server to the mcpServers map — paste the snippet below into your config file. If you already have other MCP servers, merge the entry into the existing mcpServers object.
  3. Restart your client so it picks up the new server.
  4. Verify — ask the assistant to list available tools; HubSpot MCP Server's tools should appear.
{
  "mcpServers": {
    "hubspot-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-hubspot"
      ],
      "env": {
        "HUBSPOT_API_KEY": "<your-hubspot-api-key>"
      }
    }
  }
}

Install HubSpot MCP Server in Cursor

Open ~/.cursor/mcp.json in your editor, paste the snippet above into mcpServers, save, and restart Cursor. HubSpot MCP Server will show up in the assistant's tool list on next launch.

Install HubSpot MCP Server in Claude Desktop (macOS)

Open ~/Library/Application Support/Claude/claude_desktop_config.json in your editor, paste the snippet above into mcpServers, save, and restart Claude Desktop (macOS). HubSpot MCP Server will show up in the assistant's tool list on next launch.

Install HubSpot MCP Server in Claude Desktop (Windows)

Open %APPDATA%\Claude\claude_desktop_config.json in your editor, paste the snippet above into mcpServers, save, and restart Claude Desktop (Windows). HubSpot MCP Server will show up in the assistant's tool list on next launch.

Install HubSpot MCP Server in VS Code

Open Settings → Extensions → MCP in your editor, paste the snippet above into mcpServers, save, and restart VS Code. HubSpot MCP Server will show up in the assistant's tool list on next launch.

npm package: @modelcontextprotocol/server-hubspot

Tools exposed by HubSpot MCP Server

Once installed, HubSpot MCP Server exposes the following MCP tools to your AI assistant. Each tool can be called directly by the assistant whenever its capability is relevant to your prompt.

  • hubspot_search_contacts

    Search for contacts in HubSpot using a query string.

  • hubspot_get_contact

    Get a specific contact by ID.

  • hubspot_create_contact

    Create a new contact in HubSpot.

  • hubspot_update_contact

    Update an existing contact in HubSpot.

  • hubspot_list_deals

    List deals in HubSpot with pagination.

  • hubspot_get_deal

    Get a specific deal by ID.

  • hubspot_create_deal

    Create a new deal in HubSpot.

  • hubspot_update_deal

    Update an existing deal in HubSpot.

  • hubspot_list_companies

    List companies in HubSpot with pagination.

  • hubspot_get_company

    Get a specific company by ID.

  • hubspot_get_sales_analytics

    Get aggregated sales analytics data for specific time periods.

  • hubspot_get_deal_history

    Get the complete history of changes to a deal.

  • hubspot_get_deal_notes

    Get notes associated with a specific deal.

  • hubspot_get_engagements_by_deal

    Get all engagement activities associated with a deal.

  • hubspot_get_sales_performance

    Get performance metrics for sales reps over a specific time period.

  • hubspot_get_pipeline_analytics

    Get analytics for a specific sales pipeline including conversion rates between stages.

  • hubspot_get_forecast_analytics

    Get forecasted sales data based on current pipeline and historical performance.

Required environment variables

HubSpot MCP Server needs the following environment variables set before it can run. Add them to the env block of your mcpServers entry, or export them in your shell before launching the client.

  • HUBSPOT_API_KEY

Create a HubSpot Private App and set appropriate scopes.

Transport

HubSpot MCP Server supports the following MCP transports. Most AI clients use stdio by default for locally-installed servers.

stdiossestreamable-http

Other Model Context Protocol servers in the same space as HubSpot MCP Server. Each one adds different capabilities to your AI assistant — pick based on the data sources or workflows you need.

Browse the full MCP server directory or use Stork's one-line install to let your agent pick the right server automatically.