Supabase MCP Server

by adiletD
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Allows querying of the feature_suggestions table in a Supabase database, with optional limits on the number of records returned.

Supabase MCP サーバー

これは、Supabase に接続し、feature_suggestions テーブルをクエリできる Model Context Protocol (MCP) サーバーです。

前提条件

  • Node.js (v16 以上)
  • npm
  • 資格情報付きのSupabaseプロジェクト

設定

  1. .envファイルに次の Supabase 資格情報が含まれていることを確認します。
    SUPABASE_URL=your_supabase_url SUPABASE_ANON_KEY=your_supabase_anon_key
  2. 必要な依存関係をインストールします。
    npm install

サーバーの実行

次を使用して MCP サーバーを実行します。

npx tsx mcp-server.ts

または、npm スクリプトを使用します。

npm run dev

AIツールへの接続

カーソル

  1. カーソルを開き、カーソル設定に移動します。
  2. **[機能]タブの[MCP サーバー]**セクションで、 **[+ 新しい MCP サーバーを追加]**をタップします。
  3. 次の詳細を入力してください。
    • 名前:スーパーベース
    • タイプ: コマンド
    • コマンド: npx tsx /path/to/mcp-server.ts
  4. サーバーが正常に接続されると、緑色のアクティブ ステータスが表示されます。

クロードデスクトップ

  1. Claude デスクトップを開き、 **[設定]**に移動します。
  2. **[開発]タブで[構成の編集]**をタップして構成ファイルを開きます。
  3. 次の構成を追加します。
    { "mcpServers": { "supabase": { "command": "npx", "args": ["tsx", "/path/to/mcp-server.ts"] } } }
  4. 設定ファイルを保存し、Claude デスクトップを再起動します。

利用可能なツール

クエリ機能の提案

Supabase データベースの feature_suggestions テーブルをクエリします。

パラメータ:

  • limit (数値、オプション): 返されるレコードの最大数 (デフォルト: 100)

AIツールでの使用例:

Can you show me feature suggestions from the database?

または制限付き:

Can you show me the top 10 feature suggestions?

トラブルシューティング

  • 接続の問題が発生した場合は、Supabase の資格情報が正しいことを確認してください。
  • コンソール出力にエラーメッセージがないか確認してください。
  • Supabase データベースに feature_suggestions テーブルが存在することを確認します。
-
security - not tested
F
license - not found
-
quality - not tested

Supabase データベースから機能の提案をクエリできるモデル コンテキスト プロトコル サーバー。これにより、Cursor や Claude などの AI ツールが機能要求データにアクセスして表示できるようになります。

  1. Prerequisites
    1. Setup
      1. Running the Server
        1. Connecting to AI Tools
          1. Cursor
          2. Claude Desktop
        2. Available Tools
          1. query_feature_suggestions
        3. Troubleshooting
          ID: q0r0dogm3j