Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

Corresync

@nkiyoharaMCP server · External

Local-first mail, calendar, and task MCP with isolated accounts and guarded writes.

Calendarv0.10.0Apache-2.0Go
Freeno charge per call

Runs on your machine from its package; the steps are below.

What it does

  1. Reads
  2. Writes
  3. High impact

At most: moves money, runs code or commands, deletes data, or sends messages for you.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

MCP Bundlehttps://github.com/nkiyohara/corresync/releases/download/v0.10.0/corresync_0.10.0.mcpb

Distributed as an MCP bundle (`https://github.com/nkiyohara/corresync/releases/download/v0.10.0/corresync_0.10.0.mcpb`) — download it and import the bundle in your MCP client.

README14 min read

Corresync: two correspondence flows around one local core

A local CLI and MCP server for mail, calendars, and tasks.
It runs on your computer and works across providers.

CI status Latest release Go 1.27 Apache-2.0 license macOS, Linux, and Windows Model Context Protocol over stdio Current documentation Local-first architecture

Website · Getting started · Providers · Features · Safety · Privacy · Terms · Technical docs

corr is a command-line tool and a local Model Context Protocol (MCP) server that reaches all your mail, calendar, and task accounts while keeping them separate.

Gmail, Google Calendar, and Google Tasks use a Desktop OAuth client in a Google Cloud project you control. Corresync-managed Google OAuth is dormant. Tasks also work with Microsoft To Do, Todoist, TickTick, and CalDAV VTODO, each a route you select yourself. Other task providers are unavailable until their contracts are implemented.

  • Search mail and list one agenda across accounts. Each result shows which account and provider it came from.
  • Use one task format across providers as their adapters become available. Each task records where it came from.
  • Save private, per-account mail searches and relative calendar windows. Each run reads live from the provider and creates no local mailbox or calendar copy.
  • Run the same operations from the CLI, as stable JSON, or through an AI agent.
  • Sign in through a visible browser window, an OAuth flow with a public client you choose, or a local credential store you approve.
  • Preview sends, moves, deletes, and other writes before they run. If a write's outcome is unknown, Corresync stops for you to check instead of retrying.

Example

console
$ corr mail search --all-accounts \
    --query 'subject:"Quarterly plan"' --limit 3
● work · microsoft-owa   Ana Ruiz   Plan review
· personal · jmap       Finance    Plan receipt

$ corr agenda list --all-accounts \
    --start 2026-07-29T00:00:00Z \
    --end 2026-07-30T00:00:00Z

Connect an agent to the same local server:

console
corr integrations detect
corr integrations plan codex claude-code
corr integrations setup codex claude-code
# Phase A also includes github-copilot, gemini-cli, qwen-code, qoder, kimi-code

Then ask it something like:

text
Check my inboxes, calendars, and task lists and summarize what needs attention today.

If one provider fails, the output reports a partial failure and still shows the results that succeeded. Writes always target exactly one account.

Providers

Mail, calendar, and tasks each have their own route. For example, an account can use IMAP/SMTP for mail and CalDAV for its calendar, and pick a task route separately.

RouteMailCalendarTasksAuthentication
Outlook WebTyped reads and writesSelectable calendars; provider-supported Teams link—Dedicated visible browser profile
Google (your OAuth client)Gmail API reads and writes; no permanent deleteSelectable calendars; Google Meet when advertisedGoogle Tasks through a separate task-only grantYour Desktop OAuth client; client credential and grants in the OS keyring
Microsoft GraphTyped reads and writesSelectable calendars; typed Teams-link creationMicrosoft To DoYour authorized public OAuth client; OS-keyring grant
Todoist——Typed Todoist operationsYour authorized public OAuth client; OS-keyring grant
TickTick——Typed TickTick operationsYour authorized confidential OAuth client; external secret handle and OS-keyring grant
JMAPTyped mail operations——OS keyring or approved credential helper
IMAP / SMTPIMAP read/manage and SMTP draft/send——OS keyring or approved credential helper
CalDAV—Typed calendar operations and conditional schedulingVTODO lists, search, sync, and reviewed writesOS keyring or approved credential helper

Discovery reads DNS, well-known, and provider metadata without credentials. It never signs in or adds an account. Corresync never falls back to Microsoft Graph or your own Google authorization; you must choose them. Google discovery can guide you through creating the Desktop client, but no Google sign-in starts until you run corr auth login. See the annotated Google setup guide.

iCloud has a guided preset over the standard IMAP/SMTP and CalDAV adapters. corr setup recognizes documented iCloud Mail address families, or a domain with the complete verified set of Apple SRV endpoints. It reviews mail and calendar as one account and uses one external credential handle by default. After the account is added, you can have it open Apple's app-password page and the OS credential prompt. The corr process never reads the app-specific password.

Every available v0.9 route above has synthetic provider-contract and application tests. The user-owned Google API route is available but live-unobserved. Other provider and platform implementations stay live-unobserved until an authorized observation record with no account content is tied to the exact commit. Live-unobserved means the code passes synthetic tests, but no real-account check is on record for that commit. Read the compatibility evidence before you connect a sensitive account.

Set up Corresync

The setup buttons on the Corresync website open your desktop agent with a request already filled in. The request installs Corresync or updates an existing install. Nothing is sent until you review it and send it yourself. Manual commands, package managers, and downloads are below.

Set up with ChatGPT · Set up with Claude

Recommended: the standalone CLI. New setups turn on verified automatic updates. If Corresync is already installed, setup keeps your package manager, configuration and update setting unless you choose to change them.

You need the ChatGPT Codex or Claude Code desktop app with local access to this computer. Approve each permission prompt when it appears. You don't need administrator rights. Sign in to your accounts and complete MFA yourself. Never paste passwords or codes into the chat.

If you're on a phone, open this page on the computer you want to set up or copy the instructions to it.

Optional: manual installation and later setup steps

For a guided page, follow getting started on the website.

1. Install

The standalone installers are the quickest option on every platform. They pick the latest stable release, verify the archive and the binary, install for the current user without admin rights, and do not touch account setup.

macOS and Linux

console
curl -LsSf https://corresync.org/install.sh | sh
corr --version

Windows PowerShell

powershell
powershell -NoProfile -Command "irm https://corresync.org/install.ps1 | iex"
corr --version

You can read install.sh or install.ps1 before running it. Package managers are fully supported too:

console
# Homebrew · macOS or Linux
brew install nkiyohara/corresync/corresync

# WinGet · Windows
winget install --id nkiyohara.Corresync --exact

# Scoop · Windows
scoop bucket add corresync https://github.com/nkiyohara/scoop-corresync
scoop install corresync/corresync

Direct archives, native Linux packages, version pinning, checksums, and Sigstore provenance are in the installation guide. The guided website shows the same commands for people who don't use GitHub much.

Claude Desktop users can also install the platform-universal .mcpb from the latest release. It runs the same verified corr mcp serve binary locally over stdio. It does not deploy Corresync or relay mailbox data. Install the CLI first to add accounts and sign in (steps below), then open or drag the .mcpb into Claude Desktop.

Updates

Interactive commands do a quiet, cached release check at startup. If an update exists, Corresync prints the command for your install: corr update for the standalone build, or the matching Homebrew, Scoop, or WinGet command. It never changes package-managed files.

Stable releases are the default. Standalone users who want signed release candidates can choose the preview channel in:

console
corr settings

For scripts, the same change is:

console
corr config set updates.channel preview
corr update

To switch back, run corr config set updates.channel stable. Corresync never downgrades the running binary. Preview releases are not published to package-manager catalogs.

New standalone configurations install verified updates automatically. Existing configurations keep their current setting. To turn it on:

console
corr config set updates.auto_install true

Automatic installation never runs during MCP tool calls, configuration changes, daemon work, JSON output, pipes, or other non-interactive use. Bare corr also checks when interactive. After verifying an update, the updater restarts the session owner (the local process that holds your sign-in sessions) and runs your command with the new executable. Session owners from 0.9.2 also exit after something else replaces the executable, once accepted operations finish. To turn installation off, run corr config set updates.auto_install false.

2. Add and sign in to your account

console
corr setup

corr setup reads your local state to see what is already done, so you can resume it. It can install shell completion at a user-local path it shows you. It then discovers routes without credentials, previews the mail, calendar, and task routes, and adds the account only after you confirm. Signing in, or allowing access to an external credential, is a separate choice. The same run can add more accounts, select several detected agent hosts, preview their local integration plans, apply them after one confirmation, and check each result. Running it again skips what already works and offers missing or repairable steps.

After you choose a connection route, the wizard shows a checklist of services. For a Microsoft account, Outlook Mail and Calendar are checked by default, and you can change each one. Microsoft To Do is optional and needs its own Graph authorization. Teams messaging can be selected as a preview, through Teams Web or a Graph authorization you grant. Mattermost is also available as a preview. These previews lack complete live compatibility evidence. Discovery only shows which routes exist; it does not prove that a checked service is enabled for the account.

corr settings opens the same account wizard in an arrow-key form. Use it to sign in to, rename, select, or remove accounts, and to manage updates, safety, and browser sign-in. Its Setup entry runs corr setup. The top-level Accounts category holds Add account and your accounts; selecting one shows only its actions. Removal shows the local data it deletes and asks you to confirm; removing the default first asks which account replaces it. Each choice also shows the equivalent command. Set CORRESYNC_ACCESSIBLE=true for line-by-line screen-reader prompts, and type :cancel to leave an input step safely. To rename directly:

console
corr account rename personal work

For scripts, use the non-interactive form:

console
corr setup you@example.com --alias personal
corr auth login --account personal
corr doctor --account personal

corr setup ADDRESS writes the same secret-free local configuration, runs discovery without credentials, and adds only a first-party route that can be selected automatically. It never opens a sign-in page.

If no route can be selected safely, or you want an API or standards route, look at the discovery results and choose the provider settings yourself:

console
corr account discover reader@example.invalid
corr account add reader@example.invalid --help

For Gmail, Google Calendar, and Google Tasks, create a Desktop OAuth client in a Google Cloud project you control. Guided setup checks the client JSON you download and stores the credential generated from it in the OS keyring. The Google OAuth setup guide covers the current Cloud Console screens, audience choices, exact APIs and scopes, import, and login.

Before you install, you can use the optional provider compatibility checker to classify public evidence for an address. Your browser sends only the domain after the @, in a request body. It never sends the part before the @, stores the address, or starts sign-in. The service uses one fixed DNS resolver and returns no raw DNS records. You can skip it and run corr account discover ADDRESS locally.

Adding an account does not sign you in. OAuth routes need a client registration you are authorized to use. Google also needs a separate external handle for its generated Desktop client credential. Standards routes use a keyring entry or an approved helper reference. Passwords and tokens never go into config.toml. See account and provider configuration. For Outlook Web, the later auth login opens a dedicated, visible browser profile. That window holds the session until account logout or daemon shutdown. SSO, MFA, Conditional Access, and organization notices stay in the provider's own sign-in flow.

3. Connect an agent

console
corr mcp setup codex

Run corr mcp --help for Claude Code, GitHub Copilot CLI, Gemini CLI, Qwen Code, Qoder, Kimi Code CLI, and generic stdio clients. Corresync exposes 72 narrow tools and two read-only monitor resources. There is no HTTP, SSE, or remote MCP endpoint, and no hosted relay.

An agent cannot sign you in by itself. When an account needs sign-in, the agent can ask through the account_sign_in tool, and your MCP client then asks you. The prompt names the account and the sign-in page. Only if you accept does Corresync open the same browser sign-in as corr auth login. This works for an account you have already signed in to once from the terminal with the same connection settings, on a computer with a display; otherwise the agent gets the command for you to run.

Previewing writes

Writes such as sending mail use a server-enforced preview -> commit protocol. The first command shows the normalized account, provider, target, recipients, content digest, and version preconditions, and changes nothing.

console
printf 'Synthetic body.\n' | \
  corr mail send \
    --account work \
    --to reader@example.invalid \
    --subject 'Review example' \
    --body-file -

Check every field, then run the same command again with --approve:

console
printf 'Synthetic body.\n' | \
  corr mail send \
    --account work \
    --to reader@example.invalid \
    --subject 'Review example' \
    --body-file - \
    --approve

Approval is short-lived, single-use, and tied to the caller, account, provider, target, payload, and effect. Changing any reviewed field invalidates it. Over MCP, preview and commit are separate tools.

See the complete safety model. The Privacy Policy covers Google data access, local storage, disclosure, retention, and removal. The Terms of Use keep the software rights that Apache-2.0 grants.

Other features

  • Cross-account views: size-limited mail search and agenda results keep the original account, provider, calendar, time zone, and partial failures.
  • Read-only import staging: inspect an approved local archive, Maildir tree, or supported export without uploading or changing it.
  • Opt-in monitoring: step up from off to local notifications, a durable queue, and finally one approved runner that uses no shell. Sending data off your computer needs separate consent.
  • Feedback reports: build a report locally from an allowlist, review it, then copy, save, or open a prefilled GitHub page. A separate default-off setting can file an even smaller allowlist-only public issue through your signed-in gh client after an interactive failure.

Corresync treats mailbox, calendar, import, and event-queue content as private, untrusted data. That content can never run a command or start an agent.

Limits

  • Gmail, Google Calendar, and Google Tasks need your own Google Desktop OAuth client. Corresync-managed Google OAuth is disabled. The user-owned route has synthetic contract tests and is live-unobserved.
  • Microsoft Graph needs your own authorized public-client registration. Corresync ships no token relay.
  • Windows desktop notifications are unavailable because Corresync does not install an AppUserModelID. Queue and approved-runner modes still work.
  • Provider meeting links are requested only when the selected calendar route reports native support.
  • Cross-compilation and synthetic fixtures do not prove how native browsers, keyrings, IPC, providers, package managers, Gatekeeper, or SmartScreen behave.
  • Out of scope: Teams calls, recordings, and meeting lifecycle management; tenant-wide access; unattended login; TLS interception; arbitrary provider actions; automatic telemetry; and raw crash upload.

features.md lists each provider's actions and gaps.

Architecture

text
AI agents ───────── MCP over stdio ─┐
                                    ├── typed use cases + effect policy
Humans and scripts ──────── corr ───┘              │
                                                   │ authenticated local IPC
                                            session owner
                                            ├── browser-owned sessions
                                            ├── explicit OAuth + keyring
                                            └── standards adapters

The session owner has no TCP listener. On Unix, before a client sends the local bearer token, it checks and pins the private runtime directory (which does not depend on environment variables), the singleton lock, the socket, and the peer UID. On Windows, clients first check the protected named pipe, its owner and DACL, the server process, and the SID.

See the architecture, authentication model, and threat model for details.

Documentation

I want to…Start here
Install and verify a releaseInstallation
Add accounts and choose routesConfiguration
Understand browser, OAuth, and standards sign-inAuthentication
Learn CLI commandsCLI guide
Connect an AI clientMCP guide
Compare provider actions and degradationsFeature matrix
Consume stable machine outputJSON contract
Integrate versioned public/local contractsVersioning policy
Verify compatibility claimsEvidence matrix
Review privacy and Google data handlingPrivacy Policy
Review use and open-source license termsTerms of Use
Connect Google with your own Desktop clientGoogle OAuth setup
Review the dormant managed-client planGoogle verification runbook
Review every guideDocumentation map

If you are upgrading from a version before v0.7, see the historical migration guide. corr is the main command. The product, package, repository, configuration roots, plugin, and MCP server are still named Corresync.

Contributing and security

Read CONTRIBUTING.md and AGENTS.md. Default tests and CI use only synthetic fixtures:

console
mise exec -- task verify

Please report vulnerabilities through GitHub private vulnerability reporting, not in a public issue.

For remote terminals, see graphical login over SSH.

Similar modules

Browse Calendar