Read-only MCP server for Inforcer M365 baseline governance, plus assessment and report runs.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A Model Context Protocol (MCP) server that gives AI assistants structured, mostly read-only access to Inforcer Microsoft 365 baseline-governance data β tenants, baselines, alignment/drift, policies, secure scores, identity, audit logs, and report generation β plus two write actions to trigger an assessment run or queue a report.
Note: This project is maintained by Wyre Technology.
Inforcer does not (at time of writing) publish an official REST API specification. This server wraps the @wyre-technology/node-inforcer SDK, whose API surface is community-sourced from royklo/InforcerCommunity. Endpoints, field shapes, and behavior may change without notice. Treat results accordingly and verify anything load-bearing against the Inforcer portal.
Every tool in this server is read-only EXCEPT two:
inforcer_assessments_run β triggers an assessment run for a tenant.inforcer_reports_run β queues one or more report runs across one or more tenants.Both are HIGH-IMPACT (not destructive): they kick off real work in Inforcer and are visible to operators. Both are annotated accordingly and ask for confirmation before running. Confirm with the user before invoking.
There are no create/update/delete tools for policies, tenants, or baselines β those operations are not exposed by the community API and are intentionally absent here.
Claude Code (CLI):
See Installation for Docker and from-source methods.
inforcer_navigate to explore domains, then call domain-specific toolstenant as a numeric Client Tenant ID, a tenant DNS name, an Azure AD GUID, or a friendly name β resolved automaticallyInf-Api-Key header auth, region-scopedOr pull the pre-built image:
| Variable | Description | Default |
|---|---|---|
INFORCER_REGION | Required. Inforcer API region β one of anz, eu, uk, us. There is no default; the server errors clearly if it is missing. | β |
INFORCER_API_KEY | Required. Inforcer API key, sent as the Inf-Api-Key header. | β |
MCP_TRANSPORT | Transport mode (stdio or http) | stdio |
MCP_HTTP_PORT | HTTP server port | 8080 |
AUTH_MODE | Auth mode (env or gateway) | env |
LOG_LEVEL | Log level (debug, info, warn, error) | info |
Both INFORCER_REGION and INFORCER_API_KEY are required for any API call. Tool discovery (tools/list) works without them; the first real call will error if either is missing.
Inforcer's tenant-scoped routes use an integer Client Tenant ID β which is NOT the same as the Azure AD tenant GUID (msTenantId). To make tools easy to use, the tenant argument accepts any of:
42),contoso.onmicrosoft.com),msTenantId), orContoso).Names/DNS/GUIDs are resolved to the numeric Client Tenant ID via the SDK's resolveTenantId before each tenant-scoped call. If a name matches more than one tenant, the call fails with a clear "ambiguous" error β pass the numeric Client Tenant ID instead. Use inforcer_tenants_resolve to see exactly which Client Tenant ID an input maps to.
The server uses decision-tree navigation. Start with inforcer_navigate to pick a domain, or call any tool directly. All tools are read-only except inforcer_assessments_run and inforcer_reports_run.
| Domain | Tools | Read-only |
|---|---|---|
| navigation | inforcer_navigate, inforcer_status (live baselines.list() connectivity check) | β |
| tenants | inforcer_tenants_list, inforcer_tenants_get, inforcer_tenants_resolve | β |
| baselines | inforcer_baselines_list | β |
| alignment | inforcer_alignment_scores, inforcer_alignment_details (per-tenant drift) | β |
| policies | inforcer_policies_list (by tenant) | β |
| secure-scores | inforcer_secure_scores_get (by tenant) | β |
| identity | inforcer_users_list, inforcer_users_get, inforcer_groups_list, inforcer_groups_get, inforcer_roles_list | β |
| audit | inforcer_audit_event_types, inforcer_audit_search | β |
| assessments | inforcer_assessments_list (β
), inforcer_assessments_run (β HIGH-IMPACT, not read-only) | mixed |
| reports | inforcer_reports_types_list, inforcer_reports_runs_list, inforcer_reports_run_status, inforcer_reports_download_output (β
), inforcer_reports_run (β HIGH-IMPACT, not read-only) | mixed |
inforcer_reports_run queues asynchronously β poll the run with inforcer_reports_run_status until isTerminal: true, then fetch each output with inforcer_reports_download_output (returns base64-encoded file content).
When hosted behind the WYRE MCP Gateway, set AUTH_MODE=gateway and MCP_TRANSPORT=http. In this mode the server is stateless (a fresh MCP server + transport per request) and reads credentials from per-request HTTP headers injected by the gateway:
| Header | Maps to |
|---|---|
x-inforcer-region | INFORCER_REGION |
x-inforcer-api-key | INFORCER_API_KEY |
When both headers are present the server updates the environment and invalidates its cached client so the next call uses the freshly-injected credentials. tools/list still works without credentials, so discovery is never blocked. The container image defaults to MCP_TRANSPORT=http; /health reports ok when credentials are configured and degraded otherwise.
See docker-compose.yml for full configuration. Copy .env.example to .env and fill in your credentials:
See CONTRIBUTING.md for guidelines.
Apache 2.0 β Copyright WYRE Technology
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/inforcer)<a href="https://allmcps.com/mcp/inforcer"><img src="https://allmcps.com/api/badge/inforcer?style=directory" alt="Inforcer on AllMCPs" /></a>