fantastical
An MCP server for creating calendar events in Fantastical on macOS with verification by reading back from the calendar store.
README
fantastical-mcp
An MCP server for creating calendar events in Fantastical on macOS — and, crucially, verifying that each event actually landed on the intended day.
Fantastical has no public API. It does expose an AppleScript parse sentence
command (the same natural-language parser as its quick-entry box), but that
command is effectively write-only: it can create events and list calendars, but
it cannot query events back. This server pairs that write path with a read-back
from the macOS calendar store (via EventKit), so a created event is confirmed
rather than assumed.
Built for use from Claude Desktop (or any MCP client that runs local stdio servers). It cannot run in a browser-based client — it drives a native macOS app.
Why the verification matters
Fantastical's parser reads the whole sentence, so it can silently reinterpret
input — consume part of a title as a time, or route an event to the wrong
calendar — and it reports no error when it does. On top of that, Fantastical
fuses three backends (real calendars, Todoist projects, Reminders lists) into one
list with colliding names, and calendarName does fuzzy matching, so a partial
name can land an event somewhere unexpected.
This server treats the model's parse as untrusted and checks it mechanically:
- All date math happens in code (Luxon), never in the model.
resolve_dateandvalidate_itemblock a write on a weekday that disagrees with the date (source says "Thursday" but the date is a Wednesday), an impossible date (Feb 30), a past date, a two-digit-year misread, or an end before the start. - Write, then read back. After every write, the event is read out of the
macOS calendar store and compared to what was intended. Anything that can't be
confirmed is reported as
UNVERIFIED— never as success. - No AppleScript injection. Every value (titles may be arbitrary pasted text) is passed as an argument, never interpolated into a script.
- Verifiable calendars only. The server cross-references Fantastical's list against the macOS store and flags which titles are real, writable event calendars versus Todoist/Reminders look-alikes.
Tools
| Tool | Purpose |
|---|---|
resolve_date |
Resolve a date interpretation to an absolute date and its weekday, in code. |
validate_item |
Mechanically validate a parsed event; blocks the write on any inconsistency. |
preview_event |
Render the exact sentence Fantastical will parse, without writing. |
create_event |
Create the event, then read it back and confirm the date. |
list_calendars |
List calendars, marking which are safe to write to and verify. |
verify_events |
Read events back from the macOS calendar store over a window. |
Requirements
- macOS with Fantastical installed.
- Node.js ≥ 18 and the Swift toolchain (ships with Xcode / Command Line Tools).
- Calendars used for events must exist in the macOS calendar store (System Settings → Internet Accounts), so the read-back can see them.
Install & build
git clone https://github.com/sidbandy/fantastical-mcp.git
cd fantastical-mcp
npm install
npm run build # compiles the Swift EventKit reader and the TypeScript server
npm test # 20 date-correctness tests
npm run build produces bin/ekread (a small, read-only EventKit binary, ad-hoc
signed with an embedded usage description) and dist/ (the compiled server).
Register with Claude Desktop
Add the server to ~/Library/Application Support/Claude/claude_desktop_config.json
(use absolute paths; find your node with which node):
{
"mcpServers": {
"fantastical": {
"command": "/usr/local/bin/node",
"args": ["/absolute/path/to/fantastical-mcp/dist/index.js"]
}
}
}
Restart Claude Desktop. On first use, macOS will prompt once to let the client control Fantastical (to write) and once to access Calendars (to verify) — allow both. Then ask it, e.g., "add a dentist appointment on July 20, 2026 from 3 to 4 PM."
How verification works (and its fallback)
The primary read-back is bin/ekread, an EventKit reader that answers in
milliseconds and returns JSON. EventKit requires Calendars permission attributed
to the host app; when granted, it is the fast, reliable path.
If EventKit is unavailable (e.g. the host process has no stable TCC identity), the server falls back to reading via Calendar.app AppleScript — slower, but it keeps verification working rather than silently degrading to "couldn't check."
Design notes
src/dates.ts— the correctness core (resolution, validation, sentence building). Covered bysrc/dates.test.ts.src/calendars.ts— calendar discovery, the write/verify allowlist, and read-back with matching.src/osa.ts— safe AppleScript/EventKit invocation (arguments only, no shell).scripts/*.applescript— the Fantastical and Calendar.app bridges.swift/ekread.swift— the read-only EventKit reader.
Limitations
- macOS only, and requires the Fantastical desktop app.
- Cannot be used from browser-based MCP clients.
- Fantastical's natural-language parser is the write path; the server mitigates its ambiguity with absolute sentences and post-write verification, but the verification step is what provides the guarantee, not the sentence.
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。