docs/versioned_docs/version-1.8.0/Components/mcp-tools.mdx
import Icon from "@site/src/components/icon"; import PartialParams from '@site/docs/_partial-hidden-params.mdx';
The MCP Tools component connects to a Model Context Protocol (MCP) server and exposes the MCP server's functions as tools for Langflow agents to use to respond to input.
In addition to publicly available MCP servers and your own custom-built MCP servers, you can connect Langflow MCP servers, which allow your agent to use your Langflow flows as tools. To do this, use the MCP Tools component's HTTP/SSE mode to connect to your Langflow project's MCP server.
For more information, see Use Langflow as an MCP client and Use Langflow as an MCP server.
:::tip Tool mode is missing If you're upgrading an existing flow and the MCP Tools component loses its Tool Mode option, see MCP Tools component loses Tool Mode option after upgrading flows. :::
| Name | Type | Description |
|---|---|---|
| mcp_server | String | Input parameter. The MCP server to connect to. Select from previously configured servers or add a new one. |
| tool | String | Input parameter. The specific tool to execute from the connected MCP server. Leave blank to allow access to all tools. |
| use_cache | Boolean | Input parameter. Enable caching of MCP server and tools to improve performance. Default: false. |
| verify_ssl | Boolean | Input parameter. Enable SSL certificate verification for HTTPS connections. Default: true. |
| response | DataFrame | Output parameter. DataFrame containing the response from the executed tool. |