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 表示形式
发展
安装依赖项:
构建服务器:
对于使用自动重建的开发:
安装
要与 Claude Desktop 一起使用,请添加服务器配置:
在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json
在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json
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
- 用于身份验证的管理员密码
如果使用环境变量,您可以像这样设置它们:
使用命令行参数的示例:
调试
由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:
检查器将提供一个 URL 来访问浏览器中的调试工具。
This server cannot be installed
模型上下文协议服务器使 Claude AI 能够通过自然语言列出和访问集合来与 PocketBase 数据库进行交互。