MCP server

Connect Claude, ChatGPT, or any Model Context Protocol client to your Goal2Plan workspace. Read and write your goals, milestones, tasks, habits, reminders, tags, and rewards from any AI assistant.

Overview

The Goal2Plan MCP server is a stateless Cloudflare Worker that exposes your Goal2Plan data through standardized MCP tools. It authenticates with your Goal2Plan account via OAuth 2.0 (Firebase Auth under the hood) and operates directly on your Firestore data — there is no second copy.

  • Endpoint: https://mcp.goal2plan.com/mcp
  • Transport: Streamable HTTP (stateless)
  • Auth: OAuth 2.0 with PKCE (no static API keys)
  • Health check: GET https://mcp.goal2plan.com/health

Connecting a client

Most MCP clients let you add a server by pointing them at the /mcp URL. The OAuth dance opens a browser the first time and caches a refresh token afterwards.

Claude Desktop

Claude Desktop's claude_desktop_config.json only speaks the stdio transport natively. To reach a remote HTTPS MCP server you bridge it through mcp-remote, which spawns a local stdio process that proxies to the worker.

Open Settings → Developer → Edit Config and add:

{
  "mcpServers": {
    "goal2plan": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.goal2plan.com/mcp"
      ]
    }
  }
}

Restart Claude Desktop. The first run will pop a browser window for the OAuth flow and cache the refresh token under ~/.mcp-auth/.

Why mcp-remote? Native HTTP MCP support lives in Claude Desktop's Connectors UI rather than the JSON config. The mcp-remote bridge gives you the same experience from claude_desktop_config.json, no Pro plan required.

Claude Code

claude mcp add goal2plan https://mcp.goal2plan.com/mcp --transport http

ChatGPT (GPT Builder)

In the Builder, add a connector with the URL https://mcp.goal2plan.com/mcp and use OAuth as the auth type. ChatGPT will discover the OAuth metadata automatically.

One account per session. The MCP token belongs to the Goal2Plan account that authorized it. To switch accounts, revoke the session in your client and reauthorize.

OAuth flow

The server implements RFC 8414 authorization-server metadata at:

GET /.well-known/oauth-authorization-server

Endpoints exposed:

  • GET /oauth/authorize — opens the Goal2Plan sign-in page
  • POST /oauth/callback — callback after user grants access
  • POST /oauth/register — dynamic client registration
  • POST /oauth/token — exchanges auth code for access token

Tokens are scoped to your Goal2Plan user. The server never sees your Firebase password — it brokers a Google sign-in via Firebase Auth.

Group permissions

Personal entities are always read/write for the account that authorized the connector. Group entities follow the per-group MCP Permissions matrix that the group admin configures inside the Goal2Plan app:

Group → Members tab → MCP Permissions toggle.

For each entity type (Tasks, Goals, Habits, Reminders) the admin chooses which CRUD operations members can perform via external AI tools:

Permission Effect
create Members can create new entities of this type inside the group.
read Members can list and fetch entities of this type from the group.
update Members can edit fields of entities they can read.
delete Members can delete entities they can read.
Default: the MCP toggle is off for new groups. Until the admin enables it, members can only access their own personal entities through the connector. Admins themselves are not restricted.

Available tools

Tools are grouped by entity. Each tool's parameters are auto-discovered by the client; the descriptions below match what your AI assistant sees.

Goals

list_goals
get_goal
create_goal
update_goal
delete_goal

Milestones

list_milestones
get_milestone
create_milestone
update_milestone
delete_milestone

Goal tasks

list_goal_tasks
get_goal_task
create_goal_task
update_goal_task
update_goal_task_status
delete_goal_task

Standalone tasks

list_tasks
list_tasks_for_date
list_overdue_tasks
get_task
create_task
update_task
update_task_status
delete_task

Habits

list_habits
get_habit
create_habit
update_habit
delete_habit
toggle_habit_completion
get_habit_content
save_habit_content

Habits support four participation modes when linked to a group: personal, groupShared (one shared streak), groupEachMember (per-member streaks), and groupAssigned (only the assignee can complete).

Reminders

list_reminders
get_reminder
create_reminder
update_reminder
delete_reminder
get_reminder_content
save_reminder_content

Tags

list_tags
get_tag
create_tag
update_tag
delete_tag
tag_entity
untag_entity

Reminder categories, rewards, snapshots, credits

list_alert_categories
create_alert_category
update_alert_category
delete_alert_category
list_rewards
create_reward
update_reward
delete_reward
get_daily_snapshot
get_daily_snapshots_range
get_credit_balance
list_credit_transactions

Rich content format

description fields accept either plain text or AppFlowy Document JSON. contentJson fields (habit / reminder templates and per-date snapshots) require AppFlowy Document JSON.

Rather than restating the full schema here, the server exposes a tool that returns the canonical guide on demand:

get_content_format_guide()

Call it from your AI assistant whenever you need the exact node types, delta attributes, or example documents. The schema covers paragraphs, headings, todo lists, bulleted/numbered lists, quotes, dividers, links, bold/italic/strikethrough, and the per-date snapshot mechanism for habit and reminder templates.

Errors & troubleshooting

StatusMeaningWhat to do
401 unauthorized Missing or expired access token. Re-run the OAuth flow from your client.
401 invalid_token Token rejected by the server. Revoke and reauthorize the connector.
403 permission_denied Group MCP permissions block this operation. Ask the group admin to enable the relevant CRUD toggle.
404 not_found Entity ID does not exist or is not visible to your account. Confirm the ID and that you are a member of the group.
400 validation_error Required field missing or value out of range. Check the tool's parameter schema in your client.