LangChain · Class
MultiServerMCPClient
MultiServerMCPClient connects to multiple MCP servers. It loads their tools, prompts, and resources for use with LangChain.
Last updated
- Since
- v0.0
Syntax
MultiServerMCPClient(self, connections: dict[str, Connection] | None = None, *, callbacks: Callbacks | None = None, tool_interceptors: list[ToolCallInterceptor] | None = None, tool_name_prefix: bool = False, handle_tool_errors: bool = True)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
CallbacksToolCallInterceptorConnectioncreate_sessionload_mcp_toolsload_mcp_promptload_mcp_resourcesload_mcp_server_info