PocketBase集合管理
STDIO用于列出PocketBase集合的工具服务器
用于列出PocketBase集合的工具服务器
Model Context Protocol Server for PocketBase
This is a TypeScript-based MCP server that provides:
pocketbase_list_collections
- List all collections from a PocketBase instance
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On 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 [email protected] --pb-admin-password=your-secure-password" } } }
To enable the PocketBase collections tool, you must provide the following configuration either as command line arguments or environment variables:
--pb-url=<url>
or PB_URL
- The URL of your PocketBase instance (e.g., http://localhost:8090)--pb-admin-email=<email>
or PB_ADMIN_EMAIL
- Admin email for authentication--pb-admin-password=<password>
or PB_ADMIN_PASSWORD
- Admin password for authenticationIf using environment variables, you can set them like this:
export PB_URL=http://localhost:8090 export PB_ADMIN_EMAIL=[email protected] export PB_ADMIN_PASSWORD=your-secure-password
Example using command line arguments:
node build/index.js --pb-url=http://localhost:8090 --pb-admin-email=[email protected] --pb-admin-password=your-secure-password
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.