cd /news/ai-agents/build-anything-supabase-from-code-an… · home › topics › ai-agents › article
[ARTICLE · art-151611] src=supabase.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Build anything: Supabase from code, and an MCP server for your app

Supabase announced at Supabase Select that its platform can now run local development without Docker, generate migrations from SQL schema files via its new pg-delta diff engine, and host long-running services through Supabase Compute, plus an MCP server that lets users' AI agents act inside an app as the signed-in user. Declarative Schemas 2.0 makes SQL files the source of truth for new projects created with `supabase init`, while `supabase config pull` returns dashboard settings to config.toml and `supabase pull` retrieves config, schema, and Edge Functions in one command. Local Supabase runs as native processes in alpha, off by default, and Supabase Compute is available via a private alpha waitlist.

by read5 min views25 publishedOct 2, 2026
Build anything: Supabase from code, and an MCP server for your app
Image: Supabase Blog

Today at Supabase Select, we announced new tools that let your coding agent set up your backend, test changes locally, and deploy the services behind your app. We also gave your users’ agents a way to work inside your app as the signed-in user. Your agent already writes your application code, but the backend was still your job, because most of that work happened in the dashboard: create a table, change an RLS policy, then pull the change into a migration with the CLI. Your agent works in your repo, and changes made in the dashboard don't appear there.

Now your schema and project config can live in your repo, where your agent can work on them. The agent writes the schema as SQL files, and pg-delta works out the migration. A setting changed in the dashboard comes back to your config file with one command. Before a change ships, your agent can try it locally: local development doesn’t need Docker, and each directory gets its own stack, so the agent can test two changes side by side and keep the one that works.

Many apps require long-running processes: agents, embeddings for a large set agents, embeddings for a large set of files, a service that stays up, or code that needs its own sandbox. Supabase Compute runs that work as a long-lived service in the same project as your database.

Your users are already in Claude, ChatGPT, or Cursor, and when one of them asks their agent to do something in your app, the agent needs a way in. Your app can now have its own MCP server, deployed inside the Supabase project you already have. Users sign in the way they already do, and their agent sees only what they're allowed to see.

Agent-ready local development# #

Local Supabase can now run as native processes, so it starts on machines without a Docker daemon: Claude Code's sandbox, Codex, Perplexity Computer, and CI runners. On a machine with Docker, nothing changes. You can also run multiple local Supabase instances, one per directory, so several checkouts or git worktrees of the same repo run at the same time. It's in alpha today, off by default.

Declarative Schemas 2.0: coding agents are good at editing schema files and bad at writing migrations. Your agent edits the SQL files, which are the source of truth, and pg-delta, the CLI's new diff engine, generates the migration from them. New projects created with supabase init use pg-delta by default, and existing projects can turn it on in config.toml.

Config in code: settings like auth providers, API limits, and storage buckets live in config.toml next to the schema. A setting changed in the dashboard comes back into the file with supabase config pull, and supabase pull pulls config, schema, and Edge Functions in one command.

Supabase Compute# #

Compute runs web services and agents in any language next to your database. There's no limit on how long a service runs, you choose the memory and CPU, and each service gets a full Linux environment, which Edge Functions don't have.

Deploy from the Supabase CLI, or manage services through the Management API. The service definition lives in config.toml, and agent skills for Compute let your coding agent write, deploy, monitor, and debug a service for you. A service gets the same default environment variables as your Edge Functions, so it connects to your database and other Supabase services. In the dashboard you see each service's runtime, invocations, and logs.

Each service gets a public HTTP URL, like an Edge Function. Set the number of instances, and Supabase balances requests across them. You can also deploy a service as private, with no HTTP endpoint, for background jobs from a database queue or as a sandbox for an agent. To tighten security further, network restrictions can limit database access to your Compute instances.

Join the waitlist for private alpha [here](https://supabase.com/compute).

## Your app's MCP server[#](#your-apps-mcp-server)

MCP is the standard that lets agents talk to your app on behalf of your users. Your app's MCP server is separate from the official Supabase MCP server, which helps you build your app.

Add a customizable MCP server to your own app from the Supabase library. One shadcn command adds an authenticated Edge Function to your codebase, ready to deploy to Supabase. You own the code, so your agent can use the included instructions and Supabase client to add the tools that fit your product, and your RLS policies still decide which rows each user can reach.

It's built on @supabase/server and the new Supabase Middleware, which also work on their own in any server code that needs to know who is signed in.

We also built a headless app template: a backend with an agent as the main interface, ready to deploy to Supabase.

Get started# #

  • Agent-ready local development: update the Supabase CLI , then add[experimental] andstack = true tosupabase/config.toml , or setSUPABASE_EXPERIMENTAL_STACK=1 .
  • Declarative Schemas 2.0: put your schema in supabase/schemas/*.sql , runsupabase db schema declarative sync to generate and apply the migration locally, then runsupabase db push . Existing projects: add[experimental.pgdelta] andenabled = true tosupabase/config.toml .Docs .
  • Supabase Compute: in private alpha. Join the waitlist .
  • Your app's MCP server: get your project into code with supabase pull , then runnpx shadcn@latest add @supabase/mcp-server from theMCP server block . It needs asymmetric signing keys and the Supabase AuthOAuth server turned on.
── more in #ai-agents 4 stories · sorted by recency
── more on @supabase 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/build-anything-supab…] indexed:0 read:5min 2026-10-02 · —