https://retellai.com/?utm_source=discord&utm_medium=seo logo
I cannot set the MCP node to properly extract {{na...
# ❓・ai-evy-support
a
Thanks for tagging me @roberto_vsa. I'll look through relevant sources and get back to you shortly.
### Answer When using an MCP node in Retell AI to extract a response variable like {{name}}, ensure the following: 1. The response from Supabase must match the structure expected by Retell AI. For example, if your Supabase response is:
Copy code
json
{
  "name": "Robert"
}
then in the MCP node's response variable mapping, set the variable path to name (not {{name}}) . 2. If the response is nested, use dot notation (e.g., user.name for {"user": {"name": "Robert"}}) . 3. Only variables explicitly extracted and mapped in the MCP node will be available for use in later nodes [(1) ]() , [(2) ]() . If the variable is still coming out as empty, this may be due to the response format (e.g., stringified JSON instead of an object) , as some users have reported similar issues when the MCP server returns a stringified response rather than a parsed JSON object. In such cases, Retell AI may not extract the variable correctly [(3) ]() , [(4) ]() . To resolve: - Make sure your MCP server returns a proper JSON object, not a stringified JSON (i.e., avoid "{\"name\": \"Robert\"}" and instead return { "name": "Robert" }) . - Double-check the variable mapping in the MCP node setup. If you continue to see an empty variable, review your MCP node’s response mapping and the exact format of the Supabase response. If the response is stringified, adjust your MCP server to return a JSON object [(3) ]() , [(4) ]() . For more details, see: - [MCP Node documentation]() - [Relevant troubleshooting discussion]() - [Another community thread on MCP response variables](
564)
​ To learn more, see the sources I considered: [[1] MCP Node](https://docs.retellai.com/build/conversation-flow/mcp-node) [[2] Connect any AI Voice Agent to MCP with Retell AI MCP Node (Guide) | Retell AI](https://www.retellai.com/blog/connect-any-ai-voice-agent-to-mcp-with-retell-ai-mcp-node) [[3] mcp tool variables not extracted](https://discord.com/channels/1186424376300679209/1426340769924382791) [[4] Conversation Flow Agent - MCP Response Variables not working](https://discord.com/channels/1186424376300679209/1406261286270144564) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
it doesn't work