Skip to content
masterclass Buddy

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.

Subscribe
  • MCP
  • MCPAdapter
  • createAgent
  • listTools
  • listResources
  • readResource
  • @langchain/mcp-adapters
  • Streamable HTTP

Source: Model Context Protocol (MCP). Checked 2026-11-03.