
Supabase MCP Server
A Model Context Protocol server that enables AI tools to interact with Supabase databases, providing tools for reading, creating, updating, and deleting records in Supabase tables.
README
Supabase MCP Server
A Model Context Protocol (MCP) server that enables AI tools to interact with Supabase databases. This server provides tools for reading, creating, updating, and deleting records in Supabase tables.
Features
- Read rows from any Supabase table with filtering and column selection
- Create single or multiple records in tables
- Update records based on filter conditions
- Delete records based on filter conditions
- Comprehensive tool descriptions for AI model understanding
- Type-safe request/response handling with Pydantic
- Docker support for easy deployment
Prerequisites
- Python 3.9+
- Docker and Docker Compose
- Supabase project with service role key
- FastMCP-compatible AI IDE
Installation
- Clone the repository:
git clone https://github.com/yourusername/supabase-mcp.git
cd supabase-mcp
- Create a
.env
file with your Supabase credentials:
cp .env.example .env
# Edit .env with your Supabase credentials:
# SUPABASE_URL=your-project-url
# SUPABASE_KEY=your-service-role-key
- Build and start the container:
# Build and start in detached mode
docker-compose up --build -d
# To view logs
docker-compose logs -f
# To stop the container
docker-compose down
The server will be available at http://localhost:8000
.
Docker Management Commands
# Start the container
docker-compose up
# Start in detached mode (background)
docker-compose up -d
# Stop the container
docker-compose down
# View logs
docker-compose logs -f
# Rebuild the container
docker-compose up --build
# Check container status
docker-compose ps
# Restart the container
docker-compose restart
Troubleshooting Docker Issues
-
If the container fails to start:
# Check logs docker-compose logs -f # Check container status docker-compose ps # Remove and rebuild docker-compose down docker-compose up --build
-
If you get port conflicts:
# Stop any existing containers using port 8000 docker-compose down # Or modify the port in docker-compose.yml # ports: # - "8000:8000" # Change the first number to an available port
-
If environment variables aren't loading:
# Verify .env file exists and has correct values cat .env # Check environment variables in container docker-compose exec mcp-server env
Configuring MCP in Your AI IDE
General Configuration Steps
- Open your AI IDE's settings/preferences
- Navigate to the MCP or AI settings section
- Add a new MCP server with the following configuration:
{
"name": "Supabase MCP",
"command": "docker-compose",
"args": ["up"],
"cwd": "/path/to/supabase-mcp"
}
IDE-Specific Instructions
Cursor
- Open Settings (⌘, or Ctrl+,)
- Go to "AI" section
- Under "MCP Servers", click "Add Server"
- Use the configuration above
- Restart Cursor to apply changes
VS Code with AI Extensions
- Open Command Palette (⌘⇧P or Ctrl+Shift+P)
- Search for "MCP" or "AI Settings"
- Add new MCP server configuration
- Use the configuration above
- Reload VS Code window
JetBrains IDEs with AI Plugins
- Open Settings (⌘, or Ctrl+Alt+S)
- Navigate to "Tools" → "AI" → "MCP Servers"
- Click "+" to add new server
- Use the configuration above
- Restart IDE to apply changes
Verifying MCP Connection
- Check your IDE's status bar for MCP server status
- Look for a green indicator or "MCP Connected" message
- Try using AI features that require database access
- Check Docker logs for any connection issues:
docker-compose logs -f
Usage
- Start the MCP server:
docker-compose up
- Configure your AI tool to use the MCP server:
{
"mcpServers": {
"supabase": {
"command": "docker-compose",
"args": ["up"]
}
}
}
Available Tools
read_rows
Read rows from a Supabase table with optional filtering and column selection.
Example usage:
{
"table_name": "users",
"columns": ["id", "name"],
"filters": { "age": { "gt": 18 } },
"limit": 10
}
create_records
Create one or more records in a Supabase table.
Example usage:
{
"table_name": "users",
"records": [
{ "name": "John", "age": 30 },
{ "name": "Jane", "age": 25 }
]
}
update_records
Update records in a Supabase table based on filter conditions.
Example usage:
{
"table_name": "users",
"filters": { "status": "inactive" },
"updates": { "status": "active" }
}
delete_records
Delete records from a Supabase table based on filter conditions.
Example usage:
{
"table_name": "users",
"filters": { "id": 1 }
}
Security Considerations
- Always use the service role key in a secure environment
- Never expose the service role key in client-side code
- Use appropriate row-level security policies in Supabase
- Consider implementing rate limiting for production use
Contributing
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
License
MIT
推荐服务器

Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。