Back to Browse

When Free MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Which days and times am I free? Reads your calendar feeds and answers with the slots you can offer.

About

Which days and times am I free? Reads your calendar feeds and answers with the slots you can offer.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (1 strong, 2 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

9 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

env_vars

Check that this permission is expected for this type of plugin.

clipboard

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Private iCal addresses of your calendars, comma-separated. Optional if you saved them with `whenfree add`.Required

Environment variable: WHENFREE_CALENDARS

Time zone for answers, like Europe/London. Default: the computer's.Optional

Environment variable: WHENFREE_TZ

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "when-free": {
      "command": "uvx",
      "args": [
        "when-free==0.5.0"
      ],
      "env": {
        "WHENFREE_TZ": "your-whenfree-tz-here",
        "WHENFREE_CALENDARS": "your-whenfree-calendars-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

when-free

when-free is a command-line tool and MCP server that reads your calendars (Google, Outlook, iCloud or any .ics file) and a scheduling message, and lists the free time slots you can offer back.

Someone asks when you're free. This reads your calendar and gives you the answer, ready to paste.

tests PyPI License: Apache-2.0

A recruiter's message goes in; the free slots on those days come out

  • Paste the message, get the slots. It reads "Tuesday or Wednesday next week, between 10am and 4pm" and answers for exactly those days and hours.
  • Works with Google, Outlook and iCloud calendars, or any .ics file. Several calendars at once.
  • Private. It runs on your computer, needs no account and no API key, and never changes your calendar. Mail and chat tools exist, but only in the MCP server and only for services you sign in to yourself.
  • Works from your AI tools too: Claude, Cursor and other MCP clients, Open WebUI, n8n, Shortcuts, scripts.
  • And on your other devices: phones, tablets and watches, Home Assistant (and Alexa, Google Home, Siri through it), and the menu bar or status bar of macOS, Linux and Windows.

Contents

Try it · Add your calendar · Everyday use · Reading a message · Use it from other tools · Other devices · Privacy · Settings · What counts as busy · Limits · Problems · FAQ · Where it is listed

Try it in a minute

With uv, nothing to install first:

uvx when-free demo

To keep it (needs Python 3.11 or newer):

uv tool install when-free          # or: pipx install when-free
whenfree demo

Using Claude Desktop? You can skip all of this: install the one-click extension.

whenfree demo makes up a calendar for next week and answers a recruiter's message from it. It reads none of your data and saves nothing:

  > Hi! Thanks for applying. Could you share a few times on Tuesday, Wednesday or Thursday next week,
  > between 10am and 4pm? The interview takes about an hour.

  Free between 10:00 and 16:00 (Europe/London), slots of 60+ minutes, 15-minute buffer around events:
  - Tue 13 Oct: 11:45–12:45, 14:15–16:00
  - Wed 14 Oct: 12:15–14:15
  - Thu 15 Oct: 13:15–14:45

Add your calendar

  1. Copy your calendar's private address. It's a link that ends in .ics:

    CalendarWhere to find it
    Google CalendarSettings → click your calendar on the left → Integrate calendar → Secret address in iCal format
    OutlookSettings → Calendar → Shared calendars → Publish a calendar → the ICS link
    iCloudCalendar → the share icon next to the calendar → Public Calendar (a webcal:// link is fine)
    Anything elseAny .ics link, or an exported .ics file
  2. Run whenfree add and paste it. The address isn't shown while you paste. It's checked first, and saved only if it works:

    $ whenfree add
    Paste the address and press Enter (it is not shown):
    Added 'personal': 412 events, 9 block time in the next 14 days.
    Saved in /Users/you/.config/when-free/config.toml, readable only by you. Now run: whenfree
    
  3. Run whenfree. You'll see your free time for the next working days.

On a Mac, pbpaste | whenfree add takes the address straight from the clipboard.

Keep the address secret. It works like a password: anyone who has it can read that calendar. Give it to whenfree add and to nothing else, so not to a chat, a shell command or a repository. If it leaks, reset it in your calendar's settings.

Do this in a browser, because the phone app doesn't show the address.

  1. Open Google Calendar settings: the gear icon, then Settings.
  2. In the left column, under Settings for my calendars, click the calendar you want. The one with your own name is where invitations arrive.
  3. Scroll down to Integrate calendar and copy Secret address in iCal format. It ends in basic.ics. Don't take "Public address in iCal format", which only works for a calendar you've made public.
  4. Run whenfree add and paste it when asked.

No "Secret address"? Work and school accounts can have it switched off. Export the calendar instead (Settings → Import & export → Export), unzip it, and run whenfree add ~/calendars/work.ics. An export is a snapshot, so export again when your calendar changes.

A slot counts as free only if it's free in every calendar you add.

whenfree add --name work                 # a second calendar: asks for its address
whenfree add ~/calendars/family.ics      # an exported file instead of an address
whenfree check                           # can every calendar be read?

They're kept in ~/.config/when-free/config.toml, one [[calendar]] block each, with a name and a url or path. You can edit that file by hand. whenfree init creates an empty one.

Everyday use

You wantRun
Your free time over the next working dayswhenfree
The days and hours a message asks aboutpbpaste | whenfree --message - (Mac clipboard) or whenfree --message invite.txt
Next week's afternoonswhenfree --days "next week" --hours afternoon
Specific dayswhenfree --days "Thu 15 Oct, Fri 16 Oct"
A date rangewhenfree --from 2026-10-12 --to 2026-10-16
Only slots long enough for a 90-minute meetingwhenfree --min 90
To see what blocks each daywhenfree --busy
The answer in another time zonewhenfree --tz America/New_York
JSON for a scriptwhenfree --format json
To copy the answerwhenfree ... | pbcopy (only the slot lines are copied)

Only the slot lines go to standard output. The context goes to standard error, so | pbcopy copies exactly what you'd paste into a reply.

Reading a message

--message finds the days and hours in ordinary text. It understands:

  • Dates written in any common way: Thu 1 Oct · Thursday the 1st of October · Monday, October 5th · 5 October · 2026-10-05 · Wednesday 30th
  • Hours: between 10:00am and 4:00pm · 10:00–16:00 · 9-5pm · 2 to 4 pm
  • Words, when there's no date (here, today is Thursday 1 Oct):
WrittenRead as
today · tomorrow · the day after tomorrowThu 1 · Fri 2 · Sat 3 Oct
Thursday or Fridaythe coming ones, today included: Thu 1, Fri 2 Oct
this Tuesday · next TuesdayTuesday of this week (already past, so left out and named) · Tuesday of next week, Tue 6 Oct
next week · this week · the week after nextthat week's working days, from today on
Tuesday or Wednesday next weekTue 6, Wed 7 Oct
any afternoon · Friday morning · evening12:00–17:00 · 09:00–12:00 · 17:00–20:00, unless hours are given

It always tells you how it read the dates, so you can check them against the message. A few rules keep it from guessing:

  • Explicit dates win. A heading like "Next week:" above "Wednesday 30th, Thursday 1st" doesn't add a whole week.
  • "Good morning" is a greeting, not a time.
  • Days already past are left out and named, never dropped silently. "Wednesday 30th" means the nearest Wednesday that's a 30th, so a message from last week reads as last week.
  • Words count from today. For an older message that says "tomorrow", give the days yourself with --days.

The whenfree command never connects to your mailbox: you paste the message, pipe it in, or save it to a file. Through the MCP server, an assistant can instead fetch the message from Gmail, Outlook, Slack or Teams, but only after you ran whenfree connect for that service.

If you run a model yourself, it can do the reading instead. Add this to the settings file:

[extract]
command = ["ollama", "run", "llama3.2"]          # the prompt is sent on standard input
# command = ["my-cli", "ask", "{prompt}"]        # or placed where {prompt} is

The command receives the message and must print JSON: {"days": ["2026-10-05"], "hours": "10:00-16:00", "minutes": 60}. If it fails, pattern matching is used instead. Nothing runs unless you configure it, and --no-extract skips it for one run. The message goes to whatever that command talks to, so use a local model for private text.

Use it from other tools

Every way gives the same free-time answer, and leaves event titles out unless asked. No tool writes to a calendar.

Your toolUseSet up
Claude DesktopOne-click extensiondouble-click
Claude Code, with a skill that knows when to use itPlugintwo commands
Claude Code, Cursor, VS Code, any MCP clientMCP serverone line
Raycast, a right-click on a message (macOS)Recipesa few minutes
Open WebUI, n8n, Shortcuts, Raycast, anything that calls a URLLocal HTTP serverwhenfree serve
Your own agent with function callingSchema and calltwo commands
PythonThe libraryimport whenfree

Claude Code plugin

The plugin bundles the MCP server with a skill that tells Claude when to use it: when you ask about your availability, paste a message asking when you can meet, or before it proposes a time.

/plugin marketplace add YauhenBichel/when-free
/plugin install when-free@when-free

Then add your calendar once, if you have not yet: uvx when-free add.

MCP: Claude, Cursor and other assistants

claude mcp add when-free -- uvx when-free mcp          # Claude Code

For Cursor and other MCP clients, add this to their server list. uvx fetches when-free the first time, so there's nothing to install:

{
  "mcpServers": {
    "when-free": { "command": "uvx", "args": ["when-free", "mcp"] }
  }
}

For a client that expects npx (available from the next release): "command": "npx", "args": ["-y", "when-free", "mcp"]. The npm package is only a launcher: it starts this same version with uvx, so uv (or pipx) must be installed.

If you installed it with uv tool install, use "command": "whenfree", "args": ["mcp"] instead. It's also listed in the MCP registry as io.github.YauhenBichel/when-free, on mcprush and in the M8ven Trust Index.

Grok Build (xAI) reads ~/.grok/config.toml, or .grok/config.toml in a project:

[mcp_servers.when-free]
command = "uvx"
args = ["when-free", "mcp"]

or in one line: grok mcp add when-free -- uvx when-free mcp. Grok Build also reads .mcp.json and .cursor/mcp.json, so the JSON above works there too. Add env = { WHENFREE_TZ = "Europe/London" } to the TOML (or an "env" object to the JSON) only if you need a setting from the table below; leave WHENFREE_CALENDARS in the settings file rather than in a client configuration.

This server holds your mail, calendar and chat sign-ins, and some of its tools post (slack_post, teams_post). Run it on your own computer, started by the client over stdio. Do not put it behind a public URL.

Models without MCP support (for example Meta's Muse Spark, whose API offers function calling) can use these tools through an MCP-to-function-calling bridge; llm-harness provides one, see llm-harness's README. For your own harness, function calling works without a bridge.

Tested with Claude Code. The Grok Build block follows xAI's documentation and has not been run.

Then just ask: "Here's the recruiter's message. Which of those times can I do?" The assistant calls free_slots and answers from your real calendar.

Calendar tools work with no sign-in. The mail, chat and work tools appear only for services you signed in with whenfree connect <service> (Google, Microsoft, Slack, GitHub, Notion, Linear, HubSpot); tokens stay on your computer. whenfree schema prints the full list with arguments.

ToolWhat it doesRead-only
free_slotsFree time per day. Takes days, or from and to, or a message, plus hours, min_minutes, buffer_minutes, timezone, weekends, all_day_busy, include_busyyes
statusWhether you are free now, until when, and your next free slotyes
check_calendarsWhether each calendar can be read, with event counts. No details, no addressesyes
connected_accountsWhich services are signed in. Names only, no tokensyes
gmail_search, gmail_read, gmail_thread, gmail_labelsSearch and read Gmailyes
gmail_draftSave a Gmail draft. It does not send itno: creates a draft
outlook_search, outlook_readSearch and read Outlook mailyes
outlook_draftSave an Outlook draft. It does not send itno: creates a draft
drive_search, drive_readSearch and read Google Drive filesyes
slack_channels, slack_historyList channels and read recent messagesyes
slack_postPost a message to a Slack channelno: sends a message
teams_joined, teams_channels, teams_historyList Teams and channels, read recent messagesyes
teams_postPost a message to a Teams channelno: sends a message
github_repos, github_issues, github_issueList repositories and issues, read one issueyes
github_commentComment on an issueno: posts a comment
notion_search, notion_readSearch and read Notion pagesyes
linear_issues, linear_issueList and read Linear issuesyes
hubspot_contacts, hubspot_dealsList or search HubSpot contacts and dealsyes

If a tool can't do its job, the assistant gets an error it can read ("could not read the calendar 'work'"), never a guess.

HTTP: Open WebUI, n8n, Shortcuts and scripts

whenfree serve                    # http://127.0.0.1:8765, only reachable from this computer
curl -H "Authorization: Bearer $(cat ~/.config/when-free/token)" \
  'http://127.0.0.1:8765/free_slots?days=next%20week&hours=afternoon'
  • POST /free_slots with a JSON body, or GET with a query string. Same for /check_calendars.
  • The answer is {"ok": true, "text": "...", "data": {...}}, or {"ok": false, "error": "..."} with status 400.
  • OpenAPI description at /openapi.json. To set up Open WebUI, n8n or Shortcuts, see the recipes.
  • The token is created on first run and kept in ~/.config/when-free/token, readable only by you. Or set your own with WHENFREE_TOKEN. Every tool call needs it.
  • Requests addressed to any host other than this computer are refused. A web page may call it only from an origin you allow: whenfree serve --allow-origin http://localhost:3000. With --host 0.0.0.0 it's reachable from your network, and the token alone protects it, so use that only on a network you trust.

Function-calling harnesses

whenfree schema                    # the tool definitions: name, description, inputSchema
whenfree schema --format openai    # the same, as {"type": "function", "function": {...}}
whenfree call free_slots --args '{"days": "next week", "hours": "10:00-16:00"}'

whenfree call prints {"ok": true, "text": "...", "data": {...}}, or {"ok": false, "error": "..."} with exit code 1. Arguments can also come on standard input.

Python

from whenfree import api

result = api.find_free(api.Query(days="next week", hours="10:00-16:00", min_minutes=45))
for day in result["days"]:
    print(day["label"], day["free"])          # for example: Mon 12 Oct [['10:00', '11:45'], ['13:15', '16:00']]

find_free returns plain dicts and lists, ready for json.dumps, and raises api.Problem with a message that's safe to show. Pass reader= to supply calendar text yourself instead of fetching it.

On your other devices

DeviceStart withGuide
iPhone, iPad, Android, watcheswhenfree serve --lan, then whenfree devices add "My phone" and scan the QR codePhones and tablets
Home Assistant, Alexa, Google Home, Siri, busy lightswhenfree mqtt --broker mqtt://homeassistant.localSmart home and voice
macOS menu bar, Waybar, i3blocks, Polybar, GNOME, Windows traywhenfree now --format xbar (or waybar, i3blocks, …)Desktop status bars
$ whenfree now
Busy until 15:30 · next free 15:45–17:00

Devices see whether you're free and your free slots, never event titles. Each phone has its own token that you can revoke, and an unreadable calendar shows as "unknown", never "free".

Privacy

  • It runs on your computer. The whenfree command fetches your calendar feeds and nothing else. It never writes to a calendar and never sends a message. The MCP server talks to a mail, chat or work service only after you signed in to it, and only five of its tools write: gmail_draft and outlook_draft (drafts, never sent), slack_post, teams_post and github_comment (these send).
  • Your calendar address stays secret. It's never printed, isn't shown while you paste it, and is stored in a file only you can read. Errors name the calendar ("personal"), never its address.
  • Assistants see free time, not your events. Event titles are left out unless the assistant asks with include_busy, and that option's description tells the model that titles are private. No calendar tool can add, change or delete anything, and no tool takes a calendar address, which goes from you to whenfree add only.

Settings

All optional except a calendar. They live in ~/.config/when-free/config.toml, and command-line flags win over the file.

SettingDefaultFlagMeaning
timezoneyour system's--tzThe zone the answer is given in, like Europe/London
hours09:00-18:00--hoursThe part of the day you offer. Also morning, afternoon, evening
min_minutes60--minShortest slot worth offering
buffer_minutes15--bufferKept free before and after every event
weekendsfalse--weekendsInclude Saturday and Sunday in a date range
all_day_busyfalse--all-day-busyWhole-day events block the day
days_ahead7Working days shown when you give no dates
max_range_days366The longest range of dates one question may cover
me[]Your email addresses, so invitations you declined don't block
[[calendar]]--calendarname and url or path. One block per calendar; whenfree add writes them
[extract] commandnone--no-extractA command that reads a message with your own model

For scripts, containers and MCP client configurations. All optional.

VariableMeaning
WHENFREE_CALENDARSComma-separated calendar addresses or paths. Replaces the file's list. Sensitive: see below
WHENFREE_CONFIGPath to the settings file
XDG_CONFIG_HOMEWhere the settings file is looked for when WHENFREE_CONFIG isn't set: $XDG_CONFIG_HOME/when-free/config.toml, otherwise ~/.config/when-free/config.toml
WHENFREE_TZThe zone the answer is given in. Wins over timezone in the file
TZYour system's zone, used when neither of the above gives one
WHENFREE_TOKENThe token for whenfree serve, instead of the token file. Sensitive
WHENFREE_NOWAn ISO date-time to use as "now", so a run can be reproduced

WHENFREE_CALENDARS holds passwords. A private calendar address lets anyone who has it read that calendar. Treat the variable like an API key: keep it out of shared shell profiles, committed MCP configurations, CI logs and screenshots. The settings file whenfree add writes is readable only by you, so use it instead where you can.

What counts as busy

In your calendarBlocks time?
An ordinary eventYes, plus the buffer on both sides
An event marked FreeNo
A cancelled eventNo
An invitation you declined (your address in me)No
A whole-day eventNo, unless all_day_busy = true. Then yes, unless it's marked Free
A repeating eventEach occurrence, with skipped dates skipped and moved ones where they were moved to

A slot shorter than min_minutes after the buffers isn't offered. For today, the day starts at the next quarter hour, not in the past.

Limits

  • It reads; it doesn't book. It never writes to a calendar. It sends nothing unless you sign in to Slack, Teams or GitHub and an assistant calls slack_post, teams_post or github_comment.
  • It's as fresh as the feed. Google refreshes the secret address with some delay, so an event added a minute ago may be missing. Run whenfree --busy to see what it saw.
  • Every calendar or none. If one calendar can't be read, no slots are shown, because busy time would look free.
  • Repeating events. Daily, weekly, monthly (by date, or "first Monday", "last Friday") and yearly rules are expanded, with intervals, end dates, counts, skipped dates and moved occurrences. Rarer rules (BYSETPOS, week numbers) aren't. For those the first date is blocked and a note says so.
  • Time zones come from the events. A zone name the time zone database doesn't know (some Outlook exports) is read in your own zone.

If something does not work

What you seeWhat to do
No calendar is configuredRun whenfree add. If you edited the file by hand, the url line is still empty or the file wasn't saved; the message names the file
could not read the calendar 'personal' (...)The address is incomplete or isn't the secret one; the message says which when it can tell. Copy it again with the copy button
returned a web page, not a calendar or did not return iCalendar dataThat link isn't a calendar feed. It should end in .ics
Nothing was savedwhenfree add couldn't read the calendar, so nothing changed. Fix the address and run it again
No "Secret address" in Google's settingsYour organisation switched it off. Export the calendar instead: see Google Calendar, step by step
An event you just added is missingThe feed refreshes with a delay. See Limits
A meeting doesn't block timeRun whenfree --busy to see what was read. Declined invitations, events marked Free and whole-day events don't block; see What counts as busy
whenfree checkSays whether every calendar can be read, at any time

When to use it, and when not

Use it when you must answer "when are you free?" from your real calendar: interview and meeting requests, or an assistant that proposes times. Do not use it to book meetings, to share a live booking page (use a scheduling service for that), or to merge calendars into one that others can see. It lists time; it does not send invitations.

FAQ

How do I find my free time from a calendar link?

Run whenfree add, paste the calendar's private .ics address, then run whenfree. Details are in Add your calendar.

How do I answer a recruiter's message with my free slots?

Run pbpaste | whenfree --message - (Mac) or whenfree --message invite.txt. It reads the days and hours in the text and prints only those slots.

Does it send my calendar anywhere?

No. It fetches your calendar feeds from the address you gave and computes the answer on your computer. It needs no account and no API key. Event titles are left out of what assistants see unless they ask for them. Only if you configure [extract] command does the message go to the command you chose.

Can Claude or Cursor use it?

Yes. Run claude mcp add when-free -- uvx when-free mcp for Claude Code, or add the JSON in the MCP section to another client.

Does it work with Google Calendar, Outlook and iCloud?

Yes, through each one's private .ics address, and with any exported .ics file. It does not use the Google or Microsoft calendar APIs.

How is it different from Calendly or a free/busy link?

Those publish a booking page. when-free keeps your calendar private and gives you text to paste into a reply. It cannot book or invite anyone.

Why does it show no slots when one calendar is down?

If any calendar cannot be read, busy time would look free, so it shows nothing and names the calendar. See If something does not work.

Where it is listed

If you use it somewhere, or wrote about it, open an issue and it goes here.

Development

uv run --with pytest pytest -q        # a few seconds; no network

The tests use a small calendar in tests/data/sample.ics and a fixed clock (WHENFREE_NOW). The code is grouped by component:

ComponentHoldsMay use
core/ical, slots, status, render, errors: events, busy time, free slots, where you stand now, the wording. No input or outputnothing
messages/dates, extract: days and hours read out of a messagecore
settings/config: the settings file and environment variablesnothing
calendars/sources: calendars fetched from an address or read from a filecore, settings
api.pyfind_free, status, check_calendars: the one entry point for every front endthe four above
tools/, mcp.pyThe tools offered to AI agents (calendar, mail, chat, work services) and the MCP serverapi, core
web/server: the HTTP front end, for tools and phonesapi, tools, devices, calendars, core, settings
devices/widgets, pairing, feed, qr, mobile/: status bars, phone pairing, the calendar feed, the phone pageapi, core, settings
smarthome/mqtt, homeassistant: MQTT publishing with Home Assistant discoveryapi, core
cli/main, demo: the whenfree commandanything

tests/test_structure.py fails if a component imports one it may not, so the domain stays free of front ends.

See CONTRIBUTING.md.

Licence

Apache-2.0.

Reviews

No reviews yet

Be the first to review this server!