fantastical
Enables querying and managing Fantastical calendars and events via the MCP protocol, allowing AI assistants to list calendars, create events using natural language, and search or retrieve event details.
README
fantastical-mcp
A CLI and MCP server for Fantastical on macOS.
Fantastical keeps its own calendar store that is invisible to Calendar.app and EventKit. This tool bridges the gap by talking to Fantastical directly — via JXA scripting, Apple Shortcuts, and URL schemes — so you can query and create events from the terminal or from any MCP-compatible AI assistant.
Requirements
- macOS with Fantastical installed
- Python 3.10+
- uv
Install
git clone git@github.com:ramm/fantastical-mcp.git
cd fantastical-mcp
uv sync
macOS permissions
On first run, macOS will prompt you to grant permissions. Click Allow when asked:
- Automation: your terminal app (Terminal, iTerm, etc.) needs permission to control Fantastical via Apple Events. Triggered by commands like
calendars. - Shortcuts: running shortcuts from the terminal may prompt you to allow your terminal to run shortcuts. Triggered by commands like
eventsandsearch.
These prompts only appear once. If you accidentally deny a permission, you can re-enable it in System Settings > Privacy & Security > Automation (or Shortcuts).
When using the MCP server, the prompts will appear for the MCP host app (e.g. Claude Desktop) instead of your terminal.
Quick start
# List your calendars (works immediately, no setup needed)
uv run fantastical calendars
# Create an event using natural language
uv run fantastical add "Lunch with Alex tomorrow at noon"
# Set up helper shortcuts (one-time, needed for events/search)
uv run fantastical setup
# After setup — list today's events
uv run fantastical events today
# Upcoming events for the next 7 days
uv run fantastical events upcoming
# Search events by title
uv run fantastical search "standup"
All commands support --json for machine-readable output:
uv run fantastical --json events today
Setup
Some features (events by date, search) use Fantastical's App Intents through Apple Shortcuts. Run the guided setup to create the required shortcuts:
uv run fantastical setup
This checks which helper shortcuts are installed and gives step-by-step instructions for any that are missing. You only need to do this once.
| Feature | Needs setup? |
|---|---|
| List calendars | No |
| Create event | No |
| Events by date | Yes |
| Search events | Yes |
MCP server
To use fantastical-cli as an MCP server (e.g. with Claude Desktop), start it in stdio mode:
uv run fantastical serve
Or add it to your MCP client config:
{
"mcpServers": {
"fantastical": {
"command": "uv",
"args": ["run", "--directory", "/path/to/fantastical-cli", "fantastical", "serve"]
}
}
}
The server exposes these tools:
| Tool | Description | Response format |
|---|---|---|
list_calendars |
List all calendars | Plain text, one per line |
list_events |
Events in a date range | Compact tab-separated (id, title, start, end, attendeeCount) |
search_events |
Search events by title | Same as list_events |
create_event |
Create event via natural language | JSON |
get_event_details |
Full details of a cached event | Key-value text with attendees |
clear_cache |
Clear in-memory event/attendee caches | Status message |
List and search results are cached in memory — use get_event_details to retrieve full data (calendar, URL, attendees) for a specific event.
CLI reference
| Command | Description |
|---|---|
calendars |
List all Fantastical calendars |
add "..." |
Create event via natural language |
events today |
Today's events |
events upcoming |
Next 7 days (configurable with --days) |
events list |
Events in a date range (--from, --to) |
events --calendar "X" |
Filter by calendar name |
search <query> |
Search events by title |
setup [--force] |
Create/update helper shortcuts |
uninstall |
Remove helper shortcuts |
serve |
Start MCP server (stdio) |
Uninstall shortcuts
macOS doesn't support programmatic shortcut deletion. The uninstall command opens each helper shortcut in Shortcuts.app for you to delete manually:
uv run fantastical uninstall
Authorship
This project was created by autonomous AI software engineering agents and explicitly reviewed and approved by a human.
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 模型以安全和受控的方式获取实时的网络信息。