Skip to content
masterclass Buddy

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.

Subscribe
  • Model Context Protocol (MCP)
  • MultiServerMCPClient
  • MCP ClientSession
  • createAgent
  • LangSmith tracing

Source: Model Context Protocol (MCP) with @langchain/mcp-adapters 1.x. Checked 2026-11-03.