- Create a Supabase account and access token
- Quick start: Install a pre-built Supabase toolkit into Powerboards in minutes
- Build and customize: Connect, test, and deploy the Supabase MCP server using the MeshAgent CLI
Supabase Setup (required for both paths)
- Create a Supabase account and a project at https://supabase.com.
- From the Project Settings -> General page you will see the Project ID (also called Project Reference). You will use this value to connect MeshAgent to your Supabase project.
- Create a Supabase access token. Go to Account Settings -> Access Tokens. Generate a new token and set an expiration date for it. Keep this value private.
Note: Each MCP connection is scoped to a single Supabase project. If you need to connect multiple projects, repeat the steps below with a different project reference and toolkit name.
Quickstart: Install via Powerboards
If you want to get up and running without using the MeshAgent CLI, you can install the Supabase toolkit directly into Powerboards.- Click the link below to open the supabase toolkit installer: Install Supabase Toolkit in Powerboards.
- Powerboards will walk you through the setup, you will sign in, create/select a Project, create/select a room, then install the toolkit. You will need to paste in your Supabase Project ID and Supabase Access Token you generated above. Powerboards will automatically store the access token as a secret.
- Next, click the link to install an agent that uses the toolkit: Install Agent that Uses Supabase Toolkit in Powerboards.
- Follow the same process to install the agent.
Build and Customize: CLI Guide
This path walks you through connecting and testing the Supabase MCP server locally, then deploying it as a persistent service. This is useful if you want to customize the toolkit, test changes before deploying, or understand how the pre-built Powerboards template works under the hood.Prerequisites
Before you begin, make sure you have:- The MeshAgent CLI installed
- Connected to the MeshAgent project you want to work in (run
meshagent setupto authenticate and select your project) - Your Supabase Project Reference and Access Token from the setup step above
Step 1: Export your credentials
Export your Supabase credentials so the following commands can reference them:bash
Step 2: Configure credentials
Supabase MCP credentials can be configured with user-owned secrets and MCP proxy grants, or passed directly into the deployed template for local CLI-driven setup.Step 3: Start the MCP Session
Theproject_ref parameter in the URL determines which Supabase project this toolkit can access. Agents or humans using this toolkit will only be able to interact with that specific project.
This will print an output like
bash
myroom, open the menu in the upper left, and select Toolkits. You will see the supabase toolkit and its associated tools.
Step 4: Test with an agent
With the MCP session still running in your first terminal tab, from a second tab in your terminal start a process-backed agent that uses the Supabase toolkit:bash
Note: The --room-rules flag is optional. It creates a file at the specified path that anyone in the room can edit to customize the agent’s rules. This is useful if you want to tweak the agent’s behavior without redeploying it.
Try it out in MeshAgent Studio:
- Enter
myroom - Select the supabase-agent from the participants list
- Ask the agent to perform a task, such as listing tables in your Supabase project.
- Optionally, click the + button and enable Web Search to let the agent look up Supabase documentation on the fly.
Step 5: Deploy the Supabase toolkit as a persistent service
Once you’ve verified everything works locally, you can deploy the Supabase toolkit as a persistent service so the toolkit stays available without a local terminal session. Create a ServiceTemplate configuration file,meshagent.yaml, that defines the service:
Deploy the service template:
bash
Warning: Until MCP proxy support is fully rolled out, rotating the Supabase token requires updating and redeploying the service template.After deployment, the Supabase toolkit will be available to any participant or agent in the room without a local MCP session. To deploy the process-backed agent that uses the toolkit run:
bash
Publishing to Powerboards
Once you’re happy with your service template, you can make it installable via Powerboards so others can use it without going through the CLI steps.- Push your
meshagent.yamlto a GitHub Gist (or any publicly accessible URL). - Click the Raw button on the gist to get the direct URL to the file.
- Construct the Powerboards install link: https://app.powerboards.com/install?url=YOUR_RAW_URL