MCP Server Setup

Pulse includes a Model Context Protocol (MCP) server that lets AI assistants like Claude manage your tasks, habits, reviews, and more through natural conversation.

Prerequisites

Installation

The MCP server is included in the Pulse monorepo at services/mcp/. Build it:

cd services/mcp
pnpm install
pnpm build

Configuration

Add the MCP server to your Claude Code project by creating a .mcp.json file in your project root:

{
  "mcpServers": {
    "pulse-gtd": {
      "command": "node",
      "args": ["path/to/pulse-gtd/services/mcp/dist/index.js"],
      "env": {
        "API_BASE_URL": "https://pulsegtd.app",
        "API_TOKEN": "pgtd_your_api_key_here"
      }
    }
  }
}

Replace path/to/pulse-gtd with the actual path to your Pulse GTD repository, and pgtd_your_api_key_here with your API key.

Quick Setup

The MCP server runs locally on your machine via stdio — no network server needed. Just build, configure the path, and restart your AI assistant.

Available Tools

The MCP server exposes 18 tools:

Task Management

ToolDescription
list_tasksList tasks with optional date and completion filters
create_taskCreate a new task with title, date, urgency, importance
update_taskUpdate task fields
complete_taskMark a task as completed
delete_taskDelete a task

Projects

ToolDescription
list_projectsList all projects
create_projectCreate a new project

Habits

ToolDescription
list_habitsList all habits
create_habitCreate a new habit
log_habitLog a habit completion or skip
get_habit_streaksGet streak data for all habits

Reviews & Analytics

ToolDescription
list_reviewsList review entries
create_reviewCreate a weekly or monthly review
get_dashboardGet dashboard statistics

Organization

ToolDescription
list_bucketsList life buckets
list_bottlenecksList bottlenecks
create_bottleneckCreate a bottleneck

Usage Examples

Once configured, you can interact with Pulse through Claude:

"Create a task called 'Review Q1 metrics' for tomorrow, marked as Important"

"What habits do I have due today?"

"Run my weekly review"

"Show me my dashboard stats"

"Log my morning meditation habit as complete"

Transport

The MCP server uses stdio transport — it communicates via standard input/output. This means it runs locally on your machine and doesn't require a network server.

Environment Variables

VariableRequiredDescription
API_BASE_URLYesThe Pulse API URL (e.g., https://pulsegtd.app)
API_TOKENYesYour Pulse API key (starts with pgtd_)

Troubleshooting

API Key Security

Never commit your API key to version control. Use environment variables or a .env file that's in your .gitignore.

  • "Unauthorized" errors: Verify your API key is valid in Settings → API Keys
  • "Connection refused": Check that API_BASE_URL is correct and the server is running
  • MCP not loading: Restart Claude Code after adding/modifying .mcp.json
  • Build errors: Ensure you've run pnpm install and pnpm build in services/mcp/