Fixes › Claude Code

Claude Code: MCP server "has a url but no type"

Claude Code

The error

MCP server "<name>" has a "url" but no "type"; add "type": "http" (or "sse" / "ws") to this entry

Why it happens

Claude Code treats a JSON entry without a type as a local (stdio) server. Remote entries copied from Cursor or Claude Desktop instructions often have only a url, so Claude Code skips them. This applies to .mcp.json, ~/.claude.json and claude mcp add-json.

How to fix it

  1. Add "type": "http"
    streamable-http is also accepted as an alias for http. Use sse only for old SSE-only endpoints and ws for WebSocket (wss://) servers.
    {
      "mcpServers": {
        "linear": {
          "type": "http",
          "url": "https://mcp.linear.app/mcp"
        }
      }
    }
  2. Or let Claude Code write the entry
    claude mcp add --transport http saves the right fields for you.
    claude mcp add --transport http linear https://mcp.linear.app/mcp
  3. Check it loaded
    Run claude mcp list. The server should show a status such as ✔ Connected or ! Needs authentication; then run /mcp inside Claude Code to sign in.
    claude mcp list

Related servers

Sources