Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Langchain Bridge

FreeNot checked

Expose any LangChain chain, agent, or tool as an MCP server — schema-aware tool registration, tool-call tracing, structured output validation. Bridges LangChain

GitHubEmbed

About

Expose any LangChain chain, agent, or tool as an MCP server — schema-aware tool registration, tool-call tracing, structured output validation. Bridges LangChain into Claude/Cursor/Windsurf. Curated by Archimedes Market with a verified Trust Report.

README

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.

from github.com/archimedes-market/mcp-langchain-bridge

Install Langchain Bridge in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install mcp-langchain-bridge

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add mcp-langchain-bridge -- uvx --from git+https://github.com/archimedes-market/mcp-langchain-bridge mcp-langchain-bridge

FAQ

Is Langchain Bridge MCP free?

Yes, Langchain Bridge MCP is free — one-click install via Unyly at no cost.

Does Langchain Bridge need an API key?

No, Langchain Bridge runs without API keys or environment variables.

Is Langchain Bridge hosted or self-hosted?

A hosted option is available: Unyly runs the server in the cloud, no local setup required.

How do I install Langchain Bridge in Claude Desktop, Claude Code or Cursor?

Open Langchain Bridge on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Langchain Bridge with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs