calendar-tasks-mcp
Enables Claude to manage Outlook calendar events and Microsoft To Do tasks for a specific mailbox via Microsoft Graph API.
README
calendar-tasks-mcp
An MCP server that lets Claude manage the workshop@burrowsjewellers.com.au Outlook calendar and Microsoft To Do, via Microsoft Graph. Built as a sibling to burrows-mcp, in the dashboard's Node/ESM style, with the same token-lifecycle pattern as xeroClient.js (mint once → silent refresh, refresh token stored in Postgres).
Delegated, least-privilege: it signs in as workshop@ and can only touch that mailbox's calendar and tasks — no mail, no files.
Tools
| Tool | What it does |
|---|---|
create_event |
Create a calendar event (local wall-clock time + timezone), with a phone reminder. |
update_event |
Change fields on an event by id. |
delete_event |
Delete one event by id. |
find_events |
List events in a window (resolve an id before update/delete). |
create_task |
Add a task to the "Burrows Ops" To Do list (due date + reminder optional). |
complete_task |
Mark a task complete. |
find_tasks |
List tasks (resolve an id before completing). |
The agent is instructed (via tool descriptions) to confirm before deleting events or acting on many items at once — this is write access to a live calendar.
One-time setup
1. Register the Entra (Azure AD) app
In the Entra admin center → Identity → Applications → App registrations → New registration:
- Name:
burrows-calendar-tasks-mcp - Supported account types: Accounts in this organizational directory only (single tenant).
- Register. Copy the Application (client) ID and Directory (tenant) ID → these become
GRAPH_CLIENT_ID/GRAPH_TENANT_ID. - Authentication → Advanced settings → Allow public client flows → Yes. (Device-code flow needs this; no client secret is created.)
- API permissions → Add a permission → Microsoft Graph → Delegated permissions, add exactly:
Calendars.ReadWriteTasks.ReadWriteoffline_accessUser.Read
- Grant admin consent (button at the top) using the Global Admin
adm_mark.burrows@…onmicrosoft.com.
2. Configure
cp .env.example .env
# set GRAPH_CLIENT_ID, GRAPH_TENANT_ID, confirm GRAPH_DEFAULT_TIMEZONE, fill PG* for the token table
npm install
3. Sign in once (mint the refresh token)
npm run login
Open the printed URL, enter the code, and sign in as workshop@burrowsjewellers.com.au. The refresh token is stored (Postgres graph_tokens table by default). After this the server refreshes access tokens silently.
4. (Optional) Verify live
npm run smoke # creates + cleans up a test event and task against the real mailbox
Run / deploy
Locally, the MCP runs over stdio:
npm start
On the droplet, run it under pm2 like burrows-dashboard-api:
pm2 start src/server.js --name calendar-tasks-mcp --interpreter node
pm2 save
Register it with your MCP client (e.g. burrows-mcp's host config):
{
"mcpServers": {
"calendar-tasks": {
"command": "node",
"args": ["/path/to/calendar-tasks-mcp/src/server.js"]
}
}
}
Config (.env)
| Key | Purpose |
|---|---|
GRAPH_CLIENT_ID / GRAPH_TENANT_ID |
From the Entra app registration. |
GRAPH_DEFAULT_TIMEZONE |
IANA tz applied to events/tasks. Confirm the store's timezone. |
GRAPH_DEFAULT_REMINDER_MINUTES |
Default event reminder lead time (30). |
GRAPH_TODO_LIST_NAME |
To Do list for tasks (Burrows Ops). |
GRAPH_TOKEN_STORE |
postgres (default) or file (local dev). |
PGUSER/PGPASSWORD/PGHOST/PGPORT/PGDATABASE |
Token table (reuses burrows_jewellers). |
Tests
npm test # payload-builder unit tests + a spawned-server integration test (no live Graph needed)
Notes / cautions
- Reminders fire on the phone only if
workshop@is signed into the phone's Outlook app. Add it if not. - Conditional-access policies can occasionally force a fresh
npm run login; the refresh token isn't guaranteed to last forever. - Token storage mirrors the dashboard's
xero_tokens: one row, app-owned, never committed to git.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.