New Tool Radar

AI Agents & Automation

How to Connect a Langflow Agent to an MCP Server for Extra Tools

Use Langflow as an MCP client so an agent flow can call tools from an MCP server it could not reach on its own.

Schematic diagram with three steps: Open the MCP client, Add the server, then Call a server tool.

An agent can only call the tools on its own canvas, but an MCP server can expose tools from another system entirely. Langflow can act as an MCP client, calling MCP servers from components on the canvas, so the agent gains tools without a custom component for each one.

Before you start

You need a working Langflow agent flow and the address of an MCP server you are allowed to use, plus any key it needs. Check the server tool list before you connect it, and only connect servers you trust with the data the agent will send.

Connect the server through the MCP client

Open the Langflow MCP client settings and add the server with its address and credentials. Save the settings and check the server appears as connected. The Langflow documentation also describes the LFX MCP server, which works the other way: it lets a coding agent build flows on a running Langflow instance.

Give the agent one server tool and test it

Add the server tool component to the flow and connect it to the Agent component. Ask the agent a question that needs that tool, and check the reply uses the tool result. If the agent ignores the tool, check the tool description: the model only calls a tool it understands.

Worked example: One server tool for a fictional docs desk

Maple Docs is a fictional documentation desk. Its Langflow agent calls a docs search tool from an MCP server. The table shows the call.

Step What happens
1 User asks where the refund policy is documented
2 Agent calls the MCP docs search tool
3 Tool returns the policy page path
4 Agent replies with the page path and a short summary

Expected result (UNTESTED): the question produces one MCP tool call and a reply that names the policy page the tool returned. We checked the Langflow MCP documentation, which describes Langflow as an MCP client and the LFX MCP server, but we did not connect a server on a live Langflow instance.

Limits

An MCP server is a program with the access its credentials carry, so a careless connection hands the agent that access. Only connect servers you trust, keep their credentials private, and check the tool list after every server update, because a new tool can appear without warning.

Sources

See all