Minerva MCP — Microsoft 365 & Azure MCP Server
Microsoft 365 & Azure admin: Graph, ARM, and the PowerShell cmdlets Graph does not expose.
Minerva MCP — Microsoft 365 & Azure scores 58 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 9 tools. Filed under Cloud, Productivity. GitHub shows 2 stars. Package registries report about 66 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
58 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
79/100 for listing completeness. Lost points: 7 of 9 tools barely described, short summary.
How quality is graded
Where the 58 comes from
22 + 10 + 2 + 10 + 4 + 10 = 58. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 2 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "houssemmak-minerva-mcp": { "command": "npx", "args": [ "-y", "minerva-mcp@0.4.2" ], "env": { "AZURE_TENANT_ID": "", "AZURE_CLIENT_ID": "", "AZURE_CLIENT_SECRET": "YOUR_AZURE_CLIENT_SECRET", "MINERVA_SHAREPOINT_URL": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
AZURE_TENANT_ID | Optional | Entra tenant id. Only needed for unattended app-only sign-in; omit it to sign in interactively with a device code. |
AZURE_CLIENT_ID | Optional | Application (client) id. Defaults to the public Microsoft Graph PowerShell client, so it is optional for trying the server out. |
AZURE_CLIENT_SECRETSecret | Optional | Client secret for app-only authentication. Leave unset to sign in interactively instead. |
MINERVA_SHAREPOINT_URL | Optional | SharePoint root URL, e.g. https://contoso.sharepoint.com. Required only by the SharePoint/PnP tool when PowerShell runs locally. |
Tools9Tool docs quality grade F
All capabilitiesazure_arm_calltoolAny Azure Resource Manager call
Exchange Online cmdlets
PnP PowerShell (SharePoint) cmdlets
Purview / compliance cmdlets
Teams Admin cmdlets
Tenant security posture
Organisation, licences, Secure Score
Any Microsoft Graph call (v1.0 or beta)
microsoft_searchtoolUnified Microsoft Search
About
Minerva MCP
Microsoft 365 and Azure administration for AI assistants — including the parts Microsoft Graph cannot reach.
An MCP server that lets Claude, Copilot, VS Code or any MCP client query and administer a Microsoft 365 tenant in plain language.
Why another Microsoft 365 MCP server?
There are already good ones, and this is not trying to replace them.
| Lokka | ms-365-mcp-server | Minerva MCP | |
|---|---|---|---|
| Microsoft Graph | ✅ | ✅ 300+ tools | ✅ generic call |
| Azure Resource Manager | ✅ | — | ✅ |
| Exchange Online cmdlets | — | — | ✅ |
| SharePoint / PnP cmdlets | — | — | ✅ |
| Teams Admin cmdlets | — | — | ✅ |
| Purview / compliance cmdlets | — | — | ✅ |
| Risk classification per action | — | — | ✅ |
| Human approval before writes | — | read-only switch | ✅ native to the protocol |
| MCP 2026-07-28 (stateless) | — | — | ✅ |
If you only need Graph, use Lokka or ms-365-mcp-server. They are excellent, more mature, and more widely used. Lokka in particular is written by a Microsoft Entra product manager.
Reach for this one when you hit the wall everyone hits eventually: a large part of Microsoft 365 administration has no Graph API. Mailbox permissions, transport rules, message trace, retention policies, sensitivity labels, Teams calling policies, SharePoint term stores, tenant-wide Exchange settings — those live in PowerShell and nowhere else. This server exposes them, with a risk classification and a confirmation step in front of anything that writes.
How it fits together
flowchart LR
A["AI client<br/>Claude · VS Code · Copilot Studio"]
B["minerva-mcp"]
C{"Risk<br/>classifier"}
D["Human<br/>confirmation"]
G["Microsoft Graph<br/>Azure ARM · Search"]
P["PowerShell 7<br/>Exchange · PnP · Teams · Purview"]
M["Microsoft<br/>authorizes the token"]
A -->|"stdio or HTTP"| B
B --> C
C -->|"read"| G
C -->|"write"| D
D -->|"signed mandate"| G
D -->|"signed mandate"| P
C -->|"read"| P
G --> M
P --> M
Reads go straight through. Writes stop at a classifier, come back to you as an
input_required describing the action and its consequences, and only run once
you confirm. Microsoft still has the final word: the server forwards a token, it
never grants access.
Install
Nothing to clone. Add it to your client and sign in on first use.
Claude Desktop
claude_desktop_config.json:
{
"mcpServers": {
"minerva": {
"command": "npx",
"args": ["-y", "minerva-mcp", "--stdio"]
}
}
}
VS Code
.vscode/mcp.json:
{
"servers": {
"minerva": {
"type": "stdio",
"command": "npx",
"args": ["-y", "minerva-mcp", "--stdio"]
}
}
}
More, including read-only and app-only setups, in examples/.
On the first tool call the server prints a device-code prompt on stderr: open the link, enter the code, done. No app registration needed to try it — it uses the public Microsoft Graph PowerShell client by default.
Requirements: Node.js 20+. For the PowerShell tools, PowerShell 7+
and the modules you intend to use (ExchangeOnlineManagement, PnP.PowerShell,
MicrosoftTeams).
What you can ask
"Which mailboxes have full access delegated to someone outside their department?" →
execute_exchange_onlinewithGet-MailboxPermission, no Graph equivalent exists.
"Show me every conditional access policy that does not require MFA, and our Secure Score." →
generate_security_report+microsoft_graph_call.
"Create a shared mailbox for invoicing and give the finance team access." → classified as a write: the server describes the action and its consequences, and waits for your confirmation before doing anything.
Tools
| Tool | What it does | Graph equivalent? |
|---|---|---|
microsoft_graph_call | Any Microsoft Graph call (v1.0 or beta) | — |
azure_arm_call | Any Azure Resource Manager call | — |
microsoft_search | Unified Microsoft Search | — |
get_tenant_context | Organisation, licences, Secure Score | — |
generate_security_report | Tenant security posture | — |
execute_exchange_online | Exchange Online cmdlets | ❌ none |
execute_pnp_sharepoint | PnP PowerShell (SharePoint) cmdlets | ❌ none |
execute_teams_admin | Teams Admin cmdlets | ❌ none |
execute_purview_compliance | Purview / compliance cmdlets | ❌ none |
Restrict the surface with --tools=microsoft_graph_call,get_tenant_context, or
forbid every write with --read-only.
Approval, and why it is not optional
A model reads untrusted content — an email subject, a site name, a document — and decides which tool to call. Prompt injection is not hypothetical, and the tools here can delete mailboxes.
So writes do not simply execute. Every action is classified auto, confirmed
or critical from the HTTP verb and path (or the PowerShell verb). Anything
above auto makes the server answer input_required under
MCP's Multi Round-Trip Requests:
your client shows what is about to happen and its consequences, you confirm, and
only then does it run.
The confirmation is a signed mandate (HMAC) bound to the caller, the method, and
a digest of the arguments, valid five minutes. A mandate obtained to delete
/users/1 cannot be replayed on /users/999, and cannot be presented by anyone
else.
If your client does not support elicitation, nothing is silently executed: the server returns an error saying the action needs confirmation.
Options
Every flag has an environment variable equivalent.
Transport
| Flag | Env | Default | |
|---|---|---|---|
--stdio | MINERVA_TRANSPORT=stdio | HTTP | JSON-RPC over stdin/stdout |
--port=<n> | MCP_SERVER_PORT | 3001 | HTTP listen port |
In stdio mode all logs go to stderr — stdout belongs to the protocol.
Authentication
| Flag | Env | |
|---|---|---|
--auth=<mode> | MINERVA_AUTH_MODE | bearer, device-code, client-secret |
--tenant=<id> | MINERVA_TENANT_ID, AZURE_TENANT_ID | Entra tenant |
--client-id=<id> | MINERVA_CLIENT_ID, AZURE_CLIENT_ID | Application |
--client-secret=<s> | AZURE_CLIENT_SECRET | App-only secret |
Defaults: bearer over HTTP (the caller supplies the token), device-code over
stdio, client-secret as soon as a secret is present. Each resource gets its own
token: Graph, ARM, Exchange, Purview, SharePoint and Teams do not share an
audience.
Scope
| Flag | Env | |
|---|---|---|
--read-only | MINERVA_READ_ONLY | Refuse every write |
--tools=<a,b,c> | MINERVA_TOOLS | Register only these tools |
--ps=<mode> | MINERVA_PS_EXECUTOR | auto, redis, local, none |
--sharepoint-url=<url> | MINERVA_SHAREPOINT_URL | Required by the PnP tool locally |
--allowed-origins=<a,b> | MINERVA_ALLOWED_ORIGINS | Browser origins allowed on /mcp |
--redis-url=<url> | REDIS_URL | Queue for an external PowerShell runner |
| — | MINERVA_MRTR_SECRET | Signing key for approval mandates |
| — | MINERVA_PWSH_PATH | Path to pwsh |
| — | MINERVA_REQUIRE_VERIFIED_TOKENS | Refuse tokens whose signature cannot be verified |
--read-only reuses the same risk classifier as the approval gate, so it covers
PowerShell cmdlets too, not just HTTP verbs.
Protocol support
Speaks MCP 2026-07-28, and still serves handshake-era clients until 2027-07-28.
Stateless core (per-request _meta, no initialize, no Mcp-Session-Id) | ✅ |
server/discover | ✅ |
Multi Round-Trip Requests (input_required) | ✅ — this is the approval mechanism |
MCP-Protocol-Version / Mcp-Method / Mcp-Name headers, base64 sentinel | ✅ validated against the body |
ttlMs / cacheScope on lists | ✅ always private |
Version negotiation (-32022 listing supported versions) | ✅ |
Origin validation (anti DNS-rebinding) | ✅ |
| GET/DELETE on the MCP endpoint | ✅ 405, removed by this revision |
Handshake era (initialize) | ✅ until 2027-07-28 |
One endpoint serves both generations; the request body decides which. Both read the same tool registry, and a test compares them against a frozen contract so they cannot drift.
Security
Read SECURITY.md before deploying. The three things that matter:
- This server grants nothing. It forwards a Microsoft token; Microsoft authorizes. A restricted token gives a restricted server.
- Graph tokens cannot be verified by a third party — they carry a
nonceheader that only Graph can check. Theirtid/oidclaims are therefore self-reported. The server validates them structurally, flags themverified: false, and binds approval mandates to a fingerprint of the token itself rather than to the claims alone. A token that should have verified and did not is rejected. - Local PowerShell mode isolates nothing. Cmdlets run with the current user's rights. Do not expose it to a caller you do not trust.
Cmdlet names and parameters never reach the script as code: they travel through
environment variables, the name is validated against a strict Verb-Noun
pattern, and the call goes through Get-Command plus the call operator.
Report a vulnerability privately — see SECURITY.md.
What this does not do
- No process isolation in local mode.
- No multi-tenant brokering — one server, one identity.
- No signed audit ledger. Audit events are JSON on stderr, not a signed, offline-verifiable record.
Those three belong to Minerva-IA, the commercial platform this server was extracted from. Everything in this repository works without it.
Development
npm install
npm run dev:stdio # stdio, hot reload
npm run verify # typecheck + tests + secret scan
npm run build && node scripts/smoke-stdio.mjs
Tests need no credentials and touch no network.
Pull requests are closed until 2027-07-31 — see CONTRIBUTING.md for why, and for what is welcome in the meantime (bug reports very much are).
Licence
MIT — see LICENSE.
Frequently asked questions
What is Minerva MCP — Microsoft 365 & Azure MCP Server?
Microsoft 365 & Azure admin: Graph, ARM, and the PowerShell cmdlets Graph does not expose.
How do I install Minerva MCP — Microsoft 365 & Azure MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Minerva MCP — Microsoft 365 & Azure MCP Server runs locally from the npm package minerva-mcp with the command npx -y minerva-mcp@0.4.2.
Is Minerva MCP — Microsoft 365 & Azure MCP Server free and open source?
Yes. Minerva MCP — Microsoft 365 & Azure MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Minerva MCP — Microsoft 365 & Azure MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Minerva MCP — Microsoft 365 & Azure MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Minerva MCP — Microsoft 365 & Azure MCP Server provide?
Minerva MCP — Microsoft 365 & Azure MCP Server provides 9 tools, including azure_arm_call, execute_exchange_online, execute_pnp_sharepoint, and execute_purview_compliance. See the full tool list for descriptions and parameters.
How is Minerva MCP — Microsoft 365 & Azure MCP Server's trust score calculated?
Minerva MCP — Microsoft 365 & Azure MCP Server scores 58 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.