loading…
Search for a command to run...
loading…
MCP server integrating with PocketBase to manage tasks and projects. Enables AI models to create tasks, list tasks with status filters, and browse projects.
MCP server integrating with PocketBase to manage tasks and projects. Enables AI models to create tasks, list tasks with status filters, and browse projects.
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 protected]password123A 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!
projects collectiontask collection with mandatory project relationships.env file for PocketBase authentication# 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.
http://127.0.0.1:8090npm install
Create a .env file in the project root:
PB_AUTH_TOKEN=your_super_admin_token_here
Compile the TypeScript code into JavaScript:
npm run build
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
Visit the health check endpoint in your browser:
http://localhost:3000/health
You should see:
{"status":"ok","message":"PMS MCP Server is running"}
Add to your .env file to change the port:
PORT=3000
PB_AUTH_TOKEN=your_super_admin_token_here
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.You can test the MCP server using the MCP Inspector or by connecting via the HTTP endpoint at http://localhost:3000/mcp.
npx @modelcontextprotocol/inspector
Then connect to: http://localhost:3000/mcp
claude_desktop_config.json or other complex configsWhen using MCP-compatible clients, connect to:
http://localhost:3000/mcp
@modelcontextprotocol/sdk: Core MCP functionalitypocketbase: PocketBase JS SDKexpress: HTTP server frameworkcors: Cross-Origin Resource Sharing middlewarezod: Schema validationdotenv: Environment variable managementAdd this to claude_desktop_config.json and restart Claude Desktop.
{
"mcpServers": {
"pocketbase-task-mcp-server": {
"command": "npx",
"args": []
}
}
}