Connect Tambo to external tools and services using the MCP standard
Model Context Protocol (MCP) allows you to give Tambo access to tools, data, and functionality defined by other services. Many popular applications publish MCP servers, and Tambo provides a simple way to connect to them. This lets your users conversationally interact with external services without needing to write integration code yourself.
MCP is an open standard that enables AI applications to securely connect to external data sources and tools. It provides a standardized way for AI assistants to:
Call tools - Execute functions to perform actions and retrieve data
Access resources - Reference files, documents, and other data sources
Use prompts - Insert predefined message templates
Request input - Pause for user confirmation or additional information (elicitations)
Leverage AI - Request LLM completions for analysis and generation (sampling)
By using MCP, you can rapidly extend Tambo's capabilities without building custom integrations for every external service.
Server-side MCP connections are configured through the Tambo dashboard and run on Tambo's backend infrastructure. This approach provides the most efficient communication since tools execute via direct server-to-server connections.
Key characteristics:
Authentication: Supports OAuth-based authentication and custom API key headers
Performance: Most efficient due to direct server-to-server communication
Sharing: MCP servers are shared across all users of your project
Configuration: Managed through the Tambo dashboard
Ideal for: Production applications, shared services, and scenarios requiring OAuth
Authentication model: When an MCP server is authenticated via OAuth, the OAuth identity is currently shared across all users of your project. This means every user acts as the same MCP identity when using that server. Only configure servers this way if that shared access level is acceptable for your data and tools. Per-user MCP authentication is planned for the future.
End-user identity: Per-user authentication is supported today via the userToken prop on TamboProvider (an OAuth access token from your auth/SSO provider) — see User Authentication. MCP server auth and end-user auth are independent layers.
Client-side MCP connections run directly in the user's browser, allowing you to leverage the browser's existing authentication state and access to local services.
Key characteristics:
Authentication: Leverages the browser's authentication state (cookies, session storage)
Performance: More chatty due to browser-to-Tambo-to-MCP communication
Local access: Can connect to local MCP servers (e.g., localhost)
Configuration: Configured in your React application code
Ideal for: Local development, user-specific services, and services behind firewalls
Authentication note: There is currently no support for OAuth-based authentication when using client-side MCP connections. The MCP server must be accessible from the browser without additional authentication, or rely on the browser's existing session.
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:
If you don't specify serverKey, Tambo derives one from the server URL hostname (e.g., https://mcp.linear.app/mcp becomes linear). For predictable behavior across environments, set serverKey explicitly.
Naming guidelines:
Avoid : and __ in the serverKey (used as separators)
Prefer letters, numbers, _, and -
Use environment-specific keys in multi-environment setups (e.g., linear-staging)
MCP tools automatically support rich content responses. When MCP servers return content arrays (text, images, and other media types), Tambo automatically passes them through to the AI without converting them to plain text. This means MCP tools can seamlessly return images, formatted content, and other rich media.