Skip to content
Claude Code, Codex and MCP3 min read

MCP server won't connect or shows no tools: the fix

✘ Failed to connect

Short answer

Start with claude mcp list or your app's MCP list: Failed to connect means the URL or transport is wrong or the server can't be reached; Needs authentication means the key is missing or a login is needed. A 401 means a wrong, expired or revoked key, and 429 means too many requests in a minute. If the server connects without its write tools, the key is read-only.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. What the problem means
  2. Common causes
  3. The fix, step by step
  4. Araby MCP’s messages and what they mean
  5. Prevention
  6. On ArabyHost

What the problem means

A remote MCP server is an HTTPS URL your AI app connects to in order to discover and call its tools, usually with a key in an Authorization header. If any of the three, the URL, the transport or the key, is wrong, the connection fails or connects with no tools.

In Claude Code, claude mcp list shows each server’s status:

Status Meaning
✔ Connected Connected and working
! Needs authentication It needs a key or a login
✘ Failed to connect It couldn’t reach the server: URL, transport or network

Common causes

  • The wrong URL: missing /mcp at the end, or http instead of https.
  • The wrong transport: the server speaks HTTP and you added it as SSE or as a local command.
  • A missing or malformed key: the header must be Authorization: Bearer YOUR_KEY.
  • An expired or revoked key: its term ended, you revoked it, or you changed your account password.
  • The app wasn’t restarted after you changed its settings.
  • Too many requests: the per-minute limit, or several tools running at once.

The fix, step by step

  1. Read the status: claude mcp list in Claude Code, or the MCP page in Cursor.
  2. Add it again in the right form in Claude Code:
claude mcp remove arabyhost
claude mcp add --transport http arabyhost https://panel.arabyhost.com/mcp --header "Authorization: Bearer YOUR_KEY"
claude mcp list
  1. In Cursor, check ~/.cursor/mcp.json: the URL under url, the key under headers, then restart Cursor.
  2. Test the key: if it expired or was revoked, create a new one.
  3. If tools are missing: check the key’s permission; a read-only key doesn’t list write tools.

Araby MCP’s messages and what they mean

Message Meaning Fix
401 invalid_token The key is wrong, expired or revoked Create a key under Connect your AI
403 access_denied Your phone number isn’t confirmed yet Confirm it in the panel
429 More than 60 requests in a minute Wait a minute, then carry on
Too many requests running at once More than two calls at the same time Wait for the previous one to finish
This key is read-only The key can only read Create a key with change permission

Prevention

  • One key per app and per device, named after where it’s used, so you can revoke one without the rest.
  • Start with a read-only key, and give change permission only when needed.

On ArabyHost

Araby MCP comes with every plan: you create the key on the Connect your AI page in the panel, pick the hosting account, permission and term, and copy the ready Claude Code command or Cursor settings. Claude on the web and ChatGPT connect with the server URL directly, and you approve them in the panel. Details in connecting Claude, connecting Cursor and connecting Codex.

FAQ

Do I restart the app after adding an MCP server?

In Cursor, Claude Desktop and most apps, yes: they read MCP settings at start. In Claude Code, starting a new session is enough, and /mcp shows the server's status.

The server is connected but the AI doesn't use it. Why?

Ask it clearly to use the server's tools by name, and check the tools are enabled in the app's settings. Some apps hide a new server's tools until you approve them.

Should I put the key in a project file?

No. Put it in your own app settings: a .mcp.json inside the project can end up in Git and hand your key to others.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.