A simple n8n community node for working with CalDAV calendars.
Install | Compatibility | Usage | Configuration | Operations | Development
- Dynamic calendar loading - automatically fetch available calendars from server
- Smart calendar names - display user-friendly names instead of technical paths
- Calendar type detection - automatically identify calendar types (Events/Tasks/Calendar)
- Get calendar events for a specific date
- Create new events in calendar
- Delete events by UID
- Connect to any CalDAV server (Google Calendar, Apple iCloud, NextCloud, etc.)
- Basic authentication (username/password)
- Proper error handling - informative messages when no events found
- ISO date formats with timezone support
- π€ AI Tool support - can be used as a tool in AI Agent node
npm install n8n-nodes-caldav-calendarOr via n8n UI:
- Go to Settings > Community Nodes
- Enter
n8n-nodes-caldav-calendar - Click Install
- n8n version: 0.190.0 or later
- Node.js: 18.10.0 or later
- CalDAV servers: RFC 4791 compliant servers
| Server | Status | Notes |
|---|---|---|
| Google Calendar | β Working | Use app passwords |
| Apple iCloud | β Working | Standard authentication |
| NextCloud | β Working | Standard authentication |
| Yandex Calendar | Artificial 60s delays for WebDAV |
- In n8n, go to Credentials
- Create new credentials of type "CalDAV API"
- Fill in the fields:
- Server URL: Your CalDAV server URL (e.g.,
https://cal.example.com/caldav/) - Username: Your username
- Password: Your password
- Server URL: Your CalDAV server URL (e.g.,
- Server URL:
https://apidata.googleusercontent.com/caldav/v2/ - Use app password instead of main password
- Server URL:
https://caldav.icloud.com/
- Server URL:
https://your-nextcloud.com/remote.php/dav/calendars/USERNAME/
- Server URL:
https://caldav.yandex.ru/ - WARNING: Yandex artificially slows down WebDAV operations (60 seconds per MB since 2021)
- Symptoms: frequent 504 timeouts, especially when creating/updating events
- Recommendations:
- Use only for reading events
- Consider switching to Google Calendar or Nextcloud
- Wait several minutes between retries on errors
- Add CalDAV node to your workflow
- Select the created credentials
- Choose calendar from dropdown list π (automatically loaded from server)
- Select date to get events
- Execute workflow
The CalDAV node supports usage as an AI Tool for AI Agent:
- Add AI Agent node to your workflow
- In Tools section, select CalDAV node
- AI agent can independently query calendar events when users ask about plans, meetings, or events
Example AI agent questions:
- "What events do I have tomorrow?"
- "What's scheduled for this week?"
- "Are there any meetings on Monday?"
- "Create a team meeting tomorrow at 3 PM"
- "Delete the event with UID xyz789"
Retrieves calendar events for a specific date.
Parameters:
Calendar Name or ID- select calendar from listDate- date to get events for (ISO 8601 format)
Returns: Array of events with fields uid, summary, description, location, dtStart, dtEnd, url, etag
Creates a new event in the calendar.
Parameters:
Calendar Name or ID- select calendar from listEvent Title- event title (required)Start Date and Time- start date and time (required)End Date and Time- end date and time (required)Description- event description (optional)Location- event location (optional)
Returns: Created event object with uid, title, startDateTime, endDateTime, description, location, url, etag, success, message
Deletes an existing event by UID.
Parameters:
Calendar Name or ID- select calendar from listEvent UID- unique event identifier to delete (required)
Returns: Object with deletion confirmation including uid, url, success, message, deletedAt
- Automatic calendar selection: no more manual calendar path entry
- User-friendly names: instead of
/calendars/user/events-123/showsMy Calendar (Events) - Informative errors: when no events found, node reports exact reason
{
"uid": "event-123@example.com",
"summary": "Meeting with team",
"description": "Weekly team meeting",
"dtStart": "20241201T100000Z",
"dtStartISO": "2024-12-01T10:00:00.000Z",
"dtEnd": "20241201T110000Z",
"dtEndISO": "2024-12-01T11:00:00.000Z",
"url": "https://cal.example.com/event/123",
"etag": "\"123456789\"",
"calendarData": "BEGIN:VCALENDAR..."
}# Run tests
npm test
# Install test dependencies
npm installTests verify:
- Compiled node structure
- Package configuration
- Error handling
- Date and event parsing
# Install dependencies
npm install
# Build
npm run build
# Development with hot reload
npm run dev
# Run tests
npm test- β π€ AI Tool support - integration with AI Agent node
- β Improved compatibility with modern n8n versions
- β
Dynamic calendar loading via
loadOptionsMethod - β Improved calendar names with automatic type detection
- β
Proper error handling with
NodeOperationError - β Automated tests with mocha
- β TypeScript support and compilation
This node implements the CalDAV protocol as specified in RFC 4791.
PROPFIND- for calendar discoveryREPORT- for event queryingPUT- for event creation/updatesDELETE- for event deletion
Currently supports HTTP Basic Authentication. OAuth support may be added in future versions.
MIT
Contributions are welcome! Please read our contributing guidelines and submit pull requests to our GitHub repository.