---
id: langflow-caps-the-sdk-below-mcp-2
title: Langflow requires mcp below 2 for its client and pins the servers it launches below 2 as well
kind: gap
summary: lfx and langflow-base require mcp>=1.30.0,<2.0.0 and lock 1.30.0, which proposes 2025-11-25, so 2026-07-28 is unreachable. Langflow also injects --with mcp~=1.28 into every uvx server it launches, because mcp-proxy and mcp-composer fail to import under the 2.0 SDK.
capabilities:
  - transports.stdio
  - transports.streamableHttp
clients:
  - langflow
specVersions:
  - 2025-11-25
  - 2026-07-28
sources:
  - url: https://github.com/langflow-ai/langflow
    title: src/lfx/pyproject.toml, the mcp requirement of lfx
    commit: 2b6faa1c
    path: src/lfx/pyproject.toml
    date: 2026-11-27
  - url: https://github.com/langflow-ai/langflow
    title: src/backend/base/pyproject.toml, the mcp requirement of langflow-base and its mcp extra
    commit: 2b6faa1c
    path: src/backend/base/pyproject.toml
    date: 2026-11-27
  - url: https://github.com/langflow-ai/langflow
    title: uv.lock, mcp 1.30.0
    commit: 2b6faa1c
    path: uv.lock
    date: 2026-11-27
  - url: https://github.com/langflow-ai/langflow
    title: pyproject.toml, [tool.uv] constraint and override lists with no mcp entry
    commit: 2b6faa1c
    path: pyproject.toml
    date: 2026-11-27
  - url: https://github.com/langflow-ai/langflow
    title: src/lfx/src/lfx/base/mcp/uvx.py, the injected SDK constraint and its reason
    commit: 2b6faa1c
    path: src/lfx/src/lfx/base/mcp/uvx.py:DEFAULT_MCP_SDK_CONSTRAINT,mcp_sdk_constraint_args
    date: 2026-11-27
  - url: https://github.com/langflow-ai/langflow
    title: src/lfx/src/lfx/services/settings/groups/mcp.py, LANGFLOW_MCP_SDK_CONSTRAINT
    commit: 2b6faa1c
    path: src/lfx/src/lfx/services/settings/groups/mcp.py:McpSettings
    date: 2026-11-27
  - url: https://github.com/langflow-ai/langflow
    title: src/backend/base/langflow/api/utils/mcp/config_utils.py, the uvx mcp-proxy entry written for each user's starter project
    commit: 2b6faa1c
    path: src/backend/base/langflow/api/utils/mcp/config_utils.py:auto_configure_starter_projects_mcp
    date: 2026-11-27
  - url: https://pypi.org/project/mcp/1.30.0/
    title: mcp 1.30.0, LATEST_PROTOCOL_VERSION and SUPPORTED_PROTOCOL_VERSIONS
    path: mcp/types.py
    date: 2026-11-20
status: current
lastVerified: 2026-11-27
related:
  - langflow-speaks-mcp-through-its-own-sdk-wrapper
  - crewai-caps-the-sdk-below-mcp-2
canonical: https://canimcp.io/research/langflow-caps-the-sdk-below-mcp-2
last-updated: 2026-11-27
---

> **Alpha: work in progress. canimcp is an alpha, built by one person and changing often. Statuses, notes and probe results may be incomplete or inaccurate, and pages, data and the API can change without notice. Check the cited source before relying on a claim, and send corrections through the [contact page](https://canimcp.io/contact).**

# 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](/clients/langflow.md) · 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

- [src/lfx/pyproject.toml, the mcp requirement of lfx](https://github.com/langflow-ai/langflow), commit `2b6faa1c`, `src/lfx/pyproject.toml`, 2026-11-27
- [src/backend/base/pyproject.toml, the mcp requirement of langflow-base and its mcp extra](https://github.com/langflow-ai/langflow), commit `2b6faa1c`, `src/backend/base/pyproject.toml`, 2026-11-27
- [uv.lock, mcp 1.30.0](https://github.com/langflow-ai/langflow), commit `2b6faa1c`, `uv.lock`, 2026-11-27
- [pyproject.toml, [tool.uv] constraint and override lists with no mcp entry](https://github.com/langflow-ai/langflow), commit `2b6faa1c`, `pyproject.toml`, 2026-11-27
- [src/lfx/src/lfx/base/mcp/uvx.py, the injected SDK constraint and its reason](https://github.com/langflow-ai/langflow), commit `2b6faa1c`, `src/lfx/src/lfx/base/mcp/uvx.py:DEFAULT_MCP_SDK_CONSTRAINT,mcp_sdk_constraint_args`, 2026-11-27
- [src/lfx/src/lfx/services/settings/groups/mcp.py, LANGFLOW_MCP_SDK_CONSTRAINT](https://github.com/langflow-ai/langflow), commit `2b6faa1c`, `src/lfx/src/lfx/services/settings/groups/mcp.py:McpSettings`, 2026-11-27
- [src/backend/base/langflow/api/utils/mcp/config_utils.py, the uvx mcp-proxy entry written for each user's starter project](https://github.com/langflow-ai/langflow), commit `2b6faa1c`, `src/backend/base/langflow/api/utils/mcp/config_utils.py:auto_configure_starter_projects_mcp`, 2026-11-27
- [mcp 1.30.0, LATEST_PROTOCOL_VERSION and SUPPORTED_PROTOCOL_VERSIONS](https://pypi.org/project/mcp/1.30.0/), `mcp/types.py`, 2026-11-20

## Related notes

- [langflow-speaks-mcp-through-its-own-sdk-wrapper](/research/langflow-speaks-mcp-through-its-own-sdk-wrapper.md)
- [crewai-caps-the-sdk-below-mcp-2](/research/crewai-caps-the-sdk-below-mcp-2.md)
