Skip to content
BENIBIX Learn

claude mcp add-json Command

Also known as claude mcp add-json, claude mcp add-from-claude-desktop

It adds an MCP server from a block of JSON.

Think of it like

It is like you copy the whole note in one go. You do not copy it word by word.

Example

A server's guide gives Emma a JSON block with a URL and two headers. She pastes it into claude mcp add-json, and the server is added in one step.

Why it matters

You can paste what the guide gives you, and not turn it into flags by hand.

Definition

claude mcp add-json adds an MCP server from a block of JSON. Many server guides give you that block. Pass a name, then the JSON for that one server. It is handy when a server needs headers or sign-in details that are long to type as flags. claude mcp add-from-claude-desktop copies servers you set up in Claude Desktop.

Example code

bash
claude mcp add-json weather '{"type":"http","url":"https://api.example.com/mcp"}'
Add a server from its JSON.
add-json takes --scope too, and lands in one of these boxes.

Common mistake

Pasting the whole mcpServers wrapper. Pass only the object for the one server, not the block around it.

Key takeaways

  1. 1
    One server's JSON. Not the wrapper.
  2. 2
    Good for long setups. Headers and sign-in.
  3. 3
    From Claude Desktop. A copy command too.

Learn it properly