MCP LangChain Bridge

MCP LangChain Bridge

mcp-langchain-bridge•byarchimedes-market

A bridge library that turns existing LangChain chains, agents, and tools into an MCP server usable by MCP clients such as Claude Desktop and Cursor.

License: Not specified•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Generates each MCP tool's input schema automatically from a LangChain tool's args_schema using Pydantic v2.
  • •Supports configurable retry and backoff per tool, with circuit-breaker behavior on repeated failures.
  • •Provides OpenTelemetry tracing on every tool call and can feed LangSmith when an API key is set.
  • •Validates tool results against Pydantic schemas before returning them to the agent.

BEST FOR

  • •Making existing RAG chains and agentic LangChain workflows callable from MCP clients without porting them to native MCP tool definitions.
  • •Keeping a LangChain or LangGraph stack while enabling integration with MCP hosts such as Claude Desktop.

ABOUT MCP-LANGCHAIN-BRIDGE

MCP LangChain Bridge is cataloged as an MCP server attributed to archimedes-market. A bridge library that turns existing LangChain chains, agents, and tools into an MCP server usable by MCP clients such as Claude Desktop and Cursor. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP LangChain Bridge are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can I control how long each tool call is allowed to run?

Yes, the bridge offers a per-tool execution timeout configurable via decorator or environment variable.

Are streaming chain responses supported?

Streaming responses from chains are buffered into the MCP response since the MCP spec does not yet support streaming for tool calls, so long-running chains should be checkpointed externally.

上游原版 README

在 GitHub 查看同一版本原文

README.md · e60ff2e0f155 · 采集于 2026-11-13 12:04:31 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Archimedes Trust Report — VERIFIED 92/100

Verified asset on Archimedes Market. View the full 4-dimension Trust Report (security · quality · license · complexity) and the curated catalog on the asset page.


MCP LangChain Bridge

Expose any LangChain chain, agent, or tool as an MCP server. The point is to take orchestration logic that already exists in LangChain — RAG chains, agentic workflows, custom tools — and make it agent-callable from Claude Desktop, Cursor, or any MCP client.

What you get

  • Auto-schema: each LangChain tool's args_schema becomes the MCP tool's input schema. Pydantic v2 generation built in.
  • Retry policies: configurable retry/backoff per tool, with circuit-breaker behavior on persistent failures.
  • Timeouts: per-tool execution timeout, configurable via decorator or env var.
  • Tracing: OpenTelemetry spans on every tool call. Drops into LangSmith if LANGSMITH_API_KEY is set.
  • Output validation: results validated against Pydantic schemas before returning to the agent.

Usage

from mcp_langchain_bridge import bridge
from langchain_community.tools import DuckDuckGoSearchRun, WikipediaQueryRun

server = bridge.create_server(
    name="research-tools",
    tools=[
        DuckDuckGoSearchRun(),
        WikipediaQueryRun(),
        # Any LangChain BaseTool subclass works
    ],
    retry={"max_attempts": 3, "backoff": "exponential"},
    timeout=30.0,
)

server.run()

Why this matters

LangChain has the largest tool ecosystem in the agent space. MCP has the cleanest agent-host integration. Bridging the two avoids rewriting in either direction:

  • You don't need to port your retrieval chain to native MCP tool definitions
  • You don't need to abandon Claude Desktop because your existing stack is LangChain
  • LangGraph state machines remain unchanged — the MCP layer wraps the entrypoint

Limitations

  • Streaming responses from chains are buffered into the MCP response (MCP spec doesn't yet support streaming for tool calls). Long-running chains should be checkpointed externally.
  • LangChain custom callback handlers fire as expected, but UI updates targeted at notebook environments won't surface to the MCP client.

License

MIT.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP LangChain Bridge from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-langchain-bridge)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent