AI Agents · Concept
MCP Client
MCP lets LangChain agents use tools provided by one or more MCP servers. In the JavaScript 1.x adapter, MultiServerMCPClient discovers those tools and supports local stdio and remote HTTP connections.
Last updated
Syntax
new MultiServerMCPClient({ serverName: { transport: "stdio" | "http", ... } });
const tools = await client.getTools();In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Model Context Protocol (MCP)MultiServerMCPClientMCP ClientSessioncreateAgentLangSmith tracing