Supabase GodMode MCP Server
Provides tools for managing Supabase projects, including account and project settings, SQL queries and schema/table operations, Edge Functions deployment and invocation, Storage buckets and files, and Supabase documentation search, with OAuth-based authentication.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Supabase GodMode MCP Server
Complete Supabase project management via Model Context Protocol (MCP) with OAuth authentication.
π Quick Start
One-click deploy to Smithery (recommended):
npx @smithery/cli install @prompted365/supabase-godmode --project_ref YOUR_PROJECT_REFOr deploy from GitHub for automatic CD.
Related MCP server: Taskade MCP Server
β¨ Features
Account Management - List projects, manage settings, handle billing
Database Operations - Execute SQL, inspect schema, manage tables
Edge Functions - Deploy, invoke, and monitor serverless functions
Storage Management - Upload files, manage buckets, set permissions
Documentation Access - Search docs, get code examples
OAuth Authentication - Secure token management with auto-refresh
π¦ Installation
Option 1: Smithery (Recommended)
One-click deployment with automatic builds and hosting:
npx @smithery/cli install @prompted365/supabase-godmodeOption 2: Local Development
# Clone repository
git clone https://github.com/prompted365/supabase-godmode.git
cd supabase-godmode
# Install dependencies
npm install
# Build TypeScript
npm run build
# Run in development mode
npm run devπ See more installation options
βοΈ Configuration
Environment Variables
Create a .env file:
PROJECT_REF=your-project-ref
OAUTH_CLIENT_ID=your-oauth-client-id
OAUTH_CLIENT_SECRET=your-oauth-client-secret
FEATURES=docs,account,database,functions,storageMCP Client Configuration
Warp Terminal
Add to your MCP configuration:
{
"supabase-godmode": {
"command": "node",
"args": ["/path/to/supabase-godmode/dist/index.js"],
"env": {
"PROJECT_REF": "your-project-ref",
"OAUTH_CLIENT_ID": "your-client-id",
"OAUTH_CLIENT_SECRET": "your-client-secret"
}
}
}Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"supabase-godmode": {
"command": "node",
"args": ["/path/to/supabase-godmode/dist/index.js"],
"env": {
"PROJECT_REF": "your-project-ref"
}
}
}
}π§ Available Tools
Account Management
list-projects - Get all projects for authenticated user
get-project-settings - Retrieve project configuration
update-project-settings - Update project settings
Database Operations
execute-query - Run SQL queries against your database
list-tables - Get all tables in a schema
describe-table - Get detailed table schema information
create-table - Create new database tables
Edge Functions
list-functions - List all edge functions
deploy-function - Deploy or update a function
invoke-function - Test function execution
get-function-logs - Retrieve function logs
Storage Management
list-buckets - List all storage buckets
create-bucket - Create a new bucket
upload-file - Upload files to storage
list-files - List files in a bucket
delete-file - Remove files from storage
Documentation
search-docs - Search Supabase documentation
get-code-example - Get code examples for operations
π‘ Usage Examples
Query Database
// Through MCP client
await callTool('execute-query', {
project_ref: 'abc123',
query: 'SELECT * FROM users WHERE created_at > NOW() - INTERVAL \'7 days\'',
});Deploy Edge Function
await callTool('deploy-function', {
project_ref: 'abc123',
function_name: 'hello-world',
code: `
export default async (req) => {
return new Response('Hello World!', {
headers: { 'Content-Type': 'text/plain' },
});
}
`,
verify_jwt: true,
});Upload File to Storage
await callTool('upload-file', {
project_ref: 'abc123',
bucket: 'avatars',
path: 'user-123/profile.png',
file_data: base64EncodedData,
content_type: 'image/png',
});π OAuth Setup
1. Create OAuth Application
Go to your Supabase project dashboard
Navigate to Authentication > Providers
Create a new OAuth application
Set callback URL:
http://localhost:3000/callbackCopy client ID and secret
2. Configure Server
Add credentials to .env:
OAUTH_CLIENT_ID=your_client_id
OAUTH_CLIENT_SECRET=your_client_secret3. Authenticate
On first run, the server will:
Generate authorization URL
Open browser for authentication
Store tokens securely
Auto-refresh when expired
π οΈ Development
Project Structure
supabase-godmode/
βββ app/
β βββ server/
β β βββ index.ts # Main server entry
β β βββ oauth.ts # OAuth provider
β β βββ tools/
β β βββ account.ts # Account tools
β β βββ database.ts # Database tools
β β βββ functions.ts # Edge functions tools
β β βββ storage.ts # Storage tools
β β βββ docs.ts # Documentation tools
β βββ shared/
β βββ types.ts # TypeScript types
βββ smithery.yaml # Smithery configuration
βββ package.json
βββ tsconfig.jsonBuild Commands
# Development with hot reload
npm run dev
# Build for production
npm run build
# Run built server
npm start
# Run tests
npm testAdding New Tools
Create tool function in appropriate module
Use Zod for parameter validation
Handle errors consistently
Return MCP-formatted responses
Example:
server.tool(
'my-new-tool',
{
description: 'Description of what this tool does',
parameters: z.object({
param1: z.string().describe('First parameter'),
param2: z.number().optional().describe('Optional parameter'),
}),
},
async ({ param1, param2 }) => {
try {
// Tool implementation
return {
content: [
{
type: 'text',
text: 'Result data',
},
],
};
} catch (error: any) {
return {
content: [
{
type: 'text',
text: `Error: ${error.message}`,
},
],
isError: true,
};
}
}
);π Security
Token Storage: OAuth tokens stored securely in memory
Auto-Refresh: Tokens refreshed automatically before expiration
Input Validation: All inputs validated with Zod schemas
SQL Injection: Use parameterized queries
Rate Limiting: Respects Supabase API rate limits
π Troubleshooting
Common Issues
OAuth Authentication Fails
Verify client ID and secret are correct
Check callback URL matches OAuth app settings
Ensure project reference is valid
Database Query Errors
Verify table/column names exist
Check user permissions
Review SQL syntax
Function Deployment Issues
Verify function code is valid TypeScript/JavaScript
Check function name is unique
Ensure sufficient permissions
Debug Mode
Enable detailed logging:
DEBUG=* npm run devπ€ Contributing
Contributions welcome! Please:
Fork the repository
Create a feature branch
Add tests for new functionality
Submit a pull request
License
MIT License - see LICENSE file for details
π Documentation
Deployment Guide - Deploy to Smithery, Docker, or serverless
API Reference - Complete tool documentation
Contributing Guide - How to contribute
π¬ Support
Issues: GitHub Issues
Discussions: GitHub Discussions
Supabase Docs: supabase.com/docs
MCP Spec: modelcontextprotocol.io
Acknowledgments
Built with @smithery/sdk
Powered by Supabase
MCP protocol by Anthropic
Prompted LLC - Making AI infrastructure accessible
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Managed Postgres MCP: projects, SQL, docs search, and storage buckets via OAuth.
Manage Pipefork API projects, drafts, connections, secrets, and deployments through MCP.
Build, deploy, and host full-stack web apps from any MCP client. DB, auth, storage, cron included.
MCP server for interacting with the Supabase platform
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables comprehensive management of self-hosted or cloud Supabase instances with 54+ tools for database operations, authentication, storage, real-time subscriptions, migrations, and monitoring through MCP protocol.-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants like Claude, Cursor, VS Code, and Windsurf to manage workspaces, projects, tasks, and AI agents through natural language, with a hosted OAuth server or a local stdio package. Also supports generating MCP tools from any OpenAPI spec.2,530 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables clients such as Claude, Cursor, VS Code, and Windsurf to manage workspaces, projects, tasks, and AI agents through a hosted OAuth endpoint or a local stdio package, and to generate MCP tools from OpenAPI specs.2,530 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables MCP clients such as Claude, Cursor, VS Code, and Windsurf to manage workspaces, projects, tasks, AI agents, and app files through hosted OAuth or local stdio tools. It also includes OpenAPI codegen for generating MCP tools from any OpenAPI specification.2,530 npmMIT