Skip to content

Cursor OAuth login fails: resource URL doesn't match mcp.scrapegraphai.com #25

Description

@Prathyarthi

Connecting Cursor to https://mcp.scrapegraphai.com/mcp and signing in with OAuth fails.

Cursor expects the server to identify itself as https://mcp.scrapegraphai.com/mcp, but the server reports https://sgai-mcp-main.onrender.com/mcp instead. Because those don't match, the connection never completes:

Protected resource https://sgai-mcp-main.onrender.com/mcp does not match expected https://mcp.scrapegraphai.com/mcp (or origin)

This is easy to see with:

curl https://mcp.scrapegraphai.com/.well-known/oauth-protected-resource

That returns "resource": "https://sgai-mcp-main.onrender.com/mcp".

mcp.scrapegraphai.com already points at the Render app, so this looks like the public URL env var (MCP_PUBLIC_URL) is set to the Render hostname instead of the custom domain. Setting it to https://mcp.scrapegraphai.com should fix Cursor login.

Until then, passing an API key in headers still works and skips OAuth.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions