Skip to content
Docs

Creating a HubSpot MCP Auth App (OAuth 2.1)

This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.

Distilled from HubSpot’s own documentation: HubSpot MCP Server, plus the live authorization-server metadata and protected-resource metadata HubSpot serves for it. Retrieved 2026-08-22.

HubSpot’s MCP connector authenticates with an MCP Auth App, which is a different app type from the public apps used by HubSpot OAuth 2.0 (public apps). It speaks OAuth 2.1, requires PKCE, and has no scope configuration at all.

  1. In your HubSpot developer account go to Development → MCP Auth Apps (beta) and create an app.
  2. Copy the Client ID and Client secret into a Publicus OAuth client for provider hubspot.com, auth system mcp-oauth2.
  3. Under Redirect URLs, add the Publicus callback exactly: https://<your-host>/oauth/callback. HubSpot matches redirect URIs exactly, and rejects hosts it cannot resolve publicly — a .local development hostname will not work, so put a tunnel in front of local development.
  • No scopes. The authorization-server and protected-resource metadata both report scopes_supported: [], the app has no scope screen, and HubSpot’s own Installation URL Builder emits only client_id and redirect_uri. The descriptor therefore declares an empty default_scopes so no scope parameter is sent. What the token can reach is decided by the MCP connector, not by OAuth scopes.
  • PKCE is mandatory. Omitting code_challenge fails with “Authorization failed because the code challenge parameter is missing. PKCE is required for this authorization request.” This is the opposite of the public-app flow, where PKCE is not documented at all.
  • Different endpoints. Authorization and token live on the MCP host (mcp.hubspot.com/oauth/authorize/user, mcp.hubspot.com/oauth/v3/token), not on app.hubspot.com / api.hubapi.com.

HubSpot exposes mcp.hubspot.com plus the aliases mcp-eu1, mcp-na1 and mcp-na2. All of them return metadata naming https://mcp.hubspot.com as the issuer, so the descriptor defaults to the global host; the MCP Auth App UI builds install URLs against the region-specific alias. If authorization fails for a regionally-pinned portal, switch mcp_host to that portal’s alias.

Create an MCP server record with endpoint https://mcp.hubspot.com (the resource root is the Streamable HTTP transport — /mcp returns 404), transport http, and select this connection under Connection. Leave the legacy Auth token secret empty; the connection takes precedence and is the only one of the two that can refresh an expiring token.

Open Connections under Credentials, choose HubSpot, and pick HubSpot MCP Connector (OAuth 2.1). Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.

See also: HubSpot in the catalog.

This guide is maintained by Publicus and published under CC BY 4.0.