Supabase MCP Server in Cursor practical example
- Published:
- Length: 6:16
- Channel: Eugene Vyborov
- Video: https://www.youtube.com/watch?v=ZEsLGqgAEgE
- YouTube video id: ZEsLGqgAEgE
Description on YouTube
Supabase MCP is kinda cool, and feels dangerous a bit, since allows AI Agents access to the core of any business - database. One needs to be careful with that. Release blog post https://supabase.com/blog/mcp-server
Full transcript
[0:04]I wanted to show something pretty cool I think. Um so I'm working on a project in Corser. uh this is a story pipe project uh for storage generation and uh I just want to add authentication layer to it using uh superb base and uh uh zero zero uh and uh I've done a lot of a lot of the parts of this process such as uh uh configured the systems on the both ends implemented uh some code this is a stream
[0:36]application so it's another of complic application over here uh and uh yeah update docker files with necessary fields added some secrets and stuff like that but you know I still running into some issues and it doesn't work uh and I want this um thing to actually fix it and this is where uh recent piece of news comes in uh base just released an MCP uh and this MCP is easy to connect just go to the blog post uh and read
[1:11]instructions over there. Uh and you just enter your API key um to this MCP configuration and uh you basically get yourself uh a nice uh little extension to your um corsor agent. So this is all the functions that it can call. Uh and uh let's give it give it a run. So I'm telling it that you know okay I have a problem with this app. Uh this is how the uh this stuff is set up but it's not working. uh and basically try to use uh
[1:45]uh civ base mcp to see uh what can be the problem and I don't know where what it's going to find or what it's going to fix or whatever what is going to happen but uh uh the fact that I just embedded into the workflow that I have an entirely new uh uh MCP that is being used by my agent uh is is kind of amazing Amazing. So, uh, it lists the projects. Let's take a look. I want to zoom it
[2:19]in. And we can look at the parameters and the outputs of u of the MCP call. Uhhuh. Let's examine the source directory. Then it goes and monitors uh stuff in the code. All right. Let's give it a second. Or maybe not a second because it's going to take quite a lot of time,
[2:54]I'm assuming. All right. Now, it says, "Okay, let's list tables and see what's happening." Well, there's nothing uh that it's going to find in the tables because uh really not a single user has been uh added to this thing. So, it's going to look at the logs. [Music] Uhhuh. Close. [Music]
[3:36][Music] Okay. So now it basically checking the role level security policies because it knows that that is uh one of the possible issues. Apparently it found out after you in the colon database identified several potential issues. So uh RLS is the first one. Responses in the user profiles table. For example, there's [Music] Okay. Let's just see if we can perform
[4:13]simple operations on sub [Music] base. Okay, let's test it. Now it's going to make sure that it actually is working at least [Music] somehow. How cool is that? Now I basically have an MCP that allows me to talk to my database to my database
[4:48]server. And this is so cool. Okay. Uh, now it wants to apply a migration. Oh, it basically Okay, it sends a query. Uh, what's the date of this policies? Great. It's much better than me updating that through the uh website actually. Uh, that's funny. Uh, I tried to use CLI for that, but apparently subbase CLI is not as great. uh and the fact that they released uh MCP uh is
[5:22]very helpful. Somehow it feels like it's better and can do more, but I may be entirely wrong. Uh perfect. So, it did the analysis. Uh it changed the policies on the uh server side and I'm going to check uh if that actually worked. I'm not going to show you whether it did because my point here was to show you how uh cool it is to have an MCP especially this is an MCP2 superbase to
[5:56]access your and manage your databases. Although probably this is going to be one of the most dangerous MCPS to um have lost access to. Um I'm right. Thank you.