Skip to main content

MCP Tools

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.

MCP Tools parameters

NameTypeDescription
mcp_serverStringInput parameter. The MCP server to connect to. Select from previously configured servers or add a new one.
toolStringInput parameter. The specific tool to execute from the connected MCP server. Leave blank to allow access to all tools.
use_cacheBooleanInput parameter. Enable caching of MCP server and tools to improve performance. Default: false.
verify_sslBooleanInput parameter. Enable SSL certificate verification for HTTPS connections. Default: true.
responseDataFrameOutput parameter. DataFrame containing the response from the executed tool.
Earlier versions of the MCP Tools component
  • In Langflow version 1.5, the MCP Connection component was renamed to the MCP Tools component.
  • In Langflow version 1.3, the MCP Tools (stdio) and MCP Tools (SSE) components were removed and replaced by the unified MCP Connection component, which was later renamed to MCP Tools.
Search