Skip to main content
Glama

MorgenMCP

PyPI version

An unofficial MCP server for the Morgen calendar and task management API. Unify and manage your Google Calendar, Microsoft Outlook, and iCloud calendars and tasks through AI assistants.

NOTE

This is an independent, community-maintained project and is not affiliated with, endorsed by, or sponsored by Morgen AG. Morgen is a trademark of Morgen AG.

Installation

Run MorgenMCP locally from PyPI, without cloning this repository.

  1. Install uv: brew install uv on macOS, or winget install astral-sh.uv on Windows. For Linux and other installation methods, follow the uv link.

  2. Get an API key from the Morgen Developer Portal.

  3. Choose your client below. uv manages the required Python version (3.12 or newer).

The server uses stdio: your client starts uvx morgenmcp; no server URL or port is needed. If it cannot find uvx, use its absolute path as described in Troubleshooting.

Claude Desktop

You can install MorgenMCP as a desktop extension bundle or configure it manually.

Desktop extension (.mcpb)

  1. Download the morgenmcp-X.Y.Z.mcpb bundle from the latest GitHub Release.

  2. Verify the download against its signed Sigstore provenance.

  3. Open the .mcpb file in Claude Desktop.

  4. Enter your API key when prompted in the extension settings (and optionally enable Read-only mode).

Claude displays an installation warning that developer info has not been verified by Anthropic; this is expected for community extensions. Then verify the connection.

Manual configuration

Open Settings → Developer → Edit Config. The file is ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, or %APPDATA%\Claude\claude_desktop_config.json on Windows.

Merge the generic configuration into the file, replace your_api_key_here with your key, and restart Claude Desktop. Preserve any other servers already configured. Then verify the connection.

Claude Code

Replace the placeholder and run this command in your terminal:

claude mcp add --scope user --env MORGEN_API_KEY=your_api_key_here --transport stdio morgen -- uvx morgenmcp

This adds MorgenMCP to your personal configuration across projects. The key is stored in that configuration; entering it literally can also leave it in shell history. Use your shell's private-input mechanism if needed. In Claude Code, run /mcp to check the server status, then verify the connection.

See the Claude Code MCP guide for scopes and environment-variable configuration.

Cursor

Install in Cursor

The button opens Cursor with a proposed local server configuration. Replace your_api_key_here in the server's env configuration with your Morgen key before using it. The button contains only a placeholder; never put a real key in a shared install link.

For manual setup, open Cursor Settings → Tools & MCP, or edit your personal ~/.cursor/mcp.json. Merge the generic configuration, replace the key placeholder, and enable the server. Keep credentials in your personal configuration rather than a committed project file. Then verify the connection.

See Cursor's MCP documentation and install-link format.

VS Code

Install in VS Code

The button opens VS Code's installation flow with a password input for your Morgen API key. Review the configuration and install it in your user profile. If the browser does not open the app, use the manual setup below.

Run MCP: Open User Configuration from the Command Palette and merge this configuration, preserving any existing servers and inputs:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "morgen-api-key",
      "description": "Morgen API key",
      "password": true
    }
  ],
  "servers": {
    "morgen": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "morgenmcp"
      ],
      "env": {
        "MORGEN_API_KEY": "${input:morgen-api-key}"
      }
    }
  }
}

Start morgen from the MCP configuration editor and enter your key when prompted. Then verify the connection.

These input prompts are supported in VS Code's Local harness; servers requiring interactive inputs are not forwarded to Copilot harness sessions. See the VS Code configuration reference for supported credential options in your session.

Other MCP clients

Merge this into your client's MCP configuration and replace the key placeholder:

{
  "mcpServers": {
    "morgen": {
      "command": "uvx",
      "args": [
        "morgenmcp"
      ],
      "env": {
        "MORGEN_API_KEY": "your_api_key_here"
      }
    }
  }
}

If your client asks for separate fields, use command uvx, arguments morgenmcp, and environment variable MORGEN_API_KEY. Follow your client's configuration format; not every client uses the mcpServers wrapper.

Verify the connection

Ask your assistant: “List my Morgen calendars.” Check that it invokes list_accounts and/or list_calendars and returns your calendars. You can also try “What is on my Morgen calendar today?”

If startup fails or the tools do not appear, see Troubleshooting.

Read-only mode and version pinning

To expose only read tools, change args to ["morgenmcp", "--read-only"]. For the Claude Code command, append --read-only after uvx morgenmcp.

To pin a release, use ["morgenmcp==0.2.1"] (replace the version with your chosen release). To run an unreleased commit, use ["--from", "git+https://github.com/k3KAW8Pnf7mkmdSMPHz27/MorgenMCP@main", "morgenmcp"].

Related MCP server: Google Calendar MCP

Available Tools

Tools across accounts, calendars, events, tasks, and tags — read-only and mutating:

  • Accounts & calendars: list_accounts, list_calendars, update_calendar_metadata

  • Events: list_events, create_event, update_event, delete_event, batch_update_events, batch_delete_events

  • Tasks: list_tasks, list_task_lists, get_task, create_task, update_task, move_task, complete_task, reopen_task, delete_task, batch_delete_tasks

  • Tags: list_tags, get_tag, create_tag, update_tag, delete_tag

Pass --read-only (or set MORGENMCP_READ_ONLY=1) to expose only the read-only tools. For the exact live list with schemas and annotations, connect any MCP client or run the MCP Inspector.

Compact event lines

list_events with compact=true (and every event resource) returns one line per event instead of a JSON object, to save tokens:

Jul 23 08:00-11:00 CDT (America/Chicago): Deep work block [oAxAjaC task]
Jul 23 05:00-06:00 CDT (America/Chicago): Morning walk [c0HsnEl routine]
Jul 23 11:00-14:00 CDT (America/Chicago): Contractor visit [suqNbDi free]
Jul 23 14:00-14:30 CDT (America/Chicago): Dentist [l1_gFD6]

The optional kind tag, inside the ID brackets, tells a client what it is looking at:

tag

meaning

task

Linked to a Morgen task — a flexible intention, usually movable.

routine

A Morgen Routine occurrence: a recurring block you check off.

flexible

Morgen auto-scheduled this block, so it can be moved.

free

Does not mark you busy — informational, not an obligation.

(no tag)

An ordinary busy commitment.

task, routine and flexible are mutually exclusive; free combines with any of them as a comma-joined pair with no space, e.g. [oAxAjaC task,free].

Event titles may themselves contain {} or [], so match the trailing [<id>( <tag>)?] anchored at the end of the line. The tag sits inside the brackets precisely so a title cannot spoof it.

Configuration

MORGEN_API_KEY is required; everything else is optional. Each setting has an equivalent CLI flag, and the flag wins over the environment variable.

Environment variable

CLI flag

Default

Description

MORGEN_API_KEY

—

(required)

Morgen API key. The server refuses to start without it.

MORGENMCP_READ_ONLY

--read-only

off

Truthy (1/true/yes/on) exposes only the read tools, disabling every mutating one.

MORGENMCP_TASKS_LIMIT

--tasks-limit N

100

Default limit sent to /tasks/list. Integer 1–100.

MORGENMCP_TAGS_LIMIT

--tags-limit N

(unset)

Default limit sent to /tags/list. Integer ≥ 1, no upper bound. Unset returns all tags.

MORGENMCP_DISPLAY_TZ

—

system local

IANA timezone (e.g. America/Chicago) for rendering compact event times and determining the local day/week windows of event resources.

MORGENMCP_DATA_DIR

—

platform data dir

Override the virtual-ID persistence directory.

An invalid limit fails at startup with a clear error rather than silently returning fewer results:

$ uv run morgenmcp --tasks-limit 500
morgenmcp: error: --tasks-limit must be <= 100 (got 500)

The two list limits are deliberately asymmetric, because Morgen documents the two endpoints differently: /tasks/list documents a default of 1 and a maximum of 100, while /tags/list documents neither and returns all tags when the parameter is omitted. A per-call limit argument on the tool always overrides both the flag and the environment variable.

Note: MORGENMCP_TASKS_LIMIT defaults to 100, which is MorgenMCP's own choice rather than Morgen's. /tasks/list returns a single task when limit is omitted — its documented default is 1, and the API docs tell callers to always set the parameter explicitly, so the server never leaves it to Morgen. This is only a fallback: the tool asks the model to pass a limit suited to the request, and a per-call value always wins. Set this variable to bound what a model can pull in one call, not to express a typical page size.

In live probes, the default listing returned only open tasks with needs-action status. The probes included no in-process tasks. Supplying updated_after uses a timestamp-based view that can also include completed and soft-deleted tasks. Both modes are capped at the requested limit. In the probes, rows with an update timestamp were ordered newest first.

Task tools and resources report coverage.fetch_limit and coverage.limit_reached. When limit_reached is true, the upstream fetch may have more matches. If you requested fewer than 100 tasks, raise the limit to see more. Morgen provides no continuation cursor. The cap is applied before local filters such as task list or due date. count counts returned items, and each task_count counts open tasks observed for that list. Tag listings report coverage when a tag limit is set.

Troubleshooting

MORGEN_API_KEY is not set — provide the key through your client's setup above: the env block, VS Code password prompt, or Claude Code configuration. Desktop clients may not inherit your terminal's environment. Get a key from the Morgen Developer Portal.

uvx: command not found, or the server never starts — desktop clients are launched by the OS, not by your shell, so they see a minimal PATH that usually excludes ~/.local/bin, /opt/homebrew/bin, and version-manager shims. Use an absolute path instead:

which uvx   # e.g. /opt/homebrew/bin/uvx
"command": "/opt/homebrew/bin/uvx"

Nothing appears in the client — check the client's MCP log. Both failures above surface there and nowhere else, because a stdio server's stderr goes to the client, not to a terminal.

Development

Use Python 3.12 or newer. uv provisions the version pinned in .python-version for this checkout. mise is optional; see Environment Setup if you already use it.

# Clone the repository
git clone https://github.com/k3KAW8Pnf7mkmdSMPHz27/MorgenMCP.git
cd MorgenMCP

# Install dependencies
uv sync --all-extras

# Run tests
uv run pytest

Environment Setup

The server reads MORGEN_API_KEY from the process environment — it does not load a .env file itself. Either of the following supplies it. Both keep the key in a gitignored file; neither is required if the variable is already exported in your shell.

With uv alone. Put the key in a .env file (already gitignored) and let uv load it:

echo 'MORGEN_API_KEY=your_api_key' > .env
UV_ENV_FILE=.env uv run morgenmcp

Export UV_ENV_FILE=.env in your shell profile to skip the prefix. uv run --env-file .env <cmd> works the same way for one-off commands.

If uv is itself installed through mise (a shim under ~/.local/share/mise/shims/uv), every uv call routes through mise, and mise refuses to run against this repo's untrusted mise.toml — so uv run fails until you mise trust. That is a property of that install, not of this project; a standalone uv (brew install uv) is unaffected.

With mise (optional, recommended if you already use it). This repo ships a mise.toml declaring MORGEN_API_KEY as required, so a missing key fails immediately with setup instructions instead of surfacing on the first tool call. mise set writes to a gitignored mise.local.toml, never the committed config:

mise trust
mise set --file mise.local.toml MORGEN_API_KEY=your_api_key
uv run morgenmcp

mise also puts the interpreter from .python-version on PATH in a plain shell, so a bare python3 in a clone is the right one — useful because the source requires Python 3.12 or newer (see Development).

Local Debugging with MCP Inspector

The MCP Inspector provides a web UI for testing tools and inspecting requests/responses:

npx @modelcontextprotocol/inspector uv run morgenmcp

Opens at http://localhost:6274

Releasing

After main-branch CI (including desktop bundle checks) passes, Conventional Commits determine the next release: feat: bumps minor and fix: bumps patch. Breaking changes (! or BREAKING CHANGE:) bump minor below 1.0 and major thereafter; start 1.0 with a deliberate manual release. Other commits do not release. Use these prefixes on PR titles when squash merging.

The automation creates an annotated tag and dispatches release.yml using GITHUB_TOKEN. Manual stable tag pushes also work. If dispatch or publication fails after tagging, retry with gh workflow run release.yml --ref vX.Y.Z instead of creating another version.

Stable vX.Y.Z tags trigger the GitHub Actions release workflow, which runs tests, builds wheel and sdist distributions and a desktop bundle, and requires verified Sigstore provenance for every release artifact before publishing to PyPI and GitHub Releases. The workflow uses the existing pypi environment and PyPI trusted publishing. Verified files are retained as an Actions artifact for 30 days if publication needs recovery.

Verify a release download

Release assets include provenance.sigstore.json and SHA256SUMS. With a recent GitHub CLI, replace vX.Y.Z below with your release:

REPO=k3KAW8Pnf7mkmdSMPHz27/MorgenMCP
TAG=vX.Y.Z
COMMIT="$(gh api "repos/$REPO/commits/$TAG" --jq .sha)"
gh release download "$TAG" --repo "$REPO" --dir release-download \
  --pattern '*.mcpb' --pattern provenance.sigstore.json

gh attestation verify "release-download/morgenmcp-${TAG#v}.mcpb" \
  --bundle release-download/provenance.sigstore.json \
  --repo "$REPO" --signer-workflow "$REPO/.github/workflows/release.yml" \
  --source-ref "refs/tags/$TAG" --source-digest "$COMMIT" \
  --cert-oidc-issuer https://token.actions.githubusercontent.com \
  --predicate-type https://slsa.dev/provenance/v1 --deny-self-hosted-runners

Proceed only if verification succeeds. Use a separately reviewed commit SHA for COMMIT if you want to pin it independently of the current GitHub tag. The same command can verify a downloaded wheel, source archive, or checksums file. Sigstore verifies build provenance; it does not confer Anthropic-verified publisher status in Claude Desktop. The manual provenance-trial.yml workflow exercises signing, verification, and tamper rejection without publishing a release.

Contributing

See AGENTS.md for environment setup, conventions, and the checks to run before handing off changes.

AI-assisted contributions are welcome and must be disclosed — see AI_POLICY.md, adapted from the Ghostty project's AI policy (MIT).

License

Apache 2.0 - See LICENSE and NOTICE for details.

Available Tools

24 tools
morgen_batch_delete_eventsBatch Delete EventsC
Destructive

Delete multiple calendar events in a single tool call.

Inputs: event_ids (required), series_update_mode. Returns: Return of ``batch_delete_events``. ``alreadyGone`` lists event IDs Morgen answe…

morgen_batch_delete_tasksBatch Delete TasksB
Destructive

Delete multiple tasks in a single tool call.

Inputs: task_ids (required). Returns: Return of ``batch_delete_tasks`` and base for ``BatchDeleteEventsResult``. The…

morgen_batch_update_eventsBatch Update EventsB

Update multiple calendar events in a single tool call.

Inputs: updates (required), series_update_mode. Returns: Return of ``batch_update_events`` (see ``BatchDeleteResult`` for the ``summary`…

morgen_complete_taskComplete TaskC
Idempotent

Mark a task as completed.

Inputs: task_id (required), occurrence_start. Returns: Return of ``update_task`` / ``move_task`` / ``complete_task`` / ``reopen_task``…

morgen_create_eventCreate EventC

Create a new calendar event.

Inputs: start (required), title (required), duration (required), calendar_id (required), +12 more. Returns: event, message, success

morgen_create_tagCreate TagC

Create a new tag.

Inputs: name (required), color. Returns: tag, message, success

morgen_create_taskCreate TaskC

Create a new Morgen task.

Inputs: title (required), due, tag_ids, priority, +6 more. Returns: task, message, success

morgen_delete_eventDelete EventB
Destructive

Delete a calendar event.

Inputs: event_id (required), series_update_mode. Returns: Return of ``delete_event``. ``alreadyGone`` is set only for ``seriesUpdateMode=…

morgen_delete_tagDelete TagA
Destructive

Soft-delete a tag.

The tag will appear in subsequent sync responses (when using updated_after) with deleted=True.

Inputs: tag_id (required). Returns: Return of ``update_tag`` / ``delete_tag``.

morgen_delete_taskDelete TaskB
Destructive

Permanently delete a task.

Inputs: task_id (required). Returns: Return of ``update_task`` / ``move_task`` / ``complete_task`` / ``reopen_task``…

morgen_get_tagGet TagB
Read-onlyIdempotent

Retrieve a single tag by virtual ID.

Inputs: tag_id (required). Returns: One tag (``_format_tag``). Only ``id`` is always emitted.

morgen_get_taskGet TaskA
Read-only

Retrieve a single task by virtual ID.

Soft-deleted tasks are still returned with "deleted": True (useful for verifying deletion), while unknown or unowned task IDs raise a not-found ToolError.

Inputs: task_id (required). Returns: task

morgen_list_accountsList AccountsA
Read-only

List all connected calendar accounts.

Returns a list of accounts with their IDs, integration types, and user info. Use this to discover available accounts before performing calendar operations.

Inputs: no named parameters. Returns: count, accounts

morgen_list_calendarsList CalendarsA
Read-only

List all calendars across connected calendar accounts.

Returns a list of calendars with their IDs, names, colors, and permissions. Use this to discover available calendars before listing events.

Inputs: no named parameters. Returns: count, calendars

morgen_list_eventsList EventsA
Read-only

List events from calendars within a time window.

Recurring events are automatically expanded to individual occurrences. Deleted or cancelled events are not included.

Inputs: end (required), start (required), compact, time_zone, +2 more. Returns: ``list_events`` output. ``events`` is a list of ``EventItem`` in full mode, or…

morgen_list_tagsList TagsC
Read-only

List user tags.

Inputs: limit, updated_after. Returns: tags, count, coverage

morgen_list_task_listsList Task ListsA
Read-onlyIdempotent

Discover task lists (spaces) and count open tasks observed in each list.

Inputs: account_id. Returns: count, coverage, task_lists

morgen_list_tasksList TasksA
Read-only

List Morgen tasks.

The default view returned only open tasks in live probes. With updated_after, the incremental view can include completed and soft-deleted tasks. Morgen applies the fetch limit before local task-list filtering. A reached limit means additional tasks may exist in the query scope.

Inputs: limit, task_list_id, updated_after. Returns: count, tasks, coverage

morgen_move_taskMove TaskB
Idempotent

Reorder a task or change its parent.

Inputs: task_id (required), move_to_root, move_to_first, parent_task_id, +1 more. Returns: Return of ``update_task`` / ``move_task`` / ``complete_task`` / ``reopen_task``…

morgen_reopen_taskReopen TaskB
Idempotent

Reopen a completed task.

Inputs: task_id (required), occurrence_start. Returns: Return of ``update_task`` / ``move_task`` / ``complete_task`` / ``reopen_task``…

morgen_update_calendar_metadataUpdate Calendar MetadataA
Idempotent

Update Morgen-specific metadata for a calendar.

This allows customizing how a calendar appears in Morgen without modifying the underlying calendar provider.

Inputs: calendar_id (required), busy, override_name, override_color. Returns: message, success, updated

morgen_update_eventUpdate EventA
Idempotent

Update an existing calendar event.

Only include fields you want to change. Note that when updating timing fields (start, duration, time_zone, is_all_day), you must provide all four.

Inputs: event_id (required), start, title, alerts, +11 more. Returns: Return of ``update_event``.

morgen_update_tagUpdate TagA
Idempotent

Update a tag's name or color.

Note: Morgen does not allow unsetting name or color once defined — only changing them to new values.

Inputs: tag_id (required), name, color. Returns: Return of ``update_tag`` / ``delete_tag``.

morgen_update_taskUpdate TaskB
Idempotent

Update a task. Patch semantics — only provided fields change.

Inputs: task_id (required), due, title, tag_ids, +6 more. Returns: Return of ``update_task`` / ``move_task`` / ``complete_task`` / ``reopen_task``…

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 24 tools

    Disambiguation5/5

    Each tool targets a distinct resource+action pair (accounts, calendars, events, task lists, tasks, tags), and the batch variants are explicitly scoped to multiple items so they don't collide with their single-item counterparts. Specialized verbs (move_task, complete_task, reopen_task, update_calendar_metadata) cleanly carve out operations that would otherwise be ambiguous patches.

    Naming Consistency5/5

    All 24 tools use the same namespace prefix plus snake_case verb_noun shape (morgen_list_events, morgen_create_task, morgen_delete_tag), with batch operations consistently using batch_ as the middle token. No camelCase or mixed verb styles anywhere in the set.

    Tool Count3/5

    24 tools spans four sub-domains (calendars, events, tasks, tags), which justifies breadth, but it sits at the heavy end of the 16-25 band. The batch_update/batch_delete pairs for both events and tasks add surface area for convenience rather than capability.

    Completeness4/5

    Tasks and tags get full lifecycle coverage (create/read/update/move/complete/reopen/delete plus batch), and events cover list/create/update/delete/batch. Gaps are modest: there is no single-event get, no calendar create/delete (possibly intentional since calendars are provider-owned), and no event attendee/RSVP handling.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to manage Google Calendar by listing, creating, updating, and deleting events. It also includes functionality to find available time slots for scheduling.
      -