ScriptsMay 11, 2026·2 min read

langchain-mcp-adapters — MCP Tools in LangGraph

Use MCP servers inside LangChain/LangGraph by loading MCP tools into agents via MultiServerMCPClient, without writing one-off wrappers per server.

Agent ready

This asset can be read and installed directly by agents

TokRepo exposes a universal CLI command, install contract, metadata JSON, adapter-aware plan, and raw content links so agents can judge fit, risk, and next actions.

Stage only · 29/100Stage only
Agent surface
Any MCP/CLI agent
Kind
Script
Install
Single
Trust
Trust: Established
Entrypoint
README.md
Universal CLI install command
npx tokrepo install d814e244-7701-4e98-ac46-cd4f55dbbc02
Intro

Use MCP servers inside LangChain/LangGraph by loading MCP tools into agents via MultiServerMCPClient, without writing one-off wrappers per server.

  • Best for: LangGraph builders who want to reuse MCP tools across agents with a single client layer
  • Works with: Python, LangChain/LangGraph, MCP servers over stdio/HTTP/SSE (per repo docs)
  • Setup time: 12 minutes

Quantitative Notes

  • GitHub stars (verified): see Source & Thanks
  • GitHub forks (verified): see Source & Thanks
  • Setup time ~12 minutes (Python env + one demo server)

Practical Notes

Treat MCP as your tool surface, and LangGraph as your orchestration surface. A practical pattern is: (1) run one MCP server locally (stdio) for filesystem or a custom tool, (2) connect via MultiServerMCPClient, (3) feed the resulting tool list into a tool-aware agent. Once that works, add a second server and verify tool names, permissions, and error handling. TokRepo related reading: https://tokrepo.com/en/topics

Safety note: Keep MCP connections scoped (servers, tools, env vars). Don’t forward unrestricted shell/file tools into production agents.

FAQ

Q: What does it actually do? A: It converts MCP tools into LangChain-compatible tools, so LangGraph agents can call them like any other tool node.

Q: Can it connect to multiple MCP servers? A: Yes. You can configure multiple server connections and load tools across them in one client.

Q: How do I avoid tool name collisions? A: Prefix tool names per server (or enable the library option) so search from different servers stays unique.


🙏

Source & Thanks

GitHub: https://github.com/langchain-ai/langchain-mcp-adapters Owner avatar: https://avatars.githubusercontent.com/u/126733545?v=4 License (SPDX): MIT GitHub stars (verified via api.github.com/repos/langchain-ai/langchain-mcp-adapters): 3,526 GitHub forks (verified via api.github.com/repos/langchain-ai/langchain-mcp-adapters): 424

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets