# to_fastmcp

> **Function** in `langchain_mcp_adapters`

📖 [View in docs](https://reference.langchain.com/python/langchain-mcp-adapters/tools/to_fastmcp)

Convert LangChain tool to FastMCP tool.

## Signature

```python
to_fastmcp(
    tool: BaseTool,
) -> FastMCPTool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `tool` | `BaseTool` | Yes | LangChain tool to convert. |

## Returns

`FastMCPTool`

FastMCP tool equivalent.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-mcp-adapters/blob/8f580f029fabd78891ea4dbfd1de3b1d9e4fa001/langchain_mcp_adapters/tools.py#L525)