Neon now has realtime: Live SQL with full reactivity. Try it in Beta today
Managed Functions for Lakebase Postgres

Long-running functions, right next to your database

Backend compute

Run backend logic where your data lives — and keep it running when the job takes time.

Next to Lakebase Postgres. Functions run in the same region as your Neon branch, with its DATABASE_URL and credentials for AI Gateway and Object Storage injected automatically.

Serverless and long-running. Start responding quickly, then keep streaming as agents call models and tools, WebSockets stay open, or SSE sends live updates.

For backend work that needs more than a quick response

  • APIs
  • AI agents
  • MCP servers
  • WebSockets
  • SSE

Functions that branch with
the rest of your stack.

Your agent can deploy isolated backend environments to run previews or tests, functions included.

  • Branches with your data

    Create a child branch and the function follows, with its own invocation URL and branch-specific database context.

  • Declared inneon.ts

    Define Functions alongside the rest of your Neon backend in one typed config, then deploy the selected branch with neon deploy.

  • Agent-friendly support

    Tell your agent to deploy and manage your functions alongside the rest of the Neon backend.

Your questions,
answered

  • Neon Functions are serverless functions you deploy onto a Neon branch, so your backend code runs in the same region as your database. DATABASE_URL is injected automatically, along with AI Gateway and Object Storage credentials when you use them. Use a Function to host an API, an MCP server, an AI agent, a real-time server, or a webhook handler without standing up separate infrastructure. Functions run JavaScript or TypeScript on the Node.js runtime.

Your functions branch with everything else. Create a branch and your whole backend forks with it — database, storage, auth, and a gateway endpoint of its own.

  • Lakebase Postgres. Serverless Postgres that scales and branches with your app.

  • Authentication. Managed auth with users and sessions stored in Postgres.

  • Compute. Functions without timeouts running close to your database.

  • Storage. S3-compatible object storage that branches with your projects.

  • AI Gateway. One API for all frontier & open-source models, powered by Databricks.

Built for agents and
the developers behind them.

Every service is designed with the same API and operational model, whether it's used by a developer or called directly by an AI agent. Build once, then let both humans and agents use the same platform without additional integration work.

  • Branchable

    Spin up isolated environments to test model changes safely, without touching production. Merge changes only when they're ready.

  • Serverless

    Usage-based infrastructure that scales automatically with your traffic, so you only pay for what you use and nothing while idle.

  • Agent-ready

    Provision and operate every service through APIs that AI agents can call directly, using the same interfaces as developers.

Backed by giants

Trusted at scale. Neon has been part of the Databricks Platform since May 2025.

  • 20M+

    Databases started daily - built for scale and reliability.

  • 3M+

    Developers building on Neon worldwide

Trusted by the best
Neon's serverless philosophy is aligned with our vision: no infrastructure to manage, no servers to provision, no database cluster to maintain.
Edouard Bonlieu Co-founder at Koyeb
Get help

Talk to us.

Fill out a short form and we’ll get back to you within a few business days.

Contact us