MCP Integration
MCP (Model Context Protocol) allows your AI voice agents to access external tools and systems in real-time during calls. Agents can query databases, update CRMs, check calendars, and more—all while speaking with the customer.What is MCP?
MCP is an open protocol that lets AI models interact with external tools. Instead of hard-coding integrations, you connect an MCP server, and your agents automatically discover and use available tools. Example: Connect an MCP server for your CRM, and your agent can:- Look up customer information by phone number
- Check order status during the call
- Update contact records after qualifying a lead
How MCP Works in EolasFlow
1
Connect MCP Server
You register an MCP server (your tools endpoint).
2
Enable on Campaign
You enable MCP on a campaign and select your server.
3
Tool Discovery
When a call starts, EolasFlow connects to your MCP server and discovers available tools.
4
Agent Uses Tools
During the call, your AI agent can call any discovered tool as needed.
5
Results Spoken
Tool results are processed by the AI and spoken to the customer.
Setting Up MCP
Step 1: Register an MCP Server
1
Navigate to Integrations
Go to Dashboard → Integrations → MCP Servers.
2
Add New Server
Click Add Server and enter:
- Name: A descriptive name (e.g., “CRM Tools”)
- URL: Your MCP server’s SSE endpoint
3
Configure Authentication (Optional)
If your server requires authentication, add an API key. It’s sent as a Bearer token.
4
Preview Tools
Click Preview to discover available tools without saving.
5
Review Tools
See the list of tools your server provides with their descriptions and parameters.
6
Save Server
Click Save to register the server.
Step 2: Enable MCP on a Campaign
1
Open Campaign Settings
Go to Dashboard → Campaigns and click on your campaign.
2
Navigate to MCP Tab
Click the MCP tab in campaign settings.
3
Enable MCP
Toggle MCP On and select your registered server.
4
Configure Timeout (Optional)
Adjust the tool execution timeout if needed (default: 5 seconds).
5
Save Configuration
Click Save. Your agent now has access to MCP tools during calls.
MCP Server Requirements
Your MCP server must:- Support SSE (Server-Sent Events) transport
- Implement the JSON-RPC 2.0 protocol
- Handle these methods:
initialize- Establish connectiontools/list- Return available toolstools/call- Execute a tool
Tool Definition Format
Your server returns tools in this format:Tool Execution
When the AI calls a tool, your server receives:Tool Whitelisting
Optionally restrict which tools your agent can access:- In MCP server settings, expand Advanced Options
- Add tool names to the Tools Whitelist
- Only listed tools will be available to agents
Leave the whitelist empty to allow access to all tools from the server.
Agent Integration
Your AI agent automatically uses MCP tools when appropriate. To help the agent know when to use tools, update your agent’s description:Testing MCP
Test Server Connection
- Go to Dashboard → Integrations → MCP Servers
- Click Test on your server
- View discovered tools and verify they’re correct
Make a Test Call
- Go to Dashboard → Call Logs
- Click Test Call
- Select a campaign with MCP enabled
- Call yourself and test tool usage
MCP Configuration Options
| Setting | Description | Default |
|---|---|---|
| URL | Your MCP server’s SSE endpoint | Required |
| API Key | Authentication token (sent as Bearer) | Optional |
| Tools Whitelist | Restrict available tools | Empty (all tools) |
| Timeout | Max time for tool execution | 5000ms |
Best Practices
Common Use Cases
| Use Case | Tools to Implement |
|---|---|
| Customer Lookup | get_customer_by_phone |
| Order Status | check_order_status, track_shipment |
| Appointment Booking | get_available_slots, book_appointment |
| CRM Updates | update_contact, add_note |
| Knowledge Base | search_faq, get_article |
Example: CRM Integration
A typical CRM MCP server might provide:| Tool | Description |
|---|---|
get_customer | Look up customer by phone |
get_recent_orders | List customer’s recent orders |
update_status | Update customer status (lead → prospect) |
add_note | Add note to customer record |
- Call starts, agent greets customer
- Agent calls
get_customerto retrieve their info - Agent personalizes conversation based on customer data
- Customer asks about an order, agent calls
get_recent_orders - Call ends, agent calls
add_notewith call summary
Troubleshooting
Tools Not Discovered
- Verify server URL is correct (must be SSE endpoint)
- Check server is running and accessible
- Test the server directly using Preview
- Review server logs for connection issues
Tool Execution Failures
- Check timeout settings (increase if tools are slow)
- Review tool error messages in call logs
- Verify tool parameters match the schema
- Test tools individually using your MCP server’s interface
Agent Not Using Tools
- Update agent description to explain when to use tools
- Verify MCP is enabled on the campaign
- Check that tool descriptions are clear
- Make test calls to observe agent behavior
Build Your Own MCP Server
Don’t have an existing MCP server? Build your own using automation platforms like n8n, Zapier, or Make. This gives you the freedom to connect your AI agents to any tool or data source.n8n
Build MCP endpoints visually
Any API
Connect to any REST API
Your Database
Query your own data
- Look up customer data from your CRM
- Check inventory or order status
- Query your internal databases
- Access any API during calls
- Build custom tools specific to your business
Automation Workflows Guide
Learn how to build custom MCP servers with n8n and other tools