MP

mrwyndham/pocketbase-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

154 stars 37 forks Качество 89 Тренд 30MIT

mrwyndham/pocketbase-mcp — это кандидат на сервер MCP, импортированный из https://github.com/mrwyndham/pocketbase-mcp.

Обзор

mrwyndham/pocketbase-mcp — это кандидат на сервер MCP, импортированный из https://github.com/mrwyndham/pocketbase-mcp.

Обзор (машинный перевод)

Это очень развитый MCP-сервер на базе Dynamics, который я тестировал и совершенствовал. Он предоставляет сложные инструменты для взаимодействия с базами данных PocketBase. Этот сервер позволяет продвинуть работу с базой данных, управление схемами и обработку данными через протокол Model Context Protocol (MCP).

Вот видео, где я его использую: https://www.youtube.com/watch?v=ZuTIO3I7rTM&t=345s

Почему именно это, а не DynamicsEndpoints?

Это действительно было протестировано на последней версии. В настоящее время это версия 26.1 PocketBase и построена на определениях типов из JS-SDK, а не на произвольных и неправильных определениях, которые есть в Dynamics. Многие методы вообще не работают.

Настраивать MCP сервер локально (пока поддерживается только так)

Чтобы настроить MCP-сервер локально, нужно настроить его внутри вашего файла cline_mcp_settings.json или того, что вы используете (claude, курсор, конфигурация идентична, просто найдите, где он хранится). Вот как:

  1. Найти ваш файл cline_mcp_settings.json: Этот файл обычно находится в папке настроек пользователя Cursor. Например: '/Users/ваше имя пользователя/Библиотека/Поддержка приложений/Курсор/Пользователь/globalStorage/saoudrizwan.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

PocketBase MCP Server

A very much in progress MCP server based off of the Dynamics one that I have been testing and refining. That provides sophisticated tools for interacting with PocketBase databases. This server enables advanced database operations, schema management, and data manipulation through the Model Context Protocol (MCP).

Here is a video of me using it: https://www.youtube.com/watch?v=ZuTIO3I7rTM&t=345s

Why This And Not DynamicsEndpoints?

This has actually been tested on the latest version. Currently 26.1 of PocketBase and is built off of the type definitions in the JS-SDK and not the arbitrary and wrong definitions found in the Dynamics one. Many of the methods don’t even work.

Setup MCP Server Locally (Only Way Supported for Now)

To set up the MCP server locally, you’ll need to configure it within your cline_mcp_settings.json or whatever you use (claude, cursor, the config looks identical you just need to find where it is stored) file. Here’s how:

  1. Locate your cline_mcp_settings.json file: This file is usually located in your Cursor user settings directory. For example: /Users/yourusername/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

  2. Configure the server: Add a new entry to the mcpServers object in your cline_mcp_settings.json file. The key should be a unique name for your server (e.g., “pocketbase-server”), and the value should be an object containing the server’s configuration.

    {
      "mcpServers": {
        "pocketbase-server": {
          "command": "node",
          "args": ["build/index.js"],
          "env": {
            "POCKETBASE_URL": "http://127.0.0.1:8090",
            "POCKETBASE_ADMIN_EMAIL": "[email protected]",
            "POCKETBASE_ADMIN_PASSWORD": "admin_password"
          },
          "disabled": false,
          "autoApprove": ["create_record", "create_collection"]
        }
      }
    }
    
    • command: The command to start the server (usually node).
    • args: An array of arguments to pass to the command. This should point to the compiled JavaScript file of your MCP server (e.g., build/index.js). Make sure the path is correct.
    • env: An object containing environment variables.
      • POCKETBASE_URL: The URL of your PocketBase instance. This is required.
      • POCKETBASE_ADMIN_EMAIL: The admin email for your PocketBase instance (optional, but needed for some operations).
      • POCKETBASE_ADMIN_PASSWORD: The admin password for your PocketBase instance (optional, but needed for some operations).
    • disabled: Whether to disable to server on startup.
    • autoApprove: list of tools to auto approve.
    • Adjust the values in the env object to match your PocketBase instance’s settings.
  • Setup in vscode is similar , find or create .vscode/mcp.json and add
{
  "inputs": [
    {
Открыть полный README на GitHub

Установка

docker run -i --rm -e POCKETBASE_URL=http://host.docker.internal:8090 -e [email protected] -e POCKETBASE_ADMIN_PASSWORD=your_admin_password pocketbase-mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "pocketbase-server": { "command": "node", "args": ["build/index.js"], "env": { "POCKETBASE_URL": "http://127.0.0.1:8090", "POCKETBASE_ADMIN_EMAIL": "[email protected]", "POCKETBASE_ADMIN_PASSWORD": "admin_password" }, "disabled": false, "autoApprove": ["create_record", "create_collection"] } } }