If your remote MCP server works in the Cursor IDE but the sign-in never starts from Grok Bot or cloud agents, this is what we checked on ours (TraderWAI, a trading MCP) until the Connect card worked:
- Public HTTPS, reachable from Cursor’s cloud. No VPN or IP allowlist: Grok Bot and cloud agents connect from Cursor’s servers, not from your machine.
- 401 with
resource_metadata. An unauthenticated request must return401withWWW-Authenticate: Bearer ... resource_metadata="https://your-server/.well-known/oauth-protected-resource". - Both discovery documents public:
/.well-known/oauth-protected-resourceand/.well-known/oauth-authorization-server, with aregistration_endpoint(dynamic client registration), PKCES256andtoken_endpoint_auth_methods_supportedincludingnone. - Redirect URI. Grok Bot and cloud agents register
https://www.cursor.com/agents/mcp/oauth/callback(the IDE uses a localhost one). If your server restricts redirect URIs, allow that one. - Refresh tokens. Bots run for days; without
refresh_tokenthe connection drops when the access token expires.
Then, in the Bot’s chat: Add the remote MCP server https://your-server and press Connect on the card.
If you want to see it working end to end, there’s a public template built on ours: TraderWAI Strategy Lab (TraderWAI Strategy Lab by Leonardo). You describe a trading strategy and it backtests it on 1-minute data and marks the trades on a chart. Free plan works.
Disclosure: I’m the founder of TraderWAI. Happy to answer questions about the OAuth setup.