Langflow requires mcp below 2 for its client and pins the servers it launches below 2 as well

Kind: gap · Status: current · Last verified: 2026-11-27 · Clients: langflow · Revisions: 2025-11-25, 2026-07-28

The client's requirement

At 21381e5b (Langflow 1.13.3), src/lfx/pyproject.toml and src/backend/base/pyproject.toml both list mcp>=1.30.0,<2.0.0 as a base dependency, and the mcp extra of langflow-base repeats it. uv.lock resolves mcp to 1.30.0. The SDK is not patched: the root [tool.uv] block has constraint-dependencies and override-dependencies lists with no mcp entry, [tool.uv.sources] names only workspace members, and the repository has no patch files or vendored copy of the SDK.

Langflow names no protocol revision. A git grep of the non-test client code finds no LATEST_PROTOCOL_VERSION, protocolVersion, 2026-07-28 or server/discover. Every session calls ClientSession.initialize(), and mcp 1.30.0 proposes 2025-11-25 and accepts 2024-11-05, 2025-03-26, 2025-06-18 and 2025-11-25 in the reply. No setting selects another SDK line, so 2026-07-28 is unreachable from an install that satisfies the requirement.

The servers it launches

lfx.base.mcp.uvx adds a second pin that applies to servers, not to the client. When Langflow itself launches a server through uvx, such as mcp-proxy for a project's own MCP server or mcp-composer, it splices --with mcp~=1.28 into the argv. The module's docstring gives the reason: uvx builds a fresh environment, those packages declare an unbounded mcp>=1.x, and the 2.0 SDK "removed request_ctx and renamed McpError, so those packages fail at import". The constraint is the setting mcp_sdk_constraint, env var LANGFLOW_MCP_SDK_CONSTRAINT, and an empty value turns the injection off. The setting's description says to do that "once upstream supports the 2.x SDK".

The arguments are spliced in where Langflow writes a server entry itself: the per-project uvx mcp-proxy --transport streamablehttp <url> entries that add_projects_to_mcp_servers (default on) adds to each user's MCP server list, the project MCP routes, and the MCP Composer service. A user who selects one of those project entries in the MCP Tools component gets a Langflow client on mcp 1.30.0 talking over stdio to mcp-proxy on an SDK in ~=1.28, which talks over Streamable HTTP to Langflow's own server. A stdio server a user registers by hand with uvx does not get the flag.

Not checked

I did not find an upstream issue or branch that tracks a move to mcp 2.x, and I did not search for one.

Sources