@mcp-use/client import uses package conditions to select its runtime
implementation. Node gets the Node entry; browsers and other default
environments get the browser-safe entry. React connection management is
available from a separate entry point.
Node.js
The Node entry includes HTTP and stdio transports, filesystem configuration, Code Mode, and Node OAuth helpers.Browser
The browser entry exposes the HTTP connection API and browser OAuth support. It does not include process spawning, filesystem configuration, or local code execution.React
Install the client and your application’s supported React version:@mcp-use/client/react provides connection-management APIs such as useMcp,
McpClientProvider, useMcpClient, and useMcpServer. It also exports
ViewRenderer for hosts that render an MCP App View.
Code running inside a View uses the View APIs from mcp-use/react, including
useToolContext, useCallTool, and useViewState. These hooks communicate
with the host; they do not create or manage MCP server connections.
See React integration for connection setup and
MCP Apps for building and hosting Views.