MCP (Model Context Protocol)

Connect AI assistants like Claude Desktop, Cursor, or ChatGPT to your plant data via the Model Context Protocol.

Endpoints

GET/api/mcp

Get MCP server info, available scopes, and tool list. No authentication required.

POST/api/mcp(per-tool)

MCP Streamable HTTP endpoint. Accepts JSON-RPC 2.0 requests. Authenticate with your Bearer token.

Available tools

18 tools are available for plant data, interactive collection and detail views, AI identification, care profiles, and environment analysis.

ToolDescription
plants_show_collectionBrowse plant photo cards in MCP Apps-compatible clients
plants_show_detailShow a plant, care guidance, and recent activity
account_profileIdentify the connected account
plants_addCreate a new plant
plants_identifyIdentify a plant from an image URL
plants_resolve_care_profileGet a care profile by species or profile key
plants_set_care_profileApply a care profile to a plant
plants_add_from_imageIdentify, create plant, and upload photo in one step
environment_analyze_lightEstimate light level from an image
plants_check_light_matchCheck light compatibility for a plant
plants_searchSearch plants by name, species, or location
plants_listList plants with care context
plants_getGet a plant and its recent events
plants_updateUpdate a plant's fields
events_listRead paginated history by date and event type
events_addAdd a care event to a plant
plants_overviewGet overview stats and attention list
plants_summaryGet per-plant summary and recent activity

Client setup

Claude Desktop

Uses a stdio bridge via supergateway. Add to your Claude Desktop config:

{
  "mcpServers": {
    "Rootnotes": {
      "command": "npx",
      "args": [
        "-y", "supergateway",
        "--streamableHttp", "https://rootnotes.io/api/mcp",
        "--oauth2Bearer", "tnd_mcp_..."
      ]
    }
  }
}

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "Rootnotes": {
      "url": "https://rootnotes.io/api/mcp",
      "headers": {
        "Authorization": "Bearer tnd_mcp_..."
      }
    }
  }
}

Claude Code

Add via the CLI:

claude mcp add rootnotes \
  --transport http \
  https://rootnotes.io/api/mcp \
  -- --header "Authorization: Bearer tnd_mcp_..."

ChatGPT

Connect https://rootnotes.io/api/mcp using OAuth, with the configured public client ID and no client secret. Sign into the intended Rootnotes account and approve its requested permissions. After server updates, refresh tools or reconnect. Moss-pole watering uses mosspole_watered; event dates accept UTC or an explicit offset such as 2026-10-10T20:30:00+02:00.