PocketBase MCP Server

Integrations

  • Provides tools for listing collections from a PocketBase instance, allowing access to the database structure and schema information.

  • Implemented as a TypeScript-based MCP server, offering type-safe interactions with the underlying PocketBase collections and data.

pocketbase-mcp-server MCP サーバー

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

これは、以下を提供する TypeScript ベースの MCP サーバーです。

  • PocketBaseコレクションをリストするためのツール

特徴

ツール

  • pocketbase_list_collections - PocketBaseインスタンスからすべてのコレクションを一覧表示します
    • PocketBase 構成でサーバーを起動する必要があります
    • すべてのコレクションのJSON表現を返します

発達

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

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": { "pocketbase-mcp-server": { "command": "/path/to/pocketbase-mcp-server/build/index.js --pb-url=http://localhost:8090 --pb-admin-email=admin@example.com --pb-admin-password=your-secure-password" } } }

PocketBase の設定

PocketBase コレクション ツールを有効にするには、コマンド ライン引数または環境変数として次の構成を指定する必要があります。

  • --pb-url=<url>またはPB_URL - PocketBaseインスタンスのURL(例: http://localhost:8090
  • --pb-admin-email=<email>またはPB_ADMIN_EMAIL - 認証用の管理者メールアドレス
  • --pb-admin-password=<password>またはPB_ADMIN_PASSWORD - 認証用の管理者パスワード

環境変数を使用する場合は、次のように設定できます。

export PB_URL=http://localhost:8090 export PB_ADMIN_EMAIL=admin@example.com export PB_ADMIN_PASSWORD=your-secure-password

コマンドライン引数を使用する例:

node build/index.js --pb-url=http://localhost:8090 --pb-admin-email=admin@example.com --pb-admin-password=your-secure-password

デバッグ

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

npm run inspector

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

-
security - not tested
F
license - not found
-
quality - not tested

Claude AI が自然言語を通じてコレクションを一覧表示し、アクセスすることで PocketBase データベースと対話できるようにするモデル コンテキスト プロトコル サーバー。

  1. Features
    1. Tools
  2. Development
    1. Installation
      1. PocketBase Configuration
      2. Debugging
    ID: wh8u4doxsl