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
- Add "type": "http"
streamable-httpis also accepted as an alias forhttp. Usesseonly for old SSE-only endpoints andwsfor WebSocket (wss://) servers.{ "mcpServers": { "linear": { "type": "http", "url": "https://mcp.linear.app/mcp" } } } - Or let Claude Code write the entry
claude mcp add --transport httpsaves the right fields for you.claude mcp add --transport http linear https://mcp.linear.app/mcp - Check it loaded
Runclaude mcp list. The server should show a status such as✔ Connectedor! Needs authentication; then run/mcpinside Claude Code to sign in.claude mcp list
Related servers
Productivity● Vendor-hosted
Linear
Linear's official hosted MCP server for finding, creating and updating Linear issues, projects, comments and documents. It uses Streamable HTTP at htt
Hosted by the vendor · no install · 🔑 auth
Productivity● Maintained
Atlassian (Jira & Confluence)
Atlassian's official hosted MCP server for Jira, Confluence, Jira Service Management, Bitbucket, Compass and Loom. Atlassian recommends the v2 endpoin
★ 1.2k · updated 2026-11-14 · 🔑 auth
Productivity● Maintained
Notion
Official Notion MCP Server
★ 4.7k · updated 2026-10-29 · 🔑 auth
Sources
- https://code.claude.com/docs/en/mcp
- MCP config: misleading error when server is missing `type` field; `transport` not inferred as substitute (GitHub issue, 1 comments)
- [BUG] Invalid MCP entry in ~/.claude.json: unattributable error, paused transcript cleanup, and an agent permission-prompt loop (GitHub issue, 4 comments)