mcp-langchain-bridge
Provides a search tool using DuckDuckGo to retrieve web search results.
Exposes LangChain chains, agents, and tools as MCP tools, enabling reuse of LangChain orchestration logic in MCP-compatible clients.
Allows LangGraph state machines to be used unchanged, with the MCP layer wrapping the entrypoint.
Provides a tool to query Wikipedia for information.
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.
Related MCP server: AutoMCP
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.
This server cannot be deployed
Maintenance
Related MCP Connectors
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceExposes LangChain and Anthropic Claude capabilities as tools for generating production-ready RAG systems, Supabase vector stores, and document ingestion pipelines. It enables users to instantly scaffold AI infrastructure and document processing code through natural language prompts in MCP-compatible clients.-
- AlicenseNot gradedqualityDmaintenanceAutomatically converts CLI tools, APIs, and programs into MCP servers for LLM and agentic use, enabling rapid integration without manual server implementation.1MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server exposing employee info retrieval and web search tools, designed to be consumed by a LangChain agent for decoupled tool execution.-
- FlicenseNot gradedqualityCmaintenanceA beginner-friendly demo project that builds and connects multiple MCP servers (Math and Weather) to a LangChain LLM agent, enabling tool-based interactions via standardized MCP protocol.-