# Timely — how to use (mcp.ai)

Timely is an automatic time-tracking platform capturing activity across applications, calendars, and devices, creating detailed timesheets for billing or productivity insights

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_timely?ms=1781541780000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `timely_create_webhook`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/timely`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/timely/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/timely/create/webhook` — Tool to create a new webhook for the specified account. use after specifying the target url and event subscriptions. call only once per configuration.
  - body: { url: string, secret?: string, subscriptions: string[] }
- `POST https://api.mcp.ai/api/timely/retrieve/account` — Tool to retrieve details of a specific account by its id. use when you need to fetch fresh account info after confirming the id. example: "retrieve account details for account id 364"
  - body: { id: integer }

## More
- Page: https://mcp.ai/timely
- Agent spec (llms.txt): https://mcp.ai/timely/llms.txt
- Postman collection: https://mcp.ai/timely/postman.json
