It’s not only hype: developers are working with AI every day – both using new AI-powered tools and building their own. At Neon, we’re seeing Postgres widely used in three AI workflows:Â
- powering vector-based apps with pgvector,
- managing databases from AI-assisted coding tools,
- and serving as the backend for agents that deploy full-stack applications
Vector search with pgvector
Many AI applications rely on vector embeddings for semantic search, RAG pipelines and similarity-based recommendations. The default approach is to pair a vector database with a separate relational store – one for your embeddings, another for everything else (users, metadata, analytics, etc.).
But this split setup often adds more overhead than it solves, especially for small teams. You now have two systems to manage, sync, scale, and secure, with different query logic, and raising costs. If Postgres already handles your application data, why introduce a separate database just for that?
“Having two separate databases for one product was inefficient in every way: cost, performance, and developer experience” (Giorgi Kenchadze, Founder & CEO at Vecstore)
That’s why more developers are reaching for pgvector, the open-source Postgres extension that turns any table into a vector database. You can store embeddings alongside the rest of your data, run similarity search with HNSW indexes, and combine it all in a single SQL query.Â
Neon (which of course supports pvector) adds some serverless Postgres magic to further improve price-performance and developer experience. For example,
- Autoscaling handles unpredictable query and indexing spikes: Vector workloads can be bursty, especially during large-scale indexing or similarity searches across many embeddings. With Neon, compute resources scale automatically based on demand – you don’t need to pre-allocate capacity or tune resource limits manually.
- Branching enables safe experiments: Neon’s copy-on-write branching lets teams create isolated environments for testing changes, whether that’s trying a different embedding model, adjusting chunking strategies, or benchmarking a new HNSW index configuration. You can compare performance or behavior without touching production data.
- Multi-project architecture improves latency and isolation – Neon makes it easier to manage many separate database projects across multiple regions, each isolated with their own compute and branches. Even small teams can serve search workloads closer to end users, avoid cross-region hops, and maintain tenant-level isolation.
“When I started RagRabbit, I did testing on vector databases, but I didn’t see a real advantage. Postgres with Pgvector covers everything I need” (Marco D’Alia, Software Architect behind RagRabbit)
To get started, explore our pgvector guide and our examples.Â
Postgres for your developer tools
Neon’s MCP Server simplifies provisioning and debugging databases via tools like Cursor, Devin, abnd many others, by exposing a structured API for managing Postgres branches in development environments.
- Cursor supports Neon via a one-click setup
- Devin connect to Neon via the MCP Marketplace
- You can also use it via GitHub Copilot in VS CodeÂ
- Or in Windsurf , Claude Desktop, or ClineÂ
before proceeding, healthy disclaimer
Neon MCP supports a broad set of dev-focused actions, including
create_branch
/reset_branch_data
– isolate changes for safe experimentationlist_slow_queries
,explain_sql_statement
– surface performance issuesprepare_query_tuning
,complete_query_tuning
– test and implement fixes- Authentication via OAuth or Neon’s API keys
To get started, explore our MCP server page.
Backend for agentsÂ
Whether deploying a new app, testing an idea, or executing user prompts, modern agents need to provision a database at runtime, use it briefly, and discard it. Neon makes this pattern successful with serverless Postgres that can be controlled entirely via API, and it’s already powering agents like Replit, Databutton, Create.xyz, same.new, and many others.Â
“Integrating Neon was a no-brainer. It gives every Databutton app a production-grade Postgres database in seconds, with zero overhead” (Martin Skow Røed, CTO and co-founder of Databutton)
Why does Neon fit so well with agentic workflows?Â
- Neon provisions in under a second. Neon allows agents to create a fully functional Postgres database in one API call. Provisioning is fast enough to happen inside a single agent loop, without blocking downstream tasks or create friction for the end user.
- No sign-up flow. Agents can provision databases anonymously via API. End users don’t need to create Neon accounts or authenticate – the database is created on their behalf and expires automatically.
- Affordable at scale. Modern agentic fleets create thousands of new databases per day. Neon’s compute automatically suspends when idle, so you (the agent builder) are only charged for active usage and storage – aka, if your end-user is actually using the app. This makes short-lived environments economically feasible even at scale.
- Quota controls via API. You can define usage limits and policies directly via the API, controlling the actions your end-users are allowed to do at scale, and keeping control over cost and resource usage.Â
- Branching enables app timelines and rollback. Agents can use Neon’s copy-on-write branching to create snapshots of the entire database at key points in time, making it possible to build timeline-style experiences where end users can roll back to earlier versions of their app, complete with data state.
- Built-in backend. Via Neon Auth, agents can ship apps with secure, user-scoped access out of the box without wiring up external identity services.
“Neon’s speed of provisioning and serverless scale-to-zero is critical for us” (Dhruv Amin, Co-founder at Create.xyz)
Keep reading about using Neon for agents.
For platform builders
Get started for freeÂ
Whether you’re embedding a vector store, building with AI-assisted dev tools, or powering agents that spin up infrastructure on the fly, Neon gives you Postgres that fits your AI use case. Try it yourself via our Free Plan or neon.new.Â