# load_mcp_config

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/mcp_tools/load_mcp_config)

Load and validate MCP configuration from JSON file.

Supports multiple server types:

- stdio: Process-based servers with `command`, `args`, `env` fields (default)
- sse: Server-Sent Events servers with `type: "sse"`, `url`, and optional `headers`
- http: HTTP-based servers with `type: "http"`, `url`, and optional `headers`

## Signature

```python
load_mcp_config(
    config_path: str,
) -> dict[str, Any]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `config_path` | `str` | Yes | Path to MCP JSON configuration file (Claude Desktop format). |

## Returns

`dict[str, Any]`

Parsed configuration dictionary.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/88c2b5cb874dc1d093acf54d2a967ba6e085c99b/libs/cli/deepagents_cli/mcp_tools.py#L127)