
Windsurf Supabase
STDIO优化的Supabase集成服务器
优化的Supabase集成服务器
A Windsurf-optimized MCP server for Supabase integration
This repository contains a Windsurf-optimized version of the Supabase MCP server, specifically enhanced to work seamlessly with the Windsurf Editor. It builds upon the Model Context Protocol (MCP) standard, adding crucial improvements for better error handling, response formatting, and SQL query processing.
We faced several challenges with the original error handling system:
Our solutions:
The original response format had limitations:
Our improvements:
We enhanced the SQL to REST conversion:
Key improvements in authentication handling:
This MCP server is specifically designed to work with the Windsurf Editor, providing:
// Example of enhanced response handling const response = await postgrestRequest({ method: 'GET', path: '/todos?is_completed=eq.false', }); // Response includes metadata for UI components const { data, metadata } = response;
git clone https://github.com/hertzfelt/windsurf-supabase-mcp.git
npm install
SUPABASE_URL=your_supabase_url SUPABASE_KEY=your_supabase_key
This server provides two main tools:
postgrestRequest
: Enhanced PostgREST API accessconst result = await postgrestRequest({ method: 'GET', path: '/users', });
sqlToRest
: Improved SQL to REST conversionconst query = 'SELECT * FROM users WHERE age > 18'; const { method, path } = await sqlToRest({ sql: query });
Contributions are welcome! Please read our Contributing Guidelines for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.