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/.
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.
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 pagePOST /oauth/callback— callback after user grants accessPOST /oauth/register— dynamic client registrationPOST /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. |
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
Milestones
Goal tasks
Standalone tasks
Habits
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
Tags
Reminder categories, rewards, snapshots, credits
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
| Status | Meaning | What 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. |