Fantastical calendar MCP server — read events from Fantastical's local database, create via URL scheme
Project description
Fantastical MCP
An MCP server that gives AI assistants read/write access to your Fantastical calendar on macOS.
What it does
fantastical-mcp reads calendar events directly from Fantastical's local SQLite database and creates events via Fantastical's x-fantastical3:// URL scheme. No TCC permissions, no API keys, no network access -- it works entirely offline using the data Fantastical already stores on your Mac.
- Read -- Query events by date range, calendar, or full-text search
- Recurring events -- Series are expanded into per-occurrence results with timezone-aware rule evaluation and de-duplication of moved occurrences
- Write -- Create events using Fantastical's natural language parser
- Navigate -- Open Fantastical to a specific date
Installation
Prerequisites
- macOS
- Fantastical installed with at least one calendar
- An MCP client, such as Claude Desktop or Claude Code
- uv Python package manager:
brew install uv
Install via uvx (Any MCP Client)
Fantastical MCP is published on PyPI and can be run directly with uvx:
uvx fantastical-mcp
Configure your MCP client to use uvx with fantastical-mcp as the argument.
Claude Desktop
Option 1: One-Click Install (Recommended)
- Download the latest
.mcpbfile from the releases page - Double-click the file
- Done!
Option 2: Manual Config
- Go to Claude → Settings → Developer → Edit Config
- Add the Fantastical server:
{
"mcpServers": {
"fantastical": {
"command": "uvx",
"args": ["fantastical-mcp"]
}
}
}
- Save and restart Claude Desktop
Claude Code
claude mcp add-json fantastical '{"command":"uvx","args":["fantastical-mcp"]}'
To make it available globally (across all projects), add -s user:
claude mcp add-json -s user fantastical '{"command":"uvx","args":["fantastical-mcp"]}'
Verify it's working
After installation:
- If using Claude Desktop, you should see "Fantastical MCP" in the "Search and tools" list
- Try asking: "What's on my calendar today?"
Sample Usage
- "What's on my calendar today?"
- "Do I have any meetings on Thursday?"
- "Create a lunch meeting with Sarah tomorrow at noon at The Italian Place"
- "When am I free this Wednesday afternoon?"
- "Show me all events from my Work calendar this week"
- "Do I have any pending event invitations?"
Tips
- Create a project in Claude with custom instructions that explain how you organise your calendars. Tell Claude which calendars to prioritise and how you like events formatted.
- Pair with a task management MCP server (like things-mcp) so Claude can cross-reference your tasks and calendar, block time for deep work, or create todos from upcoming meetings.
- Use
get_availabilityto quickly find free slots: "When am I free for a 90-minute block this week?"
Local Development
git clone https://github.com/jaydenk/fantastical-mcp.git
cd fantastical-mcp
uv venv && uv pip install -e ".[test]"
See docs/configuration.md for environment variables, calendar exclusion, and transport options.
Available tools
| Tool | Description |
|---|---|
get_today |
All events for today, grouped by calendar |
get_upcoming |
Events for the next N days, grouped by date |
get_calendars |
List all calendars with event counts |
get_event |
Full details for a specific event by ID |
search_events |
Full-text search across titles, locations, notes, attendees |
get_events_by_calendar |
Events from a specific calendar |
get_availability |
Free/busy time slots for a date |
get_recurring |
Upcoming recurring events, optionally filtered by calendar |
get_invitations |
Pending event invitations that need a response |
get_recent |
Most recently added or synced events |
create_event |
Create an event using natural language |
show_date |
Open Fantastical's mini calendar to a date |
See docs/tools.md for parameters, types, defaults, and example output.
Troubleshooting
If it's not working:
-
Make sure Fantastical is installed and has been opened at least once
- The Fantastical database needs to exist for the server to read events
-
Claude Desktop can't find
uvx- Install uv globally with Homebrew (
brew install uv) - Alternative: Use the full path to
uvxin your config. Find it withwhich uvx(typically/Users/USERNAME/.local/bin/uvx)
- Install uv globally with Homebrew (
-
"Database not found" errors
- Fantastical stores its database at
~/Library/Group Containers/group.com.flexibits.fantastical2.mac/. Ensure this path exists and is accessible.
- Fantastical stores its database at
-
System calendars cluttering results
- Set
FANTASTICAL_EXCLUDED_CALENDARSto hide calendars like Weather or Openings. See docs/configuration.md for details.
- Set
Limitations
- No update or delete -- Fantastical's URL scheme only supports event creation. Modification and deletion require EventKit, which needs TCC permissions.
- macOS only -- Relies on Fantastical's macOS database location and the
opencommand. - Read-only database access -- The database is opened in
?mode=roto prevent any risk of corruption. - Blob format dependency -- The
NSKeyedArchiverserialisation format is an internal detail of Fantastical and could change between versions. An FTS fallback path mitigates this.
Documentation
- Tool reference -- Detailed parameters and example output for every tool
- Configuration guide -- Environment variables, transport options, calendar exclusion
- How it works -- Technical architecture and design decisions
- Development guide -- Project structure, testing, and contributing
Licence
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fantastical_mcp-0.1.3.tar.gz.
File metadata
- Download URL: fantastical_mcp-0.1.3.tar.gz
- Upload date:
- Size: 105.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe772af1a26594d9ceb798e2a1d39136c3deb64c40e030b0c1a6856319445480
|
|
| MD5 |
e333137c41bf79fa7576373c4b5433de
|
|
| BLAKE2b-256 |
3669d36a4feda7a8cddd99cf5b4a713e4d6467c99900129c42896dce274bde20
|
Provenance
The following attestation bundles were made for fantastical_mcp-0.1.3.tar.gz:
Publisher:
publish.yml on jaydenk/fantastical-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fantastical_mcp-0.1.3.tar.gz -
Subject digest:
fe772af1a26594d9ceb798e2a1d39136c3deb64c40e030b0c1a6856319445480 - Sigstore transparency entry: 1313971804
- Sigstore integration time:
-
Permalink:
jaydenk/fantastical-mcp@d14d86c832c7bae31b579d010a0209880269b412 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/jaydenk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d14d86c832c7bae31b579d010a0209880269b412 -
Trigger Event:
push
-
Statement type:
File details
Details for the file fantastical_mcp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: fantastical_mcp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
116993da40fee507c0f022bb91f9bc2d6de589755f05b36715f3bf20e54b018e
|
|
| MD5 |
6c9cf034b2641c82d2f197ac1e0de806
|
|
| BLAKE2b-256 |
e7a2bd0d219718cc3864bc5d544a01ce8428013c604deed470e3e9784668878f
|
Provenance
The following attestation bundles were made for fantastical_mcp-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on jaydenk/fantastical-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fantastical_mcp-0.1.3-py3-none-any.whl -
Subject digest:
116993da40fee507c0f022bb91f9bc2d6de589755f05b36715f3bf20e54b018e - Sigstore transparency entry: 1313972175
- Sigstore integration time:
-
Permalink:
jaydenk/fantastical-mcp@d14d86c832c7bae31b579d010a0209880269b412 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/jaydenk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d14d86c832c7bae31b579d010a0209880269b412 -
Trigger Event:
push
-
Statement type: