数据库 · 开发者工具

Pocketbase MCP logo

Pocketbase MCP

mabeldata/pocketbase-mcp

PocketBase MCP Server是一个与PocketBase实例交互的MCP服务器,提供记录管理、集合管理、日志管理、定时任务管理和迁移管理等功能。

安装

npx -y @smithery/cli install @mabeldata/pocketbase-mcp --client claude

客户端配置

{
  "mcpServers": {
    "pocketbase-mcp": {
      "command": "node",
      "args": [
        "/path/to/pocketbase-mcp/build/index.js"
      ],
      "env": {
        "POCKETBASE_API_URL": "<POCKETBASE_API_URL>",
        "POCKETBASE_ADMIN_TOKEN": "<POCKETBASE_ADMIN_TOKEN>"
      }
    }
  }
}

环境变量

POCKETBASE_API_URLPOCKETBASE_ADMIN_TOKEN
GitHub 星标
8
分类
数据库, 开发者工具
更新于
2026年10月6日

工具(29)

  • fetch_record

    Fetch a single record from a PocketBase collection by ID.

  • create_record

    Create a new record in a PocketBase collection.

  • update_record

    Update an existing record in a PocketBase collection.

  • delete_record

    Delete a record from a PocketBase collection by ID (permanent).

  • batch_records

    Execute multiple record operations (create/update/upsert/delete) in ONE transactional batch — if any operation fails, the whole batch rolls back.

  • get_collection_schema

    Get the schema of a PocketBase collection.

  • upload_file

    Upload a file to a specific field in a PocketBase collection record.

  • download_file

    Get the download URL for a file stored in a PocketBase collection record.

  • get_collection_scaffolds

    Get example collection schema payloads (server >= v0.37) — an object keyed by collection type (base, auth, view) with ready-to-edit templates for building new…

  • dry_run_view_query

    Validate a VIEW collection SQL query without saving the collection (server >= v0.37).

  • get_log

    Get a single API request log by ID.

  • get_logs_stats

    Get API request logs statistics with optional filtering.

  • truncate_logs

    Delete ALL API request logs (server >= v0.40).

  • list_cron_jobs

    Returns list with all registered app level cron jobs.

  • run_cron_job

    Triggers a single cron job by its id.

  • create_backup

    Queue a new database+storage backup.

  • restore_backup

    Restore the instance from an existing backup key.

  • get_settings

    Fetch all app settings (sections: meta, logs, smtp, batch, backups, s3, rateLimits,...).

  • update_settings

    Bulk-update settings with a partial payload.

  • All-or-nothing.

    There is no read-only mode: SQL statements that modify or drop data (UPDATE, DELETE, DROP, PRAGMAs,...) are just as executable as SELECT.

  • Auditable.

    SQL calls land in the PocketBase request logs (POST /api/sql), so list_logs can reconstruct what ran.

  • set_migrations_directory

    Set the directory where migration files will be created and read from.

  • create_migration

    Create a new, empty PocketBase migration file with a timestamped name.

  • create_collection_migration

    Create a migration file specifically for creating a new PocketBase collection.

  • add_field_migration

    Create a migration file for adding a field to an existing collection.

  • apply_migration

    Apply a specific migration file.

  • revert_migration

    Revert a specific migration file.

  • apply_all_migrations

    Apply all pending migrations.

  • revert_to_migration

    Revert migrations up to a specific target.

本页信息摘自该项目的 README。 查看 README

支持的客户端

该服务器 README 中提到的客户端:

查看全部
Claude Desktop logo

Claude Desktop

桌面端 · 免费增值 · Proprietary

Anthropic 官方推出的 Claude AI 桌面应用程序。支持 MCP 服务器以扩展功能。

WindowsMacOS
Cline logo

Cline

桌面端 · 免费 · MIT

集成到 IDE 中的 AI 代码助手。支持 MCP 服务器以增强功能。

WindowsMacOSLinux

相关 MCP 服务器

更多服务器
Supabase MCP logo

Supabase MCP

supabase-community/supabase-mcp

1.3k

Supabase MCP Server是一个连接Supabase项目与AI助手的工具,通过Model Context Protocol(MCP)标准化大型语言模型(LLMs)与外部服务的交互,实现数据库管理、配置获取和数据查询等功能。

数据库
Genai Toolbox logo

Genai Toolbox

googleapis/genai-toolbox

769

MCP Toolbox for Databases是一个开源数据库MCP服务器,专注于企业级和生产质量,简化工具开发,提供连接池、认证等复杂功能。

数据库
Supabase MCP Server logo

Supabase MCP Server

alexander-zuev/supabase-mcp-server

677

Supabase MCP服务器是一个开源工具,允许IDE安全执行SQL、管理模式变更、调用Supabase管理API和使用Auth Admin SDK,内置安全控制。

数据库
Awesome MCP List logo

Awesome MCP List

MobinX/awesome-mcp-list

645

这是一个持续更新的MCP服务器精选列表,涵盖了浏览器控制、艺术与文化、云平台、命令行、通信、客户数据平台、数据库、开发者工具、数据科学工具、文件系统、金融与金融科技、游戏、知识与记忆、位置服务、营销、监控、搜索和实用工具等多个类别。每个项目都附带了GitHub链接和星标数量,方便用户快速了解和使用。

数据库
PostgreSQL Model Context Protocol (PG MCP) Server logo

PostgreSQL Model Context Protocol (PG MCP) Server

stuzero/pg-mcp-server

440

PG-MCP是一个为PostgreSQL数据库设计的模型上下文协议服务器,提供AI代理发现、连接、查询和理解数据库的API,支持多数据库连接、丰富的目录信息和查询解释功能。

数据库
dbhub logo

dbhub

bytebase/dbhub

332

DBHub是一个实现模型上下文协议(MCP)的通用数据库网关,支持多种数据库连接和操作。

数据库