mcp-langchain-bridge
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
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_schemabecomes 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_KEYis 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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.