Remote MCP OAuth: token exchange HTTP 404 after Authorization complete (Elme / mcp.lmes.jp)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Cursor IDE 3.21.16 (arm64), macOS 15.6.1

Remote MCP OAuth to L Message / Elme.

MCP URL: https://mcp.lmes.jp/mcp

Browser OAuth succeeds (“Authorization complete!”).
Callback was localhost:8787/callback (desktop).
Then Cursor fails:

OAuth token exchange failed: HTTP 404
Raw body: {“status”:false,“error”:{“code”:404,“message”:“”}}

Token host from OAuth discovery: step.lme.jp (api/mcp/oauth/token).
MCP stays Error; Logout becomes disabled.

Steps:

  1. Add remote MCP with the URL above
  2. Authenticate in browser, allow Elme access
  3. See Authorization complete
  4. Cursor shows token exchange HTTP 404

Expected: MCP Connected with tools, or clear auth error (not stuck Error / disabled Logout).

Does this stop me from using Cursor? No - Cursor works, but with this issue.

Is Cursor expected to work with third-party remote MCP OAuth?
Any known issue with token exchange against a separate authorization host?

Steps to Reproduce

  1. Add remote MCP in Customize → MCPs: url https://mcp.lmes.jp/mcp
  2. Authenticate / connect (browser opens)
  3. Log in to Elme and allow access
  4. Browser shows “Authorization complete!”
  5. Return to Cursor → Error: OAuth token exchange failed HTTP 404 (body above)

Expected Behavior

After Authorization complete, Cursor should finish token exchange and show the MCP as Connected with tools enabled (or a clear auth error, not a stuck Error with Logout disabled).

Operating System

MacOS

Version Information

Cursor IDE 3.21.16 (arm64)
macOS 15.6.1

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey @siosio,

Yes, Cursor should work with third-party OAuth MCP servers, including ones that sign in on a separate host. What you’re seeing isn’t intended behavior, and it’s not caused by your setup. We’ve let the team know.

In the meantime, you should be able to connect through the mcp-remote bridge (needs Node.js). In ~/.cursor/mcp.json, replace the Elme entry with:

{
  "mcpServers": {
    "elme": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.lmes.jp/mcp"]
    }
  }
}

Let me know if that connects!

Hey @mohitjain — thank you so much for the clear workaround.

I switched the Elme entry to mcp-remote (with Node.js installed), re-authenticated, and it connected successfully. Status is green and tools are enabled (about 100+).

One small note for others on Apple Silicon Homebrew: if npx isn’t on PATH inside Cursor, using the full path /opt/homebrew/bin/npx in mcp.json worked for me.

Really appreciate you looping in the team and sharing this bridge so quickly.