M
Mastra2mo ago
gliches

Can't connect to supabase MCP server with Klavis AI

I've been facing this problem, where I want to integrate supabase mcp server in my mastra project and use supabase's tools with my agent. I've integrated something like this but I'm facing some errors. https://img.enacton.com/ShareX/2025/1029/Cursor_ItkX4UqBt5.png Can anybody help me with this? Also it would be nice to have some documentation around integrating third party MCP servers with our mcp client.
3 Replies
Mastra Triager
Mastra Triager2mo ago
GitHub
[DISCORD:1432986236976500830] Can't connect to supabase MCP server ...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1432986236976500830 I've been facing this problem, where I want to integrate supabase mcp server in my...
_roamin_
_roamin_2mo ago
Hey @gliches ! Can you try with something like this:
supabase: {
url: new URL(
"https://mcp.supabase.com/mcp?project_ref=${SUPABASE_PROJECT_REF}"
),
requestInit: {
headers: { Authorization: "Bearer ${SUPABASE_ACCESS_TOKEN}" },
},
},
supabase: {
url: new URL(
"https://mcp.supabase.com/mcp?project_ref=${SUPABASE_PROJECT_REF}"
),
requestInit: {
headers: { Authorization: "Bearer ${SUPABASE_ACCESS_TOKEN}" },
},
},
You'll need to provide the bearer token for auth

Did you find this page helpful?