PocketBase Task MCP Server

PocketBase Task MCP Server

MCP server integrating with PocketBase to manage tasks and projects. Enables AI models to create tasks, list tasks with status filters, and browse projects.

Category
访问服务器

README

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

  • Email: test@example.com
  • Password: password123

PocketBase Task MCP Server

A Model Context Protocol (MCP) server that integrates with PocketBase to manage tasks and projects. This server allows AI models (like Claude) to create tasks, list tasks with status filters, and browse projects.

Now running over HTTP - Easy to test locally and ready for deployment!

Features

  • HTTP Transport: Simple URL-based access, no complex configuration needed
  • Tool Chaining: Automatically links tasks to projects by fetching IDs first
  • Project Management: List all projects from the projects collection
  • Task Management: Create tasks in the task collection with mandatory project relationships
  • Status Filtering: List tasks and filter by 'Pending' or 'Completed' status
  • Environment Driven: Securely managed via .env file for PocketBase authentication
  • Easy Testing: Simple health check endpoint and MCP Inspector support

⚡ Quick Start

# 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

Your server is now running at http://localhost:3000!

Test it: Open http://localhost:3000/health in your browser.


🚀 Getting Started

1. Prerequisites

  • Node.js (v18+)
  • PocketBase running locally at http://127.0.0.1:8090
  • A PocketBase Super Admin token.

2. Installation

npm install

3. Configuration

Create a .env file in the project root:

PB_AUTH_TOKEN=your_super_admin_token_here

🛠️ Development & Debugging

Build the Project

Compile the TypeScript code into JavaScript:

npm run build

Start the HTTP Server

Run the server locally:

node dist/index.js

The server will start on http://localhost:3000 (or the port specified in your .env file).

You should see output like:

MCP server running on http://localhost:3000
Health check: http://localhost:3000/health
MCP endpoint: http://localhost:3000/mcp

Test the Server

Visit the health check endpoint in your browser:

http://localhost:3000/health

You should see:

{"status":"ok","message":"PMS MCP Server is running"}

Optional Port Configuration

Add to your .env file to change the port:

PORT=3000
PB_AUTH_TOKEN=your_super_admin_token_here

📖 Available Tools

  • list_projects: Fetch all projects and their IDs.
  • create_task: Create a new task (requires task_title, eta, status, and project_id).
  • list_tasks: List all tasks with optional status filtering.

🧪 Testing the Tools

You can test the MCP server using the MCP Inspector or by connecting via the HTTP endpoint at http://localhost:3000/mcp.

Using MCP Inspector

npx @modelcontextprotocol/inspector

Then connect to: http://localhost:3000/mcp

🌐 Why HTTP Over Stdio?

Advantages:

  • No Configuration Files: No need to edit claude_desktop_config.json or other complex configs
  • Easy Testing: Simple URL access via browser or tools like Postman
  • Remote Ready: Can be deployed to a server and accessed from anywhere
  • Multiple Clients: Multiple applications can connect simultaneously
  • Better Debugging: Easy to monitor requests and responses with standard HTTP tools

Connecting from MCP Clients:

When using MCP-compatible clients, connect to:

http://localhost:3000/mcp

📝 Dependencies

  • @modelcontextprotocol/sdk: Core MCP functionality
  • pocketbase: PocketBase JS SDK
  • express: HTTP server framework
  • cors: Cross-Origin Resource Sharing middleware
  • zod: Schema validation
  • dotenv: Environment variable management

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选