ask-marcel-office
The Microsoft 365 command line built for AI agents
One sign-in. No Azure app registration. Every document as clean markdown.
Outlook · OneDrive · SharePoint · Calendar · Excel · Teams · Planner · To Do · OneNote · People
Packages · Install · Agent skill · Develop
ask-marcel-office gives a tool-calling agent (Claude Code, Cursor, Cline, an MCP host or your own loop) access to your Microsoft 365 data through Microsoft Graph. You sign in one time, in a browser, as yourself. You do not need an Azure app registration, the consent of a tenant admin or a client secret. Office files, PDF files and mail become clean markdown, so the agent can read them.
The project is three npm packages. Each package has its own bin, its own MCP server, its own library and its own docs.
The three packages
| Package | Bin | What it does | Do you need it? | Docs |
|---|---|---|---|---|
@ask-marcel/office-auth | ask-marcel-office-auth | Signs you in, keeps the token cache and gives the tokens to the other two packages. | Yes | README · USAGE · COMMANDS |
@ask-marcel/office-read | ask-marcel-office-read | Reads mail, calendar, OneDrive and SharePoint, Teams and chats, users, Excel, OneNote, To Do and Planner. Converts files and mail to markdown. It cannot change your tenant. | Yes | README · USAGE · COMMANDS |
@ask-marcel/office-write | ask-marcel-office-write | Writes mail drafts and calendar drafts and never sends them. Changes the state of mail, and the tasks of To Do and Planner. Each change has a dry-run and an undo. Converts mail, group post and calendar attachments to PDF through a temporary OneDrive file. | Only to change your tenant or to convert to PDF | README · USAGE · COMMANDS |
Start with the read package README. It shows what an agent can do with your Microsoft 365 data.
A fourth package, ask-marcel-office-cli 3.0.0, installs the three packages
and their three bins in one step. It holds no command of its own
(README). Install the packages one by one for a host that must
never write.
Install
To read only, install auth and read, then sign in:
npm i -g @ask-marcel/office-auth @ask-marcel/office-read
ask-marcel-office-auth login
ask-marcel-office-read my-quick-context
To also write (drafts, mail state, To Do, Planner) and convert attachments to PDF, install the three packages:
npm i -g @ask-marcel/office-auth @ask-marcel/office-read @ask-marcel/office-write
The packages need Node 20 or later, or Bun 1.0 or later, on macOS, Windows or Linux. Each package README shows how to register its MCP server.
If you used 2.8.0
The bin ask-marcel-office is gone. A script or a skill that calls it must
call the bin of the package that owns the command:
| Command of 2.8.0 | Bin to call now |
|---|---|
login, logout, scopes-check (now status) | ask-marcel-office-auth |
The mail draft commands and the *-to-pdf conversions | ask-marcel-office-write |
| All the other commands | ask-marcel-office-read |
scopes-check and update are gone. The changelog of the facade
gives the full list of changes. The write bin also has commands that 2.8.0 did
not have: the write package README lists them.
The agent skill
The skills/ folder holds an agent skill: it tells an agent
how to answer a question from your Microsoft 365 data, and how to write a reply
as an unsent draft. No package ships it. To use it, copy skills/ to
~/.claude/skills/ask-marcel/, or to the skill folder of your agent.
Develop
- CONTRIBUTING.md: the workspace, the commands of each folder, the pre-commit hook and the CI jobs.
- QA playbook: the full health check of the command surface before a release.
- The package split plan and the architecture decision records.
- Questions, requests and pull requests: the issues page.
License
MIT © Vincent Delacourt