n8n MCP OAuth2 Bug with HubSpot MCP OAuth v3: Practical Workarounds and Risk Controls
A reported bug prevents n8n's MCP OAuth2 API credential from performing HubSpot MCP OAuth v3 token exchanges, while MCP Inspector succeeds. The issue disrupts integrations that rely on the newer HubSpot token exchange flow and highlights the complexities of evolving OAuth flows. Teams should apply short-term workarounds and plan for credential compatibility testing in CI pipelines to avoid production outages.
The n8n community report describes an incompatibility between n8n's MCP OAuth2 API credential implementation and HubSpot's MCP OAuth v3 token exchange endpoint. The discrepancy becomes evident when comparing a successful request from HubSpot's MCP Inspector against n8n's failing request. In middleware and orchestration platforms like n8n, subtle differences in headers, request encodings, or token-exchange parameters can break the handshake, causing downstream automation to fail.
For engineering leaders, the immediate priorities are containment and a robust short-term workaround. Options include: (1) use MCP Inspector or a custom HTTP request node to perform the token exchange and persist the token into a credential store that n8n can consume; (2) pin to a previous supported HubSpot MCP flow until n8n releases a patch; or (3) contribute a patch or diagnostic logs to the n8n repo to accelerate resolution. Whichever path you choose, treat token exchange flows as critical integration points and instrument them with end-to-end tests.
Operationally, this incident reinforces three best practices. First, maintain a canonical compatibility matrix for third-party OAuth flows and n8n versions. Second, include token-exchange scenarios in CI integration tests that run against sandbox or staging endpoints. Third, configure alerting on authentication failures with contextual logs so engineering teams can rapidly triage and rollback misconfigurations.
Finally, for business leaders: consider vendor SLAs and the operational risk of relying on community-driven connectors for mission-critical workflows. Where uptime and security matter, budget for either commercial connectors with vendor support or in-house middleware with dedicated ownership to avoid single-point failures caused by protocol drift.
Original Source
n8n Community
