Supabase (pgvector)
by Supabase
One database that also searches by meaning.
Vector databasesUp · live statusOfficial MCP server
1. Price
Free tier: Free: 500 MB database, shared CPU, 2 active projects (paused after 1 week inactivity). As reported on the official pricing page, checked Nov 1, 2026.
supabase.com/pricing2. Commercial use
“Supabase acknowledges that, as between Supabase and Customer, Customer owns all right, title, and interest, including all intellectual property rights, in and to the Customer Data.”
Paid apps are fine on any plan; you own your data, and you must follow the terms, which forbid reselling or passing on access to the service itself.
supabase.com/terms3. Key & sign-up
“Safe to expose online: web page, mobile or desktop app, GitHub actions, CLIs, source code.”
Project URL plus a publishable key (sb_publishable_...) in browser or app code, protected by Row Level Security; a secret key (sb_secret_...) only on servers; SQL clients use the database connection string with its password
supabase.com/docs/guides/api/api-keys.md4. Agent access
“The hosted Supabase MCP server is available at https://mcp.supabase.com/mcp.”
Our agent check: 6 of 6 (Nov 13, 2026).
supabase.com/docs/guides/getting-started/mcp.mdChecked against the maker's official pages, pricing on Nov 1, 2026. Tap a verdict to see its source.How we checkedReport an error
What Supabase (pgvector) does
Supabase is a hosted Postgres database with sign-in, file storage and a ready web API around it. Its pgvector add-on lets the same database store embeddings, the number lists that capture what a text means, and find the closest ones. Your products, users and search data stay in one place instead of a separate search service. Supabase is open source, so it can also run on your own server.
- Supabase (pgvector) is one of 24 APIs in the Vector databases category on AgentGid.
- Its cheapest paid plan ($25 a month) is the 5th cheapest of the 12 here with a monthly plan.
- It is one of 19 that can be started for free.
- It ships an official MCP server, like 12 others here.
- Its official SDK is the 1st most downloaded in the category (75.9M a week).
What people build with it
Help center search by meaning
Visitors type a question in their own words and get the help articles that answer it, even when the wording differs.
A document chat that respects access
An assistant answers from company files, and each user only gets passages from documents they are allowed to open.
Similar products in your shop
Show items that are close in meaning to the one on screen, from the same table that holds prices and stock.
Search inside one category
Look for the closest matches only among blog posts, or only among one customer's records, without losing results.
Keywords and meaning together
A recipe search finds "pasta with tomato sauce" by exact words and also dishes that match the idea, then mixes both lists.
Catch duplicate listings Idea
When someone posts a new listing or ticket, warn them if a very similar one already exists.
Supabase (pgvector) popularity
SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.
Pricing
Free: 500 MB database, shared CPU, 2 active projects (paused after 1 week inactivity)
$25 a month
Pro: 8 GB disk per project then $0.125/GB; compute from $10/month (Micro; first instance covered by $10 credits)
Vector search is plain Postgres + pgvector, so cost is the database/compute plan; no per-vector pricing. Egress 250 GB then $0.09/GB on Pro. Hosted MCP also at https://mcp.supabase.com/mcp.
What one action costs
| Action | Price |
|---|---|
| Pro plan per month (includes $10 compute credits, one Micro database) | $25 |
| Each extra project on Micro compute, per month | $10 |
| 1 GB of database disk above the included 8 GB (Pro) | $0.125 |
| 1 GB of egress above the included 250 GB (Pro) | $0.09 |
Price history
- A year of the pricing page in the Internet Archive (10 months): the lowest monthly figure went from $10 (2025-10) to $10 (2026-09).
As reported on the official pricing page, checked Nov 1, 2026. Prices change: confirm before you buy. supabase.com/pricing
Limits
500 MB database per project, 2 active projects, paused after 1 week of inactivity, 5 GB egress
8 GB disk per project included, then $0.125 per GB; 250 GB egress, then $0.09 per GB
Shared CPU, 1 GB RAM, 60 direct and 200 pooled connections
HNSW index up to 2,000 dimensions for vector, 4,000 for halfvec
From the official docs. supabase.com/pricing.md
Status and incidents
All Systems Operational
13 incidents, 0 of them major
From the official status page, checked Nov 23, 2026. status.supabase.com
Key and access
Project URL plus a publishable key (sb_publishable_...) in browser or app code, protected by Row Level Security; a secret key (sb_secret_...) only on servers; SQL clients use the database connection string with its password
NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY (Next.js quickstart); keep the secret key in a server-only variableNot stated on the pages we read
Steps only a person can do
- Create a Supabase account and a project, choosing its region and a database password. Put the project URL and publishable key in .env.local; keep the secret key and database password in server-only variables.
- Upgrade to the Pro plan before launch so the project is never paused, and check the spend cap. No code change.
- If you want your AI assistant to manage the project, sign in to the Supabase MCP server through OAuth. Use it with project_ref and read_only=true for checks, and approve each tool call.
Commercial use and your data
The hosted service is paid by plan, with a free plan, and you own the data you store. Supabase itself is open source under the Apache 2.0 license, so you may also run it yourself. You may not resell access to the hosted service itself.
Paid apps are fine on any plan; you own your data, and you must follow the terms, which forbid reselling or passing on access to the service itself.
“Supabase acknowledges that, as between Supabase and Customer, Customer owns all right, title, and interest, including all intellectual property rights, in and to the Customer Data.” source
Build on a project in your client's own organization or yours; giving clients the MCP server or your developer access is advised against.
“The MCP server operates under the context of your developer permissions, so you should not give it to your customers or end users.” source
The Supabase code is Apache 2.0, so you may self-host or ship it with its license notice.
“Apache License Version 2.0, January 2004” source
“Supabase will not use, nor allow any third-party to use, Customer Data, Customer's AI Input, or any AI Output to train, fine-tune, or otherwise improve any artificial intelligence or machine learning model, without Customer's prior written consent.”
Your data stays until you delete it; Pro keeps daily backups for 7 days; API and database logs are kept 1 day on Free and 7 days on Pro.
“Log retention (API & Database) 1 day 7 days 28 days 90 days” source
One primary AWS region per project; choose a specific region (for example eu-central-1 Frankfurt) for data residency.
“The region you choose also determines where your primary project data is stored.” source
Errors to handle
The Free project was paused for inactivity, on request or for abuse.
The owner resumes it in the dashboard (possible for up to a year); upgrade to Pro to stop pausing.
The function called with rpc() was not found, or its argument names changed.
Check the function name and that the rpc() argument names match the SQL parameters exactly.
Row Level Security or grants block this user or key.
Add or fix the RLS policy for the role; never switch to the secret key in browser code to get around it.
The organization went over its quota or has an overdue bill.
Reduce usage, raise the spend cap or pay the bill in the dashboard; data stays readable there.
The query ran longer than the time limit, often a vector search without an index.
Add an HNSW index, lower match_count, or move to a bigger compute size; retry after fixing.
Use it from an agent
6 of 6: llms.txt yes, OpenAPI yes, SDK yes, MCP yes, status page yes, AI assistants allowed yes
Checked Nov 13, 2026.
Supabase MCP server (hosted, OAuth sign-in)
claude mcp add --scope project --transport http supabase "https://mcp.supabase.com/mcp"
npm install @supabase/supabase-jspip install supabaseAlternatives
Supabase (pgvector) This page
Pick plain pgvector when you already run your own Postgres and only need the vector extension, with no hosted platform.
Pick Qdrant Cloud when you want a dedicated vector search engine on managed clusters, separate from your app database.
Pick Elastic Cloud when large full-text search with vector and hybrid ranking over many indexed documents is the main job.
Get started
Tell your AI assistant
“Add meaning-based search with Supabase pgvector: a migration that enables the vector extension, adds embedding vector(1536) to documents, an HNSW index and a match_documents SQL function with a category filter; call it with supabase.rpc using the publishable key and Row Level Security on.”
Create a Supabase project in the dashboard and copy its URL and publishable key into your app's environment.
NEXT_PUBLIC_SUPABASE_URL=<SUBSTITUTE_SUPABASE_URL> NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=<SUBSTITUTE_SUPABASE_PUBLISHABLE_KEY>From supabase.com/docs/guides/getting-started/quickstarts/nextjs.md
Turn on the vector extension and add a vector column sized to your embedding model (384 here; 1536 for OpenAI text-embedding-3-small).
create extension vector with schema extensions; create table documents ( id serial primary key, title text not null, body text not null, embedding extensions.vector(384) );Create the match_documents function from the semantic search guide, add an HNSW index, and call it with rpc() from your app.
create index on documents using hnsw (embedding vector_cosine_ops);
First request
import vecs
DB_CONNECTION = "postgresql://<user>:<password>@<host>:<port>/<db_name>"
vx = vecs.create_client(DB_CONNECTION)
docs = vx.get_or_create_collection(name="docs", dimension=3)
docs.upsert(
records=[
("vec0", [0.1, 0.2, 0.3], {"year": 1973}),
("vec1", [0.7, 0.8, 0.9], {"year": 2012})
]
)
docs.query(
data=[0.4,0.5,0.6], # required
limit=1, # number of records to return
filters={"year": {"$eq": 2012}}, # metadata filters
)
# Returns: ["vec1"]Mistakes to avoid
The secret key skips every security rule, so anyone who reads the page gets full access.
A filter chained after rpc() runs after ranking and the limit, so it can return fewer rows than asked.
Plain vector indexes stop at 2,000 dimensions.
Sorting by a computed similarity column can make Postgres skip the index and scan everything.
Our check of vecs 0.4.5 found no module-level get_or_create_collection and a TypeError for vectors=; the vecs README uses records.
Questions
Is there a free plan?
Yes, $0 a month with a 500 MB database, up to 2 active projects, paused after a week without activity.
What does a small production setup cost?
The Pro plan is from $25 a month and includes $10 of compute credits, which cover one Micro database; extra disk is $0.125 per GB.
How big can a vector be?
An HNSW index takes vectors up to 2,000 numbers; larger ones, like 3072 from OpenAI's large model, need the halfvec type.
Does Supabase train AI on my data?
No. The terms say Supabase will not use your data, AI inputs or outputs to train models without written consent.
Can I keep my data in the EU?
Yes. Pick a specific region such as Frankfurt or Paris when creating the project; the region decides where the data is stored.