Overview
MCP (Model Context Protocol) Server Connection enables your Utari agents to connect with external tools and services through a standardized protocol. By connecting to MCP servers via HTTP, you can extend your agent’s capabilities with custom integrations, specialized tools, and external data sources—creating unlimited possibilities for customization.MCP Server Connection Process
1
Setup MCP Server
What You Need:
- MCP server endpoint URL
- Memorable name for the connection
- Server must be accessible via HTTP
2
Select Tools
After Connection:
- Browse available tools from the MCP server
- Review tool descriptions and capabilities
- Select which tools to enable for your agent
- Configure tool permissions and access
3
Test Connection
Verify Setup:
- Test with a simple tool call
- Confirm data is returned correctly
- Check permissions are working
- Validate agent can access tools
4
Use in Workflows
Integration Complete:
- Tools now available to agent
- Use in conversations naturally
- Combine with other Utari tools
- Build automated workflows
MCP provides a standardized way for AI applications to securely connect to external tools and data sources, making it easy to extend functionality without custom development.
What is MCP?
Model Context Protocol Explained
Understanding MCP
MCP (Model Context Protocol) is a universal standard that allows AI agents to connect with external tools and services.Think of it as:
- USB for AI tools - standardized connection
- Plugin system for agents
- API gateway specifically designed for AI
- ✅ Standardized: Works across different AI platforms
- ✅ Secure: Built-in authentication and access control
- ✅ Flexible: Connect to any HTTP-accessible service
- ✅ Discoverable: Tools self-describe their capabilities
- ✅ Composable: Combine multiple MCP servers
Setting Up MCP Server Connection
Step 1: Prepare Your MCP Server
- Using Existing Server
- Composio MCP Servers
- Custom MCP Server
If you have an MCP server URL:
Step 2: Connect in Utari
1
Initiate Connection
2
Provide Details
3
Test Connection
4
Review Available Tools
5
Select Tools
Using Connected MCP Servers
Natural Tool Usage
Once connected, agents use MCP tools naturally in conversation:Example MCP Server Workflows
- Customer Support
- Sales Intelligence
- Data Analysis
- Internal Operations
Scenario: Customer support agent with internal tools
MCP Server Management
Managing Multiple MCP Servers
1
Connect Multiple Servers
2
Organize by Purpose
3
Control Access
Updating MCP Connections
Update Server URL
Update Server URL
Add/Remove Tools
Add/Remove Tools
Update Authentication
Update Authentication
Disconnect Server
Disconnect Server
Security Best Practices
Secure Endpoints
Only connect to MCP servers you control or trust completely
Least Privilege
Enable only the tools agents actually need to use
Authentication
Always use authentication when available (API keys, tokens)
HTTPS Only
Only connect to MCP servers using HTTPS, never HTTP
Monitor Access
Track which agents use which MCP tools and how often
Rotate Credentials
Regularly update API keys and authentication tokens
Audit Logs
Review MCP server logs for unusual access patterns
Test Safely
Test MCP connections with non-production data first
Troubleshooting
Connection fails
Connection fails
Check:
- Server URL is correct and accessible
- Server is currently running
- No firewall blocking the connection
- HTTPS certificate is valid
- Authentication credentials are correct
- MCP server implements protocol correctly
No tools discovered
No tools discovered
Verify:
- MCP server is returning tool definitions
- Server implements MCP protocol correctly
- API endpoint is the correct path
- Authentication is working
- Check server logs for errors
Tool calls fail
Tool calls fail
Debug:
- Verify tool is enabled for agent
- Check parameters are correct format
- Confirm authentication is still valid
- Review MCP server logs
- Test tool manually if possible
- Check for rate limiting
Slow response times
Slow response times
Consider:
- MCP server performance/load
- Network latency to server
- Complex operations taking time
- Rate limiting causing delays
- Optimize tool calls if possible
- Cache frequently accessed data
Authentication errors
Authentication errors
Resolve:
- Verify credentials are current
- Check if tokens expired
- Confirm API key has required permissions
- Ensure auth headers formatted correctly
- Rotate credentials if compromised
- Contact server admin if persistent
Summary
You’ve successfully learned how to:Understand what MCP servers are and how they work
Connect to MCP servers via HTTP endpoints
Select and enable specific tools from MCP servers
Use MCP tools naturally in agent workflows
Manage multiple MCP server connections
Apply security best practices for MCP connections
Troubleshoot common connection and tool issues