LangChainGo MCP Adapter
@i2y
About LangChainGo MCP Adapter
A Go adapter that bridges LangChain Go tools with Model Context Protocol (MCP) servers.
Overview
What is LangChainGo MCP Adapter?
A Go adapter that bridges LangChain Go tools with Model Context Protocol (MCP) servers. It implements the necessary interfaces to integrate MCP tools seamlessly with LangChain Go’s agent infrastructure.
How to use LangChainGo MCP Adapter?
Install via go get github.com/i2y/langchaingo-mcp-adapter, then create an MCP client (e.g., using stdio), initialize the adapter with that client, retrieve tools via adapter.Tools(), and pass them to a LangChain Go agent executor. A complete example is available in the example/agent directory.
Key features of LangChainGo MCP Adapter
- Connect to any MCP server
- Automatically discover MCP tools from a specified server
- Wrap MCP tools as LangChain Go tools
- Works with standard LangChain Go agent patterns
Use cases of LangChainGo MCP Adapter
- Use custom MCP tools in LangChain Go agents
- Integrate external data‑analysis MCP servers with LLM agents
- Build Go applications that leverage MCP server ecosystems
FAQ from LangChainGo MCP Adapter
What is the LangChainGo MCP Adapter?
It is a Go library that lets you use tools defined on an MCP server as native LangChain Go tools, enabling LangChain Go agents to invoke MCP server capabilities.
How do I install it?
Run go get github.com/i2y/langchaingo-mcp-adapter. The adapter requires Go 1.23 or higher, as well as the langchaingo and mcp-go libraries.
Can I connect to any MCP server?
Yes. The adapter accepts any MCP client (e.g., stdio-based) and automatically discovers all tools from that server.
What license is this project under?
It is licensed under the MIT License. See the LICENSE file in the repository for details.
Are there any known limitations?
The README does not mention specific limitations, but the adapter currently relies on a stdio MCP client and is designed for Go‑based LangChain agents.
Basic information
More Agent Frameworks MCP clients
🚀 MCPOmni Connect - Universal Gateway to MCP Servers
Abiorh001MCPOmni Connect is an agent execution runtime that connects to multiple MCP servers via stdio, SSE, or streamable HTTP. It supports chat, autonomous agents, and planner-based orchestration treating each MCP server as a tool agent to enable dynamic multi-agent workflows across LLM
Where On-Device and Cloud LLMs Meet
hazyresearchBig & Small LLMs working together
DISCLAIMER
mario-andreschakMCP-Hub and -Inspector, Multi-Model Workflow and Chat Interface
Smolagents
huggingface🤗 smolagents: a barebones library for agents that think in code.
Saiki
truffle-aiA customizable, general purpose AI Agent that supports MCP. Talk to Saiki in natural language to control computers, applications and more!
Comments