Fix Cursor MCP problems when connecting to Metorial
Fix a Metorial MCP server in Cursor that will not sign in, shows no tools, or fails tool calls, using MCP Logs, the Customize panel, and portal redirects.
Open the Output panel in Cursor (Cmd+Shift+U on macOS, Ctrl+Shift+U on Windows and Linux) and select MCP Logs. The log shows whether Metorial initialized, whether the sign-in succeeded, and the error text of failed tool calls.
What you'll learn
- How to fix a sign-in that never completes
- Why Metorial or its tools do not show up in Cursor
- How to remove and add Metorial again
Before you start
- Metorial in
~/.cursor/mcp.jsonor.cursor/mcp.json(Connect Cursor) - For the Metorial checks, the CLI:
npm install -g @metorial/cli, thenmetorial login - For portal changes, the admin CLI:
npm install -g @metorial/admin, thenmetorial-admin login
Sign-in
redirect_uri is not allowed for this portal
The sign-in page opens and Cursor stays signed out, or Metorial shows this error. The portal does not allow the address Cursor returns to. Cursor's docs list two fixed redirect URLs:
| Surface | Redirect URL | Portal option that covers it |
|---|---|---|
| Desktop app | http://localhost:8787/callback | Localhost apps (http://localhost:*/*) |
| Web and Cursor Agents | https://www.cursor.com/agents/mcp/oauth/callback | Secure web apps (https://*/*) |
Cursor's docs say the desktop app registers both URLs and can send the web one, so enable both. A portal admin does that in Settings, Client Settings, under Allowed OAuth Redirects. From the CLI:
The command replaces the portal's whole list. Run portals get first and add the patterns your other clients still need. Then open Customize in Cursor, find Metorial, and sign in again.
The portal describes a third option, Native app deeplinks (*://*), as "needed to support tools, like Cursor". It allows a return through a custom protocol link. Add it only if the redirect_uri in the authorize URL uses a custom protocol, or the error persists with the two options above.
Invalid redirect URI
The callback in the sign-in request is not one of the addresses Cursor registered with Metorial. Remove Metorial in Customize, then MCPs, add it again so Cursor registers a new client, and sign in.
Cursor asks you to sign in again
Cursor renews the sign-in with the refresh token Metorial issued. The renewal fails after 30 days without use, or when the token is revoked in Metorial. Open Customize, find Metorial, and sign in.
Cloud Agents are signed out but the desktop app works
Cloud Agents keep their own MCP sign-ins on Cursor's servers. In Customize, sign in on the server's Cloud row. Cloud Agents return through the https://www.cursor.com callback, which Secure web apps covers.
Server and tools
Metorial does not appear in Cursor
Cursor reads ~/.cursor/mcp.json for every project and .cursor/mcp.json for one project. The file has to be valid JSON in this shape:
Then open Customize, then MCPs, and turn the toggle next to Metorial on. A disabled server does not load.
Your company blocks the server
On Cursor Enterprise, remote MCP servers are limited to the URL patterns an admin approved. An Enterprise admin opens Team Settings, then MCP Configuration, and adds a URL entry that matches your Magic MCP URL. Approval does not install the server, so each developer still adds it to mcp.json.
Metorial is connected but shows no tools
The sign-in succeeded and Metorial serves nothing to this client. Check what your account can use:
If metorial list is empty, connect an integration with metorial setup. Then remove Metorial in Customize, add it again, and select the integration on the consent screen.
One tool is missing in a chat
Cursor lets you switch tools off per chat. Click the tool's name in the tools list at the top of the chat panel to turn it back on. If the tool is not in that list, a Metorial tool filter rejects it. Ask the agent to call metorial_connection_status, which marks such tools as blocked.
A tool call is marked as failed
Cursor shows the error in chat and keeps other MCP servers running. Expand the call and read the error text. To see whether the tool fails outside Cursor, call it from a terminal:
An admin finds the failed call with metorial-admin sessions tool-calls list --search <tool-key> --limit 10.
Start over
Toggle the server
Open Customize, then MCPs, and switch Metorial off and on.
Remove and add it again
Remove Metorial in Customize, then MCPs, and add the mcp.json entry again. Cursor registers with Metorial again and asks you to sign in.
Check it worked
Ask the agent to use one of your integrations. Cursor shows the tool call with its arguments and result, and MCP Logs shows no errors for Metorial.
To connect one integration without the browser sign-in, install it with the Metorial CLI. It creates a long-lived MCP token for that integration:
Next steps
- Sign-in and OAuth errors: Metorial's side of the sign-in
- Tools are missing: why Cursor sees fewer tools than you expect
- Tool calls fail: what each tool call error means