Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMay 11, 2026·2 min de lecture

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.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Asset
Commande d'installation directe
npx -y tokrepo@latest install d814e244-7701-4e98-ac46-cd4f55dbbc02 --target codex

À exécuter après confirmation du plan en dry-run.

Introduction

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 et remerciements

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

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires