Supabase NextJS MCP Server

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Provides tools for database operations in Supabase including querying data, inserting records, updating records, and deleting records, allowing interaction with Supabase tables from a NextJS application.

supabase-nextjs-server MCP サーバー

モデルコンテキストプロトコルサーバー

これは、NextJS用のシンプルなメモシステムを実装したTypeScriptベースのMCPサーバーです。以下の機能を提供することで、MCPのコアコンセプトを実証しています。

  • URIとメタデータを含むテキストメモを表すリソース
  • 新しいノートを作成するためのツール
  • メモの要約を生成するためのプロンプト

特徴

初期化

  • NEXT_PUBLIC_SUPABASE_URLおよびNEXT_PUBLIC_SUPABASE_ANON_KEY環境変数が必要です

リソース

  • note:// URI 経由でメモの一覧表示とアクセスを行う
  • 各ノートにはタイトル、内容、メタデータがあります
  • シンプルなコンテンツアクセスのためのプレーンテキスト MIME タイプ

ツール

  • create_note - 新しいテキストノートを作成する
    • タイトルとコンテンツを必須パラメータとして受け取ります
    • メモをサーバー状態に保存する

プロンプト

  • summarize_notes - 保存されているすべてのメモの要約を生成する
    • すべてのノートの内容を埋め込みリソースとして含めます
    • LLM要約のための構造化されたプロンプトを返す

発達

依存関係をインストールします:

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

インストール

Claude Desktop で使用するには、サーバー設定を追加します。

MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "supabase-nextjs-server": { "command": "/path/to/supabase-nextjs-server/build/index.js" } } }

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Supabase Notes を自動的にインストールするには:

npx -y @smithery/cli install @tengfone/supabase-nextjs-mcp-server --client claude

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

MCP の概念を使用してテキスト ノートの作成と要約をサポートする、NextJS を使用したシンプルなノート システムを処理するための TypeScript ベースの MCP サーバーです。

  1. Features
    1. Init
    2. Resources
    3. Tools
    4. Prompts
  2. Development
    1. Installation
      1. Installing via Smithery
      2. Debugging
    ID: 9i4b9xiqrc