Esta página se muestra en inglés. Una traducción al español está en curso.
ScriptsMay 11, 2026·2 min de lectura

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.

Listo para agents

Este activo puede ser leído e instalado directamente por agents

TokRepo expone un comando CLI universal, contrato de instalación, metadata JSON, plan según adaptador y contenido raw para que los agents evalúen compatibilidad, riesgo y próximos pasos.

Stage only · 29/100Stage only
Superficie agent
Cualquier agent MCP/CLI
Tipo
Script
Instalación
Single
Confianza
Confianza: Established
Entrada
README.md
Comando CLI universal
npx tokrepo install d814e244-7701-4e98-ac46-cd4f55dbbc02
Introducción

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.


🙏

Fuente y agradecimientos

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

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados