# get_mcp_tools

> **Function** in `deepagents_code`

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

Load MCP tools from a configuration file.

## Signature

```python
get_mcp_tools(
    config_path: str,
) -> tuple[list[BaseTool], MCPSessionManager | None, list[MCPServerInfo]]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `config_path` | `str` | Yes | Path to an MCP config file. |

## Returns

`tuple[list[BaseTool], MCPSessionManager | None, list[MCPServerInfo]]`

Tuple of `(tools_list, runtime_session_manager, server_infos)`.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/0412009c5441bef8d75a427e1da8909e33ab5b56/libs/code/deepagents_code/mcp_tools.py#L1552)