Hi, can I add my own MCP to use with components?
Yes, you can add your own MCP (Model Context Protocol) server to use with Retell AI agents.(1)(2)(3)
To add your custom MCP server to Retell AI:(1)(3)
- Click on + Add MCP in your agent configuration(1)
- Enter your MCP server URL (the endpoint where your MCP server is hosted)(3)
- Optionally set custom request headers and query parameters(1)
- Select the MCP tool from the list of available tools(1)
- Optionally set response variables to extract values from the MCP tool response and save them as dynamic variables(1)
- Save the MCP Tool(1)
- Update your agentâs prompt to explicitly indicate when to invoke the MCP tool(1)
Your MCP server must expose the proper endpoints that Retell AI can call.(2)(3) The MCP server acts as a secure endpoint that mediates requests from your agent to your external tools.(2)
You can connect to any HTTP-based service like Zapier, custom APIs, AWS Lambda, or cloud functions.(2)(3)
This is what my provider gave me, where do I need to add this info?
{
âmcpServersâ: {
âcontext7â: {
âurlâ: âhttps://mcp.context7.com/mcpâ,
âheadersâ: {
âCONTEXT7_API_KEYâ: âYOUR_API_KEYâ
}
}
}
}
Based on the configuration your provider gave you, hereâs where to add each piece of information in Retell AI:(1)(2)
- Enter
https://mcp.context7.com/mcpin the MCP Server Endpoint field when adding your MCP server(1)(2)
Step-by-step in Retell AI:(1)(2)
- Click + Add MCP in your agent configuration(2)
- In the MCP Server Endpoint field, paste:
https://mcp.context7.com/mcp(1)(2) - Under Set request headers (optional), add a new header:(1)(2)
- Click Add MCP Tool and select the tool you want to use(1)(2)
- Save your configuration(1)(2)
The configuration format your provider gave you is a standard MCP server configuration, but Retell AI uses a UI-based approach where you enter the URL and headers separately in their respective fields.(1)(2)
**
Oh this is good, solved thank you!
-
I created an agent
-
connected my MCP and defined the variables needed for the query (no header)
-
MCP function is also set. Screenshot: https://photos.app.goo.gl/37JwSmf2mLpRDYBF9 (Iâm not allowed to upload more than one picture in this forum)
-
In the instructions I define those variables: https://photos.app.goo.gl/g5wDCUJddziiBvq68
-
But it doesnât work. Looks like retell is sending an empty request: Failed to get LLM response
Error: Error encountered in LLM call: Failed to get response from any LLM provider. errorMsgs: [400 Invalid schema for function âbilabot_k_nodesâ: [None, ânullâ] is not valid under any of the given schemas., 400 Invalid schema for function âbilabot_k_nodesâ: [None, ânullâ] is not valid under any of the given schemas., 400 Invalid schema for function âbilabot_k_nodesâ: [None, ânullâ] is not valid under any of the given schemas.]
