LangChainGo MCP Adapter
@i2y
关于 LangChainGo MCP Adapter
A Go adapter that bridges LangChain Go tools with Model Context Protocol (MCP) servers.
概览
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.
智能体框架 分类下的更多 MCP 客户端
Hermes MCP
cloudwalkElixir Model Context Protocol (MCP) SDK
Computer Use AI SDK
mediar-aiMCPHost 🤖
mark3labsA CLI host application that enables Large Language Models (LLMs) to interact with external tools through the Model Context Protocol (MCP).
Open MCP Client
copilotkit🚀 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
评论