
ssakone/pb_mcp_server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
ssakone/pb mcp server는 MCP 서버 후보가 https://github.com/ssakone/pb_mcp_server.에서 수입되었습니다
개요
ssakone/pb mcp server는 MCP 서버 후보가 https://github.com/ssakone/pb_mcp_server.에서 수입되었습니다
개요(AI 번역)
PocketBase 기능에 대한 포괄적 인 액세스를 제공하는 모델 Context Protocol (MCP) 서버. 이 서버는 AI 조수 및 기타 MCP 클라이언트가 인증, 데이터 관리 및 관리 작업을 위해 PocketBase 데이터베이스와 상호 작용할 수 있습니다.
특징
-Authentication: 세션 관리와 사용자 인증
- Session Persistence:
saveSession매개 변수와 도구 호출의 세션을 저장 - ** 자동 인증**: 환경 변수를 사용하여 시작시 자동으로 인증 -Collection 관리: 생성, 업데이트, 삭제 및 쿼리 모음 (admin only)
- Record CRUD: 전체 생성, 읽기, 업데이트, 기록에 대한 작업을 삭제
- 사용자 관리: 사용자 계정 관리 auth collection
- ** 사용자 정의 헤더**: 사용자 지정 HTTP 헤더를 어떤 요청으로 전송 -사용자 지정 HTTP 요청: 어떤 PocketBase API 엔드포인트에 raw HTTP 요청 보내기 -Query Support: 기록 및 사용자를 위한 필터링, 분류 및 질화 -Error Handling: 일관성, 정보 오류 응답
- Multi-Instance: 여러 PocketBase 인스턴스에 연결 지원
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
PocketBase MCP Server
A Model Context Protocol (MCP) server that provides comprehensive access to PocketBase functionality. This server enables AI assistants and other MCP clients to interact with PocketBase databases for authentication, data management, and administrative operations.
Features
- Authentication: Admin and user authentication with session management
- Session Persistence: Save sessions across tool calls with
saveSessionparameter - Auto-Authentication: Automatically authenticate at startup using environment variables
- Collection Management: Create, update, delete, and query collections (admin only)
- Record CRUD: Full create, read, update, delete operations on records
- User Management: Manage user accounts in auth collections
- Custom Headers: Send custom HTTP headers with any request
- Custom HTTP Requests: Send raw HTTP requests to any PocketBase API endpoint
- Query Support: Filtering, sorting, and pagination for records and users
- Error Handling: Consistent, informative error responses
- Multi-Instance: Support for connecting to multiple PocketBase instances
- TOON Output Format: Optional TOON format for 30-60% token reduction with LLMs
Installation
# Clone the repository
git clone https://github.com/ssakone/pocketbase-mcp-server.git
cd pocketbase-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
Configuration
Environment Variables
Create a .env file or set environment variables:
# PocketBase server URL (default: http://127.0.0.1:8090)
POCKETBASE_URL=http://127.0.0.1:8090
# Admin token for authenticated operations (optional - can be provided per-request)
POCKETBASE_ADMIN_TOKEN=your_admin_token_here
# Auto-authentication at startup (optional)
# If both are provided, the server will authenticate and obtain a token automatically
[email protected]
POCKETBASE_ADMIN_PASSWORD=your_admin_password
# Output format: json (default) or toon
# TOON format reduces token usage by 30-60% when communicating with LLMs
MCP_OUTPUT_FORMAT=json
Configuration File
Alternatively, create a pocketbase.config.json:
{
"pocketbaseUrl": "http://127.0.0.1:8090",
"pocketbaseAdminToken": "your_admin_token_here"
}
Running the Server
stdio Mode (for MCP clients like Cursor, Kiro)
npm start
HTTP/SSE Mode (for web clients and remote access)
# Default port 3001
npm run start:http
# Custom port
PORT=8080 npm run start:http
The HTTP server exposes an SSE endpoint at http://localhost:3001/sse.
MCP Client Configuration
Cursor/Kiro Configuration
Add to your MCP configuration:
{
"mcpServers": {
"pocketbase": {
"command": "npm",
"args": ["start"],
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"pocketbase": {
"command": "npm",
"args": ["start"],
"cwd": "/path/to/pocketbase-mcp-server",
"env": {
"POCKETBASE_URL": "http://127.0.0.1:8090",
"POCKETBASE_ADMIN_EMAIL": "[email protected]",
"POCKETBASE_ADMIN_PASSWORD": "your_password"
}
}
}
}