Hi HubSpot Devs
👋I’m currently trying to integrate the
@hubspot/mcp-server with
Cursor so I can run commands like “List my HubSpot contacts” directly from the IDE chat interface.
When I start the MCP server manually using PowerShell and set the
PRIVATE_APP_ACCESS_TOKEN like this: $env:PRIVATE_APP_ACCESS_TOKEN="<my-token>"; npx -y @hubspot/mcp-server
…it works fine — I see
Server connected. Waiting for requests…, so the token is definitely valid.
However, when I configure it to run through Cursor using the
.cursor/mcp.json file:
{
"mcpServers": {
"hubspot": {
"command": "npx",
"args": ["-y", "@hubspot/mcp-server"],
"env": {
"PRIVATE_APP_ACCESS_TOKEN": "<my-token>"
}
}
}
}
…and restart Cursor, I get the following error when trying to run a command like “List my HubSpot contacts”:
“The model returned an error. Try disabling MCP servers, or switch models.”
Has anyone successfully integrated HubSpot’s MCP server with Cursor? Any ideas on what could be going wrong here?
Thanks in advance!
🙏