# MCPToolWrapper

> **Class** in `langchain_snowflake`

📖 [View in docs](https://reference.langchain.com/python/langchain-snowflake/mcp_integration/MCPToolWrapper)

Wrapper to make MCP tools compatible with LangChain's tool interface.

This wrapper handles the conversion between LangChain's tool calling format
and MCP's tool execution format, ensuring seamless integration.

## Signature

```python
MCPToolWrapper(
    self,
    mcp_tool,
    mcp_session,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `mcp_tool` | `unknown` | Yes | The MCP tool instance |
| `mcp_session` | `unknown` | Yes | The MCP session for tool execution |

## Constructors

```python
__init__(
    self,
    mcp_tool,
    mcp_session,
)
```

| Name | Type |
|------|------|
| `mcp_tool` | `unknown` |
| `mcp_session` | `unknown` |


## Properties

- `mcp_tool`
- `mcp_session`

## Methods

- [`run()`](https://reference.langchain.com/python/langchain-snowflake/mcp_integration/MCPToolWrapper/run)
- [`arun()`](https://reference.langchain.com/python/langchain-snowflake/mcp_integration/MCPToolWrapper/arun)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-snowflake/blob/fab0c716e9197e2afb7ee433491251a8ef12b9c4/libs/snowflake/langchain_snowflake/mcp_integration.py#L31)