@loxeai/mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@loxeai/mcp-server Scan my Terraform infrastructure for SOC 2 issues and explain the top finding."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@loxeai/mcp-server
An MCP server for SOC 2 compliance work that runs entirely on your machine.
It scans your Infrastructure-as-Code, maps findings to SOC 2 Trust Services Criteria, explains them in plain English, and drafts the documents an audit will ask for. Your files never leave the laptop.
claude mcp add loxeai -- npx -y @loxeai/mcp-serverWhy this exists
Every compliance-automation platform surveyed converges on the same artifact: a dashboard of green checkmarks asserting things a viewer cannot verify. Auditors have noticed, some now refuse platform-reported data and require raw exports instead.
This tool tells you what it can't prove as clearly as what it can:
An IaC scan is the primary evidence source for 3 of the 33 SOC 2 Common Criteria. It partially informs 8 more. The remaining 22 are out of reach of any infrastructure scan — they need documents, people, or live cloud state. The tool says this to your face rather than implying broader coverage.
It never reports a criterion as satisfied. The absence of a finding is not evidence of compliance, and that judgment belongs to a licensed CPA. A test asserts the string
"satisfied"cannot appear in the OSCAL output.When a control mapping is a guess, it says so. Every mapping carries a
mappingSourceand aconfidence, and the mapper declines to stretch rather than inventing a criterion. That refusal is the designed behavior, not a gap.
Related MCP server: Security & GRC MCP Server
Install
Requires Node 20+ and one scanner:
pipx install checkov # recommended — richer metadata
brew install trivy # or this — faster, single binary, no PythonIf neither is installed, the server tells you so and refuses to return an empty result — an empty finding list would read as "compliant."
Claude Code
claude mcp add loxeai -- npx -y @loxeai/mcp-serverClaude Desktop / any MCP host
claude_desktop_config.json:
{
"mcpServers": {
"loxeai": {
"command": "npx",
"args": ["-y", "@loxeai/mcp-server"]
}
}
}No env block. There is nothing to authenticate against.
Verify someone else's report
The trust page prints a fingerprint and a command. That command is real:
npx @loxeai/mcp-server verify --root /path/to/their/repo --expect <fingerprint>Exit 0 means the tree is byte-identical to the one that produced the report. Exit 1 means it is not. Needs no scanner, no account, and no network — it just hashes the files.
Test it locally
git clone <repo> && cd loxeai-mcp-server
npm install && npm run build
npm test # 140 tests
bash scripts/verify.sh # the full invariant gate
npx @modelcontextprotocol/inspector node dist/index.jsTools
Every tool is readOnlyHint: true, destructiveHint: false, and declares an outputSchema, so a client can validate every payload it receives.
Tool | What it does |
| Scan Infrastructure-as-Code for SOC 2 misconfigurations |
| List findings from a scan batch |
| Get full detail for one finding |
| Explain a finding in plain English |
| Map an IaC check to a SOC 2 control |
| SOC 2 control catalog |
| Group findings into action items by blast radius |
| Get the eight scoping questions |
| Scope SOC 2 to your company from eight questions |
| Preview what a trust page would say right now |
| Render the trust page as a self-contained file |
| Export scan results as NIST OSCAL assessment-results |
| Draft a SOC 2 policy grounded in your actual setup |
| List draftable policies and what each supports |
| Report what this server can and cannot do with your credentials |
| Check scanner availability and server scope |
Resources
URI | Contents |
| All 33 Common Criteria |
| One criterion, with completion on |
| The keyword rules the mapper uses, so you can audit them |
| Scan counts and fingerprint |
| The scan → fix → rescan loop |
Prompts
Prompt | Purpose |
| Grounded remediation brief for one finding |
| Honest coverage summary for a repository |
Try it
"Do I even need SOC 2, and what would it involve?"
Ask me the applicability questions.Eight questions, then a per-criterion brief telling you what satisfying each one looks like for a company shaped like yours, and which three to deal with first. Fully deterministic — no model, no network.
It will not tell you a criterion doesn't apply. All 33 apply to essentially every SOC 2 Security engagement, and a tool that told you otherwise would be handing you an exception at fieldwork.
"What's wrong with my Terraform?"
Scan /abs/path/to/infra and explain the worst finding in plain English.scan_iac returns a handoff, not findings — a real repo produces hundreds. Page through with list_findings, then explain_finding gives you what it means, the real-world risk, why an auditor would care, what to change, and the shape of the fix.
"What would a trust page say right now?"
Preview my trust page.Per-criterion evidence status, each exception traced to file, line, rule ID, severity and mapping confidence, plus a fingerprint a reviewer can recompute.
Scope, stated plainly
Covered: SOC 2 Security category — the 33 Common Criteria (CC1.1–CC9.2), by identifier.
Not covered: the optional Availability (A1.x), Confidentiality (C1.x), Processing Integrity (PI1.x) and Privacy (P1–P8) categories. All five in scope would be 61 criteria. Also not covered: ISO 27001, HIPAA, PCI DSS, NIST, GDPR. The tool has no mapping for any of them and will not pretend otherwise.
Coverage within the Security category:
Count | Meaning | |
IaC-primary | 3 | CC6.1, CC6.6, CC6.7 — a scan is the main evidence source |
IaC-partial | 8 | A scan contributes but cannot satisfy alone |
Out of reach | 22 | No infrastructure scan can evidence these |
Of those 22, most are evidenced by a written document or by a human actually performing an activity — a risk assessment, a vendor review, an incident response. Across all 33, 21 have a document or a human process as their primary evidence source. Those are the ones no compliance tool automates, whatever its dashboard implies.
Every criterion carries an iacNote explaining precisely what a scan can and cannot show for it.
Security model
What this server guarantees
It performs no write operations. No filesystem writes, no mutating API calls. Remediation comes back as text; your agent applies it through its own approval step, with you in the loop. CI greps src/ to keep this true.
The server itself makes no outbound network requests. Enforced by grep in CI.
It does spawn subprocesses that can, and it would be dishonest to elide that:
Checkov is invoked with
--skip-downloadand Trivy with--skip-check-update, suppressing their default policy/metadata fetches. (Cost: Checkov'sguidelineURL is then absent from findings.)check_capabilitiesrunsaws sts get-caller-identityandgh auth status, which contact AWS STS and api.github.com by definition — that is what they are for.
Everything else is local, and your file contents are never uploaded anywhere by anything.
What it does not guarantee
That your credentials can't write. This is a different claim, and an important one. When a tool inherits your ambient CLI session it does not choose the scopes. A typical gh auth login carries repo (full control of private repositories — read and write) and workflow. An az login Graph token carries Group.ReadWrite.All and User.ReadWrite.All, and neither you nor a tenant admin can narrow that.
Run check_capabilities to see exactly where you stand. On GitHub, true credential-level read-only is achievable via a fine-grained PAT with read-only permissions. On Azure via az, it is not.
Incomplete scans cannot look clean
The worst thing this tool could do is hand you a confident, fingerprinted, prospect-facing document that says the opposite of the truth. Three separate conditions now force every reachable criterion to not-covered-by-this-scan and put INCOMPLETE SCAN at the top of the artifact:
no IaC files were found or read;
the scanner evaluated zero resources and ran zero checks — what an unparseable or unsupported configuration actually looks like;
any file failed to parse, or any check was explicitly suppressed in source (
#checkov:skip=...).
The suppression case matters most. A suppressed check vanishes from failed_checks entirely, so without this a developer could silence a finding and the trust page would go green. A suppressed check is an accepted risk, not an absent one, and it is listed by ID, resource, file and stated reason on the artifact.
Prompt injection
IaC carries attacker-influenceable strings: resource names, tags, comments, module source URLs. A scanner echoes them back, and they flow into an agent holding filesystem write access.
Before anything reaches model context, this server strips invisible and bidi unicode, neutralizes known injection patterns, and wraps content in explicit <untrusted-data> boundaries. Verified against live Checkov: a payload smuggled through a resource name comes back as aws_ebs_volume.[loxe:neutralized](32 chars)_and_[loxe:neutralized](13 chars).
This reduces the attack surface. It does not eliminate semantic prompt injection, and no encoding step can. Plausible instruction text that avoids the patterns will still get through. In particular, serializing to JSON is not a defense — {"name": "Ignore all previous instructions"} is still legible instruction text to a model. Any claim that structured output prevents injection is false.
What this tool is not
It is not an audit, examination, attestation, assurance engagement, or opinion. Those are terms reserved to licensed CPAs under state accountancy law, not merely by convention. This is automated static analysis.
There is no such thing as "SOC 2 certified." SOC 2 is an attestation, not a certification. There is no certifying body and no certificate. Only a licensed CPA firm can perform a SOC 2 examination and issue a report.
Generated artifacts never assert compliance. The trust page emits per-criterion evidence status with traceable sources — never a framework badge, never "compliant." The OSCAL export only ever emits not-satisfied. Policy drafts state in their own header that having the document does not satisfy the criteria it supports.
If you need a claim you can safely put in front of a prospect while mid-process, this is the shape:
SOC 2 Type II examination in progress. Independent CPA firm [name] engaged; observation period [X]–[Y]; report expected [date].
Every element is a verifiable fact.
Licensing and attribution
Code: MIT.
Control catalog: every title, description and plain-English restatement in src/catalog/soc2-controls.ts is original wording written for this project. None of it is AICPA text.
This matters more than it might appear. The official criterion text in AICPA TSP Section 100 is free to download but not free to redistribute — it carries "All rights reserved." Every widely-used SOC 2 control corpus we examined redistributes it anyway; one does so with "entity" search-replaced to "organization". An open-source license conveys only rights the licensor actually holds, so none of those corpora are safe to build on.
This catalog references criteria by identifier only and describes them in its own words. If you want the official text, buy it from the source:
AICPA & CIMA. TSP Section 100, 2017 Trust Services Criteria for Security, Availability, Processing Integrity, Confidentiality, and Privacy (With Revised Points of Focus — 2022). https://www.aicpa-cima.com/resources/download/2017-trust-services-criteria-with-revised-points-of-focus-2022
SOC 2® and Trust Services Criteria are property of the AICPA. This project is unaffiliated with the AICPA and references the criteria descriptively.
Points of focus are not requirements. TSP 100 §.07 states that using the criteria "does not require an assessment of whether each point of focus is addressed." So this tool says "MFA supports CC6.6", never "CC6.6 requires MFA." MFA appears only as a point of focus, and an auditor cannot fail you against one. Stating a point of focus as a requirement is the most common credibility failure in automated SOC 2 tooling.
Configuration
Variable | Default | Purpose |
| cwd | Colon-separated directories the scanner may read |
|
| Bypass the trust check. Not recommended |
| unset | Path to a JSON file pinning |
Scan paths must be absolute. Relative paths resolve against the server's working directory and would silently scan the wrong tree.
Mapping overrides are validated against the catalog — an override naming a criterion that doesn't exist is rejected and logged to stderr, not silently accepted.
Development
npm run build # tsc
npm test # vitest, 140 tests
npm run inspect # build + MCP InspectorInvariants enforced by scripts/verify.sh, run in CI: no filesystem writes in src/ · no outbound network from the server itself · no console.log (it corrupts the stdio protocol stream) · no deprecated SDK APIs · no Zod .description() · no stale scope strings · the mapper can never emit a criterion whose IaC capability is none · a scan that evaluated nothing can never report a clean criterion · every tool declares an outputSchema · the trust page never asserts a compliance claim on an assertive surface · OSCAL never emits satisfied.
The gate exits non-zero on any failure. A check that prints a count without failing the build is worse than no check, because it manufactures confidence — an earlier version of this script did exactly that and hid seven real failures.
Built on @modelcontextprotocol/sdk 1.30.0 using registerTool / registerResource / registerPrompt. Transport is stdio only — the deprecated SSE transport is not used.
A note on the test fixtures
Most parser tests run against hand-written fixtures matching Checkov's documented JSON shape, and the injection tests run against real Checkov 3.3.10 output. Before trusting field-level parser behavior in production, re-capture a fixture from your own Checkov version:
checkov -d <dir> -o json > test/fixtures/checkov-real.jsonKnown limitations
Batches live in memory for the life of the server process. Restart the host and previous
batchIds are gone.Checkov's open-source build ships no severity metadata, so most findings come back
UNKNOWN. The tool reports that honestly rather than inventing a level.Control mapping is heuristic. It's driven by the scanner's own check names and resource types, not by a pinned check-ID table, because those IDs shift between scanner releases and a wrong mapping is worse than none. Confidence is always reported. Use
LOXE_MAPPING_OVERRIDESto pin mappings you've validated.No runtime evidence. Everything here describes declared configuration. Proving deployed state needs a live cloud check, which this server does not do.
--skip-check-updaterequires a warm Trivy cache. On a machine that has never run Trivy, the policy bundle is absent and the scan will under-report. Use Checkov, or runtrivy configonce with network access first.
Available Tools
16 toolsapplicability_briefScope SOC 2 to your company from eight questionsARead-onlyIdempotent
Answer eight questions about how your company is set up and get back, for each of the 33 SOC 2 Common Criteria, what satisfying it actually looks like for a company shaped like yours and which ones to deal with first. Fully local and deterministic; no account, no network call, no model. Call applicability_questions first to get the question list. IMPORTANT: this does not remove criteria from scope — all 33 apply to essentially every SOC 2 Security engagement. It tells you what each one means for you and what to prioritise.
Inputs: cloud (required), premises (required), timeline (required), workforce (required), +4 more. Returns: answers, caveats, summary, controls, +2 more
applicability_questionsGet the eight scoping questionsARead-onlyIdempotent
Returns the eight questions used by applicability_brief, with the allowed values for each and why each question is asked. Ask the user these conversationally, then call applicability_brief.
Inputs: no named parameters. Returns: questions
check_capabilitiesReport what this server can and cannot do with your credentialsARead-onlyIdempotent
Reports which cloud/VCS CLIs are authenticated on this machine and whether those credentials are WRITE-CAPABLE. This matters because 'read-only' is two separate claims: that this server performs no write operations (true, and verifiable by code inspection), and that the credential itself cannot write (a property of the token, which this server does not control when it inherits your ambient CLI session). Use this before telling anyone the integration is read-only. Never reads, stores, or transmits a token value — it asks each CLI what it is already logged in as.
Inputs: no named parameters. Returns: caveats, summary, credentials, serverGuarantee
classify_blast_radiusGroup findings into action items by blast radiusARead-onlyIdempotent
Collapses a list of findings into deduplicated action items and classifies each by how widely the fix applies: account-wide (fix once), per-region (rollout), per-resource (each resource), or per-person (human coordination).
This is what turns '400 findings' into '9 action items across 400 resources'. Pass a batchId to classify a whole scan, or pass findings inline to classify results from elsewhere.
Pure and offline: no scan, no network.
Inputs: batchId, findings. Returns: groups, byScope, totalFindings, totalActionItems
controlsSOC 2 control catalogARead-onlyIdempotent
Returns the SOC 2 control catalog this server evaluates against. Pass controlId for
one control; omit it for all.
Scope is the SOC 2 Security category, which is all 33 Common Criteria (CC1.1-CC9.2). The optional A / C / PI / P categories are NOT covered.
An IaC scan is the primary evidence source for only 3 of the 33 and partially informs 8;
the remaining 22 need documents, people or live cloud state. Each control reports what a
scan can and cannot evidence for it via its iac capability and iacNote.
Inputs: controlId. Returns: controls, frameworkScope, supportedControlIds
draft_policyDraft a SOC 2 policy grounded in your actual setupARead-onlyIdempotent
Produces a policy DRAFT in Markdown, grounded in the answers you gave to applicability_brief and, optionally, a real scan. Returned as a string; this server writes no files. Every judgment call is left as an explicit {{PLACEHOLDER}}, counted and returned separately rather than silently filled with a plausible default — because a policy describing controls you do not actually operate is worse than no policy, and becomes an audit exception. The draft states in its own header that having the document does not satisfy the criteria it supports; SOC 2 also wants evidence it was approved, communicated, acknowledged and followed.
Inputs: kind (required), cloud, batchId, premises, +7 more. Returns: kind, title, markdown, warnings, +6 more
explain_findingExplain a finding in plain EnglishARead-onlyIdempotent
Takes a finding from a scan and explains it without jargon: what it actually means, the real-world risk of ignoring it, why an auditor would care, what to change, and roughly what shape of work the fix is. Everything returned is derived from the finding itself — severity, control mapping and its confidence, blast radius — so it never invents a risk claim. Where the data is missing or the mapping is weak, it says so.
Inputs: batchId (required), findingId (required). Returns: effort, caveats, headline, findingId, +6 more
export_oscalExport scan results as NIST OSCAL assessment-resultsARead-onlyIdempotent
Emits the scan as a NIST OSCAL assessment-results document (JSON), the machine-readable format used by GRC platforms and assessment tooling. Returned as a STRING; this server writes no files. Two deliberate limitations are stated inside the document itself: no official OSCAL catalog for SOC 2 exists, so criterion IDs are used descriptively; and only 'not-satisfied' findings are ever emitted — this tool never asserts 'satisfied', because the absence of a scanner finding is not evidence that a criterion is met.
Inputs: batchId (required). Returns: bytes, oscalVersion, findingsEmitted, suggestedFilename
get_findingGet full detail for one findingARead-onlyIdempotent
Returns a single finding with its SOC 2 control mapping (including how the mapping was derived and how confident it is), blast-radius classification, and remediation guidance.
Inputs: batchId (required), findingId (required). Returns: finding, mapping, blastRadius, remediationGuardrails
list_findingsList findings from a scan batchARead-onlyIdempotent
Pages through findings from a previous scan_iac call. Returns lightweight rows;
call get_finding for full detail on one.
Findings with UNKNOWN severity are never filtered out by minSeverity. Checkov's open-source build often omits severity metadata, and dropping those findings would under-report real misconfigurations.
Inputs: batchId (required), limit, cursor, controlId, +2 more. Returns: total, batchId, findings, returned, +1 more
list_policiesList draftable policies and what each supportsARead-onlyIdempotent
Returns the policies this server can draft, the SOC 2 criteria each contributes toward, and what else you must produce beyond the document itself for those criteria to actually be addressed.
Inputs: no named parameters. Returns: note, policies
map_iac_finding_to_controlMap an IaC check to a SOC 2 controlARead-onlyIdempotent
Maps a scanner check to a SOC 2 Trust Services Criterion without running a scan. Useful for checks surfaced by another tool, CI output, or a scanner this server does not wrap.
Always returns mappingSource and confidence. A low confidence mapping is a
keyword match that the resource type did not corroborate -- verify it before relying
on it. unmapped means no rule matched; that is a real answer, not a failure.
Inputs: checkName (required), checkId, resourceType. Returns: controlId, rationale, confidence, requirement, +3 more
preview_trust_pagePreview what a trust page would say right nowARead-onlyIdempotent
Builds a per-criterion evidence summary from a scan, suitable for showing a prospect's security team. Every row traces to the file, line, rule ID, mapping confidence and timestamp behind it, and the document carries a fingerprint the viewer can recompute. This returns DATA ONLY — nothing is published and no file is written. It never emits a compliance badge or the words 'compliant' or 'certified': SOC 2 is an attestation that only a licensed CPA firm can issue, and this is an automated scan.
Inputs: batchId (required). Returns: scan, scope, summary, controls, +6 more
render_trust_pageRender the trust page as a self-contained fileARead-onlyIdempotent
Returns the trust page as a complete HTML or Markdown document, as a STRING. This server never writes files — save it yourself, or ask your agent to write it so the diff goes through your normal approval step. The HTML is fully self-contained: no CDN, no webfont, no analytics, no script, no external request of any kind, because a trust page that phones home would be flagged in exactly the security review it exists to serve.
Inputs: batchId (required), format. Returns: bytes, format, suggestedFilename, documentFingerprint
scan_iacScan Infrastructure-as-Code for SOC 2 misconfigurationsARead-onlyIdempotent
Scans Infrastructure-as-Code for security misconfigurations and maps each finding to a SOC 2 Trust Services Criterion. Supports Terraform, CloudFormation, Kubernetes, Dockerfile, Helm, ARM and Bicep via a locally installed Checkov or Trivy.
The scan runs entirely on this machine. File contents are never transmitted anywhere.
Returns a SUMMARY AND A HANDOFF, not the findings themselves -- a real repository
produces hundreds of findings. Call list_findings with the returned batchId to page
through them, then get_finding for detail on a specific one.
The path MUST be absolute. Run pwd in the target directory if you need it.
Scope: SOC 2 Security category only. All 33 Common Criteria are catalogued, but an IaC scan is the primary evidence source for just 3 of them and partially informs 8 more -- the remaining 22 are out of reach of any infrastructure scan and need documents, people, or live cloud state. This server does not support ISO 27001, HIPAA, PCI, NIST or GDPR. Do not claim coverage it does not have.
Inputs: path (required), scanner, configPath, frameworks. Returns: next, caveat, counts, batchId, +12 more
scanner_statusCheck scanner availability and server scopeARead-onlyIdempotent
Reports which IaC scanners are installed, which control framework is supported, and which trusted roots this server will scan. Call this first when a scan fails.
Inputs: no named parameters. Returns: coverage, scanners, anyAvailable, trustedRoots, +5 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Every tool targets a distinct step in the scan-to-evidence pipeline: scan vs paginate vs detail vs explain vs classify vs map are clearly separated, and even the adjacent preview/render and status/capability pairs are differentiated by their names and descriptions. There is no pair an agent would plausibly confuse when selecting a tool.
Most tools follow a lower_snake_case verb_noun pattern (scan_iac, list_findings, render_trust_page); a few are noun-phrase names (controls, scanner_status, applicability_brief). The style is still internally consistent and readable, so this is a minor deviation rather than a real problem.
16 tools is one above the typical well-scoped range, but each tool maps to a distinct stage in the SOC 2 IaC workflow: environment checks, scanning, finding navigation, mapping, applicability, policy drafting, and reporting. No tool is redundant, so the count feels deliberate rather than bloated.
The tool surface covers the full lifecycle this server promises: environmental preflight, scanning, finding investigation, control mapping, blast-radius triage, tailored applicability, policy draft, trust-page rendering, and OSCAL export. The read-only/no-file-write constraint is consistently honored and does not leave obvious dead ends; list_findings/get_finding and applicability_questions/applicability_brief are properly chained.
Maintenance
Related MCP Connectors
Manage compliance controls, policies, and audit readiness for SOC 2, HIPAA, ISO 27001 and more.
HIPAA compliance AI agent — scan, grade, SRA, and generate compliance docs.
Compliance frameworks (SOC 2, ISO 27001, CMMC, NIST, more) delivered to AI agents as MCP tools.
ISO 27001, SOC 2, ISO 42001, EU AI Act and African compliance software.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables auditors to scan cloud IAM policies for privilege-escalation paths, wildcards, and risky grants directly within Cursor or Claude Code, using a deterministic rule engine that runs entirely on local infrastructure.1-
- FlicenseNot gradedqualityDmaintenanceEnables local security scanning and compliance gap analysis for code and text, detecting secrets, PII, and OWASP vulnerabilities, and assessing readiness across major frameworks like NCA, ISO 27001, NIST CSF, and SOC 2.-
- AlicenseAqualityDmaintenanceEnables analyzing Salesforce deployment logs, validating metadata manifests, assessing permission risks, and generating remediation plans through deterministic, local-only rules.4MIT
- AlicenseAqualityCmaintenanceEnables local-first scanning of Terraform for security misconfigurations while an AI assistant writes the code, providing fixes and compliance mappings without uploading infrastructure code.87Apache 2.0