PocketBase Task MCP Server
https://claude.ai/chat/4dea4e6a-4f62-44b0-8a96-f87167a17fef https://claude.ai/public/artifacts/8f2db72a-f062-4d0c-b64c-e7f4018910d6
cloudflared tunnel --url http://localhost:3001
メールアドレス:
test@example.comパスワード:
password123
PocketBase タスク MCP サーバー
PocketBase と統合してタスクやプロジェクトを管理する Model Context Protocol (MCP) サーバーです。このサーバーを使用すると、AI モデル(Claude など)がタスクの作成、ステータスフィルター付きのタスク一覧表示、プロジェクトの閲覧を行えるようになります。
HTTP で動作中 - ローカルでのテストが容易で、デプロイの準備も万端です!
機能
HTTP トランスポート: シンプルな URL ベースのアクセス、複雑な設定は不要
ツールチェーン: 最初に ID を取得することで、タスクをプロジェクトに自動的にリンク
プロジェクト管理:
projectsコレクションからすべてのプロジェクトを一覧表示タスク管理: 必須のプロジェクト関係を持つ
taskコレクションにタスクを作成ステータスフィルタリング: タスクを一覧表示し、「保留中(Pending)」または「完了(Completed)」ステータスでフィルタリング
環境変数駆動: PocketBase 認証用に
.envファイルで安全に管理簡単なテスト: シンプルなヘルスチェックエンドポイントと MCP Inspector のサポート
Related MCP server: Todoist MCP Server
⚡ クイックスタート
# 1. Install dependencies
npm install
# 2. Create .env file
echo "PB_AUTH_TOKEN=your_super_admin_token_here" > .env
# 3. Build the project
npm run build
# 4. Start the server
node dist/index.jsサーバーが http://localhost:3000 で起動しました!
テスト方法: ブラウザで http://localhost:3000/health を開いてください。
🚀 はじめに
1. 前提条件
Node.js (v18以上)
ローカルで
http://127.0.0.1:8090にて実行中の PocketBasePocketBase スーパー管理者トークン
2. インストール
npm install3. 設定
プロジェクトのルートに .env ファイルを作成します:
PB_AUTH_TOKEN=your_super_admin_token_here🛠️ 開発とデバッグ
プロジェクトのビルド
TypeScript コードを JavaScript にコンパイルします:
npm run buildHTTP サーバーの起動
サーバーをローカルで実行します:
node dist/index.jsサーバーは http://localhost:3000(または .env ファイルで指定したポート)で起動します。
以下のような出力が表示されるはずです:
MCP server running on http://localhost:3000
Health check: http://localhost:3000/health
MCP endpoint: http://localhost:3000/mcpサーバーのテスト
ブラウザでヘルスチェックエンドポイントにアクセスします:
http://localhost:3000/health以下のように表示されるはずです:
{"status":"ok","message":"PMS MCP Server is running"}オプションのポート設定
ポートを変更するには .env ファイルに追加します:
PORT=3000
PB_AUTH_TOKEN=your_super_admin_token_here📖 利用可能なツール
list_projects: すべてのプロジェクトとその ID を取得します。create_task: 新しいタスクを作成します(task_title、eta、status、project_idが必要)。list_tasks: オプションのステータスフィルタリングを使用してすべてのタスクを一覧表示します。
🧪 ツールのテスト
MCP Inspector を使用するか、http://localhost:3000/mcp の HTTP エンドポイント経由で接続して、MCP サーバーをテストできます。
MCP Inspector の使用
npx @modelcontextprotocol/inspector次に、http://localhost:3000/mcp に接続します。
🌐 なぜ Stdio ではなく HTTP なのか?
利点:
設定ファイル不要:
claude_desktop_config.jsonなどの複雑な設定を編集する必要がありません簡単なテスト: ブラウザや Postman などのツールを使用して簡単に URL にアクセス可能
リモート対応: サーバーにデプロイしてどこからでもアクセス可能
マルチクライアント: 複数のアプリケーションが同時に接続可能
デバッグの向上: 標準的な HTTP ツールでリクエストとレスポンスを簡単に監視可能
MCP クライアントからの接続:
MCP 対応クライアントを使用する場合、以下に接続してください:
http://localhost:3000/mcp📝 依存関係
@modelcontextprotocol/sdk: MCP のコア機能pocketbase: PocketBase JS SDKexpress: HTTP サーバーフレームワークcors: Cross-Origin Resource Sharing ミドルウェアzod: スキーマバリデーションdotenv: 環境変数管理
This server cannot be deployed
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
- mcpOAuthnet.todoist
Official Todoist MCP server for AI assistants to manage tasks, projects, and workflows.
MCP server for generating rough-draft project plans from natural-language prompts.
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server that allows interaction with PocketBase databases, enabling record operations (fetch, list, create, update), file management, and schema migrations through natural language.2220 npm40MIT
- AlicenseAqualityDmaintenanceAn unofficial MCP server that enables AI agents to create and list tasks in Todoist using natural language. It supports task details such as due dates, priorities, and labels, while allowing for project-based filtering.3MIT
- AlicenseAqualityDmaintenanceAn MCP server that enables AI assistants to interact with the Taskwarrior command-line task management tool. It allows users to list, create, modify, and organize tasks using projects, tags, and annotations through natural language.132MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that connects to a Laravel Tasks API, enabling AI assistants to perform CRUD operations on tasks.-