← Local Development and Testing | Next: Connecting AI Agents →
Step 1: Link to Your Cloud Project
supabase link --project-ref <your-project-ref>You can find your project ref in the Supabase Dashboard URL: https://supabase.com/dashboard/project/<your-project-ref>.
Step 2: Push the Database Schema
supabase db pushThis applies your migrations to the cloud database. Then seed your production data by running the seed SQL through the Supabase Dashboard SQL Editor, or by using:
# Option: Run seed via psql (connection string from Dashboard > Settings > Database)
psql "postgresql://postgres:[YOUR-PASSWORD]@db.[YOUR-PROJECT-REF].supabase.co:5432/postgres" -f supabase/seed.sqlStep 3: Deploy the Edge Function
supabase functions deploy --no-verify-jwt mcpYour MCP server is now live at:
https://<your-project-ref>.supabase.co/functions/v1/mcpStep 4: Verify the Deployment
curl -X POST 'https://<your-project-ref>.supabase.co/functions/v1/mcp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}'You should see your five tools listed in the response.