
PostgREST
This is an MCP server for PostgREST. It allows LLMs perform database queries and operations on Postgres databases via PostgREST. This server works with both Supabase projects (which use PostgREST) and standalone PostgREST servers.
README
Supabase MCP Server
Connect your Supabase projects to Cursor, Claude, Windsurf, and other AI assistants.
The Model Context Protocol (MCP) standardizes how Large Language Models (LLMs) talk to external services like Supabase. It connects AI assistants directly with your Supabase project and allows them to perform tasks like managing tables, fetching config, and querying data. See the full list of tools.
Prerequisites
You will need Node.js installed on your machine. You can check this by running:
node -v
If you don't have Node.js installed, you can download it from nodejs.org.
Setup
1. Personal access token (PAT)
First, go to your Supabase settings and create a personal access token. Give it a name that describes its purpose, like "Cursor MCP Server".
This will be used to authenticate the MCP server with your Supabase account. Make sure to copy the token, as you won't be able to see it again.
2. Configure MCP client
Next, configure your MCP client (such as Cursor) to use this server. Most MCP clients store the configuration as JSON in the following format:
{
"mcpServers": {
"supabase": {
"command": "npx",
"args": [
"-y",
"@supabase/mcp-server-supabase@latest",
"--access-token",
"<personal-access-token>"
]
}
}
}
Replace <personal-access-token>
with the token you created in step 1. If you are on Windows, you will need to prefix this command.
If your MCP client doesn't accept JSON, the direct CLI command is:
npx -y @supabase/mcp-server-supabase@latest --access-token=<personal-access-token>
Note: Do not run this command directly - this is meant to be executed by your MCP client in order to start the server.
npx
automatically downloads the latest version of the MCP server fromnpm
and runs it in a single command.
Windows
On Windows, you will need to prefix the command with cmd /c
:
{
"mcpServers": {
"supabase": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@supabase/mcp-server-supabase@latest",
"--access-token",
"<personal-access-token>"
]
}
}
}
or with wsl
if you are running Node.js inside WSL:
{
"mcpServers": {
"supabase": {
"command": "wsl",
"args": [
"npx",
"-y",
"@supabase/mcp-server-supabase@latest",
"--access-token",
"<personal-access-token>"
]
}
}
}
Make sure Node.js is available in your system PATH
environment variable. If you are running Node.js natively on Windows, you can set this by running the following commands in your terminal.
-
Get the path to
npm
:npm config get prefix
-
Add the directory to your PATH:
setx PATH "%PATH%;<path-to-dir>"
-
Restart your MCP client.
Tools
Note: This server is pre-1.0, so expect some breaking changes between versions. Since LLMs will automatically adapt to the tools available, this shouldn't affect most users.
The following Supabase tools are available to the LLM:
Project Management
list_projects
: Lists all Supabase projects for the user.get_project
: Gets details for a project.create_project
: Creates a new Supabase project.pause_project
: Pauses a project.restore_project
: Restores a project.list_organizations
: Lists all organizations that the user is a member of.get_organization
: Gets details for an organization.
Database Operations
list_tables
: Lists all tables within the specified schemas.list_extensions
: Lists all extensions in the database.list_migrations
: Lists all migrations in the database.apply_migration
: Applies a SQL migration to the database. SQL passed to this tool will be tracked within the database, so LLMs should use this for DDL operations (schema changes).execute_sql
: Executes raw SQL in the database. LLMs should use this for regular queries that don't change the schema.get_logs
: Gets logs for a Supabase project by service type (api, postgres, edge functions, auth, storage, realtime). LLMs can use this to help with debugging and monitoring service performance.
Project Configuration
get_project_url
: Gets the API URL for a project.get_anon_key
: Gets the anonymous API key for a project.
Branching (Experimental, requires a paid plan)
create_branch
: Creates a development branch with migrations from production branch.list_branches
: Lists all development branches.delete_branch
: Deletes a development branch.merge_branch
: Merges migrations and edge functions from a development branch to production.reset_branch
: Resets migrations of a development branch to a prior version.rebase_branch
: Rebases development branch on production to handle migration drift.
Development Tools
generate_typescript_types
: Generates TypeScript types based on the database schema. LLMs can save this to a file and use it in their code.
Other MCP servers
@supabase/mcp-server-postgrest
The PostgREST MCP server allows you to connect your own users to your app via REST API. See more details on its project README.
Resources
- Model Context Protocol: Learn more about MCP and its capabilities.
License
This project is licensed under Apache 2.0. See the LICENSE file for details.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.