Overview
Model Context Protocol (MCP) is an open standard for connecting AI assistants to external data sources and tools. Tambo provides full MCP support, allowing you to:- Connect to MCP servers (Linear, Slack, databases, file systems, etc.)
- Discover tools automatically from connected servers
- Access resources (files, database records, API data)
- Use prompts defined by MCP servers
- Handle elicitations for user input requests
Connecting MCP Servers
Register MCP servers withTamboProvider:
MCP Server Configuration
McpServerInfo
Defines how to connect to an MCP server:Transport Types
Tambo supports two MCP transport protocols:- HTTP - Request/response over HTTP
- SSE - Server-Sent Events for real-time updates
Custom Headers
Pass authentication headers to MCP servers:Server-Side vs Client-Side MCP
Tambo supports MCP in two environments:Server-Side (Internal)
MCP servers connected via Tambo Cloud or self-hosted backend:- Tools execute server-side
- Access to server resources (databases, file systems)
- Automatic connection via MCP access token
- Secure - credentials stay on server
Client-Side (Browser)
MCP servers you register inmcpServers prop:
- Tools execute in the browser
- Access to client-side APIs and user data
- Manual configuration required
- Useful for browser-specific tools (clipboard, geolocation)
MCP Tools
Tools from MCP servers are automatically registered and available to the AI:Accessing MCP Servers
Get connected MCP servers:MCP Resources
Resources are data sources that MCP servers expose (files, database records, API data).Listing Resources
Reading Resources
MCP Prompts
Prompts are pre-defined templates that MCP servers provide.Listing Prompts
Using Prompts
MCP Elicitations
Elicitations allow MCP servers to request user input during tool execution.Handling Elicitations
Custom MCP Handlers
Provide custom handlers for elicitations and sampling:MCP Server Development
Create your own MCP server to expose custom tools and resources:Tool Namespacing
When multiple MCP servers are connected, tools are prefixed with the server key:Best Practices
Secure Credentials
Never hardcode API keys:Handle Connection Failures
Check server connection status:Type-Safe Resources
Use type guards to handle different resource types:Next Steps
- Learn about Tools to understand the tool system
- Explore Authentication for securing MCP connections
- See the MCP Protocol Spec for server development
- Check Streaming for real-time MCP tool execution