Back to Home
semantius icon

postgrest-mcp

Verified Safe

by semantius

Overview

A PostgREST MCP (Model Context Protocol) server that uses OAuth2 for authentication and integrates with PostgREST APIs.

Installation

Run Command
deno task start

Environment Variables

  • AUTH_SERVER_URL
  • API_BASE_URL
  • API_KEY
  • SUPABASE_ANON_KEY
  • SUPABASE_URL

Security Notes

The server uses `getEnv` for all sensitive configurations (API keys, URLs), preventing hardcoded secrets. It employs Zod for input validation in its tools. The `bearerAuth` implementation performs a minimal token check (`!!token`), relying on the downstream PostgREST server for full JWT validation, which is acceptable for a proxy. The CORS policy allows all origins (`origin: (origin) => origin`), which can be a risk for sensitive endpoints if not properly protected by authentication. Host header construction for metadata is standard but could be a vector if not secured by the deployment platform. Overall, the security posture is reasonable for its intended purpose as an OAuth2-protected MCP gateway.

Similar Servers

Stats

Interest Score55
Security Score8
Cost ClassLow
Avg Tokens300
Stars1
Forks0
Last Update2026-01-18

Tags

PostgRESTMCPOAuth2APIServerless