AI Agents · Concept
MCP Server
MCPAdapter connects LangChain agents to MCP servers. It discovers their tools and makes them available to the agent.
Last updated
Syntax
new MCPAdapter({ servers });
await adapter.listTools();
await adapter.close();In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
MCPMCPAdaptercreateAgentlistToolslistResourcesreadResource@langchain/mcp-adaptersStreamable HTTP