langchain-mcp
@rectalogic
About langchain-mcp
Model Context Protocol tool support for LangChain
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"langchain-mcp": {
"command": "uv",
"args": [
"run",
"tests/demo.py",
"Read and summarize the file ./LICENSE"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is langchain-mcp?
langchain-mcp provides Model Context Protocol (MCP) tool calling support within LangChain. It enables LangChain applications to use tools exposed by any MCP server by wrapping them as LangChain BaseTool instances. This is for developers building LangChain-based agents or chains that need to call external tools via the MCP standard.
How to use langchain-mcp?
Create a langchain_mcp.MCPToolkit by passing it an mcp.ClientSession, then call await toolkit.initialize() followed by toolkit.get_tools() to retrieve a list of LangChain BaseTools. The toolkit handles the MCP client‑server lifecycle and tool discovery.
Key features of langchain-mcp
- Integrates MCP tool calling into LangChain workflows
- Exposes an async
MCPToolkitclass for session management - Automatically converts MCP tools into
BaseToolobjects - Works with any MCP server that communicates over a
ClientSession
Use cases of langchain-mcp
- Adding filesystem, database, or API tools from MCP servers to a LangChain agent
- Combining MCP tools with LangChain’s chat models and chains in a unified pipeline
FAQ from langchain-mcp
Is this the official LangChain MCP integration?
No. LangChain now has a more official implementation called langchain-mcp-adapters. This repository is a community alternative.
What does langchain-mcp require?
It requires Python and can be installed via PyPI as langchain-mcp. The demo also uses the uv tool for running.
How do I run the included demo?
Set the GROQ_API_KEY environment variable and execute uv run tests/demo.py "Read and summarize the file ./LICENSE" (or equivalent) against an MCP filesystem server.
Does langchain-mcp support authentication or transport customization?
—
Frequently asked questions
Is this the official LangChain MCP integration?
No. LangChain now has a more official implementation called `langchain-mcp-adapters`. This repository is a community alternative.
What does langchain-mcp require?
It requires Python and can be installed via PyPI as `langchain-mcp`. The demo also uses the `uv` tool for running.
How do I run the included demo?
Set the `GROQ_API_KEY` environment variable and execute `uv run tests/demo.py "Read and summarize the file ./LICENSE"` (or equivalent) against an MCP filesystem server.
Basic information
More AI & Agents MCP servers
BlazingCDN MCP - Content Delivery for Video, Software & Static Files
BlazingCDNOfficial MCP server for BlazingCDN - AI agents (Claude, Cursor, Windsurf) manage CDN resources, purge cache, query metrics, domains, Anycast CDN, Video CDN and Media CDN
早起鸟儿喊真人验真
shenshaoyin早起鸟儿喊真人验真 is a remote MCP server available at http://121.40.18.232.
GetIntel
tarang8811Public docs + tool manifest for the GetIntel MCP connector (app.getintel.ai)
21st.dev Magic AI Agent
21st-devIt's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic
1Panel
1Panel-dev🔥 1Panel is a modern, open-source VPS control panel — and the only one with native AI agent support. Run Ollama models, deploy OpenClaw agents, and manage your entire server stack from one clean web interface.
Comments