Skip to content
Agents tracked: 504 Releases (7d): 602 Agent status: no reported issuesSince last limit reset: Claude 13d · Codex 11d For AI agents: Markdown Updated Nov 24, 2026

Supabase (pgvector)

by Supabase

One database that also searches by meaning.

Vector databasesUp · live statusOfficial MCP server

WebsitePricingGitHub

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/pricing

Checked 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

78.7M
SDK downloads a week
+75.3% on the 4-week average
115K
GitHub stars, supabase/supabase
SDK downloads per weeknpm @supabase/supabase-js, pypi supabase 78,700,601

SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.

Pricing

Free tier

Free: 500 MB database, shared CPU, 2 active projects (paused after 1 week inactivity)

Cheapest plan

$25 a month

Usage price

Pro: 8 GB disk per project then $0.125/GB; compute from $10/month (Micro; first instance covered by $10 credits)

Plans

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

ActionPrice
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

Free

500 MB database per project, 2 active projects, paused after 1 week of inactivity, 5 GB egress

Pro

8 GB disk per project included, then $0.125 per GB; 250 GB egress, then $0.09 per GB

Micro compute (included in Pro)

Shared CPU, 1 GB RAM, 60 direct and 200 pooled connections

All plans (pgvector 0.7.0+)

HNSW index up to 2,000 dimensions for vector, 4,000 for halfvec

From the official docs. supabase.com/pricing.md

Status and incidents

Right now
Up

All Systems Operational

Last 30 days

13 incidents, 0 of them major

From the official status page, checked Nov 23, 2026. status.supabase.com

Key and access

How it signs in

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

Environment variable
NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY (Next.js quickstart); keep the secret key in a server-only variable
Safe in browser code
Yes
Card at sign-up

Not 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.

In a paid app
With conditions

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

client-work
With conditions

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

redistribute-files
Yes

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

Trains on what you send

“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.”

Keeps your data

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

Where data is stored

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

540 project paused

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.

PGRST202 (404)

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.

42501 insufficient privileges (401 or 403)

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.

402 service restriction

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.

544 project API gateway timeout

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

Our agent check

6 of 6: llms.txt yes, OpenAPI yes, SDK yes, MCP yes, status page yes, AI assistants allowed yes

Checked Nov 13, 2026.

MCP server

Supabase MCP server (hosted, OAuth sign-in)

claude mcp add --scope project --transport http supabase "https://mcp.supabase.com/mcp"

npm
npm install @supabase/supabase-js
PyPI
pip install supabase

Alternatives

Supabase (pgvector) This page

Free (open source)Free tierOfficial MCP

pgvector

Pick plain pgvector when you already run your own Postgres and only need the vector extension, with no hosted platform.

Free (open source)No free tier

Qdrant Cloud

Pick Qdrant Cloud when you want a dedicated vector search engine on managed clusters, separate from your app database.

Free (open source)Free tierOfficial MCP

Elasticsearch (Elastic Cloud)

Pick Elastic Cloud when large full-text search with vector and hybrid ranking over many indexed documents is the main job.

Free (open source)No free tierOfficial MCP

All vector databases APIs

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.”

  1. 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

  2. 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)
    );
    

    From supabase.com/docs/guides/ai/vector-columns.md

  3. 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);

    From supabase.com/docs/guides/ai/semantic-search.md

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
)

Mistakes to avoid

createClient(url, SUPABASE_SECRET_KEY) in browser code so that vector search "just works"
Use the publishable key in the browser and write Row Level Security policies; keep the secret key on the server

The secret key skips every security rule, so anyone who reads the page gets full access.

supabase.rpc('match_documents', {...}).eq('category', 'blog')
Add a filter_category parameter to the SQL function and pass it inside rpc()

A filter chained after rpc() runs after ranking and the limit, so it can return fewer rows than asked.

embedding vector(3072) from text-embedding-3-large with a plain HNSW index
Ask the embedding model for 1536 or fewer dimensions, or index (embedding::halfvec(3072)) with halfvec_cosine_ops

Plain vector indexes stop at 2,000 dimensions.

order by similarity desc in the match function
order by embedding <=> query_embedding asc, so the index is used

Sorting by a computed similarity column can make Postgres skip the index and scan everything.

vecs.get_or_create_collection(...) and docs.upsert(vectors=...), as on the Supabase vecs docs page
vx = vecs.create_client(DB_CONNECTION); docs = vx.get_or_create_collection(...); docs.upsert(records=[...])

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.