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 표현을 반환합니다.

개발

종속성 설치:

지엑스피1

서버를 빌드하세요:

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