Server Name - A descriptive name for your reference
Server URL - The MCP server endpoint
Authentication - Configure OAuth or API key headers if required
Click "Connect" to establish the connection
Test the connection by viewing available tools and resources
Server features are now available to your AI agent automatically. When users ask questions or request actions that match the server's capabilities, Tambo will use the appropriate tools and resources.
Connect MCP servers from your browser using the @tambo-ai/react SDK. This approach runs the MCP connection in the user's browser.
Best for: Development, testing, user-specific credentials, local services
Setup:
Dependency note
The @tambo-ai/react/mcp subpath declares @modelcontextprotocol/sdk, zod, and zod-to-json-schema as optional peer dependencies. If you import this subpath, install these packages:
import { TamboProvider } from "@tambo-ai/react";import { MCPTransport } from "@tambo-ai/react/mcp";export default function RootLayout({ children,}: { children: React.ReactNode;}) { return ( <html lang="en"> <body> <TamboProvider projectKey={process.env.NEXT_PUBLIC_TAMBO_API_KEY} mcpServers={[ { url: "http://localhost:8123/", serverKey: "local", // Optional: stable prefix for namespacing customHeaders: {}, // Optional: custom headers like API keys transport: MCPTransport.HTTP, // Optional: defaults to HTTP }, ]} > {children} </TamboProvider> </body> </html> );}
TamboProvider automatically establishes connections to the specified MCP servers and makes their capabilities available to Tambo.
Transport options:
MCPTransport.HTTP (default) - For HTTP-based MCP servers
MCPTransport.SSE - For Server-Sent Events transport
Note: Client-side connections require the MCP server to support browser-based connections. Most MCP servers support HTTP transport, which works well from browsers.
Current limitation: OAuth tokens are shared across all users in your project. All users will act as the same identity when using OAuth-authenticated servers. Per-user OAuth is planned for a future release.