Arkwarden MCP Server
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
@arkwarden/mcp
The old
infraweaver-mcpnpm package is deprecated in favour of@arkwarden/mcp. The server is the same; the package and the commands were renamed (arkwarden-mcpandarkwarden-mcp-http). Install it withnpx -y -p @arkwarden/mcp arkwarden-mcp.
A Model Context Protocol server that gives an AI coding agent (Claude Code, Cursor, Windsurf, …) read-only access to a repository's Arkwarden Cloud posture — its open Terraform findings, public health score, and signed compliance evidence — without ever writing to the repo or holding a cloud credential.
This is the Arkwarden MCP server: it reads posture Arkwarden already recorded in your Cloud account. It is complementary to the Arkwarden Refactor's local
arkwarden mcpcommand, which runs the Terraform scanners on your working tree. Use this one to ask "what did Arkwarden find, and is it compliant?"; usearkwarden mcpto scan/validate/plan right now.
Tools
Tool | Auth | What it does |
| none | Public Terraform Health Score (0–100) + posture for a public repo. |
| none (offline) | Recompute a Cloud bundle's hash and check its embedded Ed25519 signature — no network. (Action bundles use a detached |
| none (network, stdio only) | Verify a signed evidence bundle, a directory written by the Arkwarden Refactor (Refactor or Import) with keyless signing on: the Sigstore message signature over |
| org token | Is the repo Cloud-managed? Its plan + org-required compliance controls. |
| org token ( | Open findings: severity, scanner, rule id, |
| org token ( | Immutable, signed compliance evidence bundle for a framework. |
| org token | The maintained finding→framework-control crosswalk (CE / ISO 27001 / NCSC Cloud Security Principles). |
| org token ( | Write, off by default (set |
| org token ( | Poll a dispatched remediation's lifecycle (requested → open → merged/…). |
All tools are read-only except arkwarden_remediate, the single write path — it triggers an Arkwarden fix run that OPENS a PR for a human (it never merges), and needs a token carrying the remediate:write scope plus the Arkwarden GitHub App installed on the org. The two token-free tools work the moment the server starts; the rest need a token.
Write tools are off by default. Until you set ARKWARDEN_MCP_ENABLE_WRITE_TOOLS=1 (or true), arkwarden_remediate is not registered: it does not appear in the tool listing and a call to it is refused as an unknown tool. arkwarden_remediation_status only reads, so it is always listed.
Migrating: an existing setup that relies on arkwarden_remediate must add ARKWARDEN_MCP_ENABLE_WRITE_TOOLS=1 to the server's environment, for example in the env block of your mcp.json. Read tools are unchanged.
Related MCP server: Break Anything
Requirements
Node.js ≥ 20.10 — except
arkwarden_verify_keyless, which loads the@sigstoreverify packages on first use (sigstore-js, against the Sigstore trusted root, falling back to the one shipped with it when the live one cannot be fetched) and needs a Node theirenginesrange accepts (currently ^22.22.2, ^24.15.0 or ≥ 26). On an older Node that one tool returns an error; the rest work.An MCP client that speaks the
2026-07-28protocol revision. This server implements that revision only (SDK v2,@modelcontextprotocol/server2.x) and refuses the 2025-erainitializehandshake with a-32022 Unsupported protocol versionerror that names the supported revision. See MCP-PROTOCOL.md.An Arkwarden Cloud org token (
akw_…) for the authenticated tools — mint one in Dashboard → Settings → Tokens.arkwarden_findingsandarkwarden_evidence_exportadditionally need theevidence:readscope;arkwarden_remediateneeds theremediate:writescope (carried by human-minted tokens — re-mint if an older token predates it) and the Arkwarden GitHub App installed on the org.
Configuration
Set via environment variables (see .env.example):
Variable | Default | Notes |
|
| Your Cloud base URL, no trailing slash (API served under |
| — | The |
|
| Per-request timeout (covers body read). Digits only: |
| (none) | Extra published signing-key fingerprint(s) to confirm evidence provenance. Extends (does not replace) the server's built-in published pins — add a self-hosted deployment's key here. |
|
| Diagnostics threshold on stderr ( |
| (off) | Set to |
|
| HTTP transport only. |
|
| HTTP transport bind interface. Set |
| (loopback defaults) | HTTP transport DNS-rebinding Host allow-list, as comma-separated hostnames ( |
| (off on loopback) | HTTP transport CORS origin allow-list (browser clients), as comma-separated full origins e.g. |
|
| HTTP transport concurrent in-flight request cap (the transport is stateless, so concurrency is the only thing to bound). |
| a quarter of the cap, at least 1 | HTTP transport: the most in-flight requests one token may hold, so a single caller cannot fill every slot. Over it, a request is refused |
|
| HTTP transport: the most new tokens one network address may have put to the Cloud in a minute, so a flood of made-up tokens from one address cannot fill the Cloud-check slots. Over it, a request is refused |
|
| HTTP transport: how many reverse proxies sit in front of the server, a whole number from 0 to 10. A non-loopback bind refuses to start unless it is set, |
Install & build
npm install
npm run buildUse it in an MCP client (stdio)
Claude Code:
claude mcp add arkwarden \
-e ARKWARDEN_API_TOKEN=akw_your_token \
-- npx -y -p @arkwarden/mcp arkwarden-mcpCursor / Windsurf / any mcp.json — see examples/mcp.json:
{
"mcpServers": {
"arkwarden": {
"command": "npx",
"args": ["-y", "-p", "@arkwarden/mcp", "arkwarden-mcp"],
"env": { "ARKWARDEN_API_TOKEN": "akw_your_token" }
}
}
}Then ask your agent things like:
"What's the Terraform health score for
hashicorp/terraform?" →arkwarden_health_score"List the critical and high findings for
acme/platform-core." →arkwarden_findings"Export the Cyber Essentials evidence and verify it offline." →
arkwarden_evidence_export→arkwarden_verify_evidence
Authenticity vs. integrity.
arkwarden_verify_evidencerecomputes the hash and checks the Ed25519 signature, but a valid signature only proves the bundle was signed by whatever key it embeds. To prove it is genuinely Arkwarden's, its fingerprint must match a pinned one — a built-in pin or one the operator sets inARKWARDEN_EVIDENCE_FINGERPRINTS(built-in defaults will ship once Arkwarden Cloud's signing-key fingerprint is published; until then no default pin exists and zero-config verification tops out at "signed, provenance unconfirmed"). When one matches, the tool reportsprovenanceConfirmed: trueandverified: true; with no pin at all it returnsprovenanceConfirmed: nullandverified: false(a self-signed bundle is onlyintegrityVerified: true) and flags the gap. A bundle whosefingerprint_sha256claim is not the fingerprint of its own embedded key fails outright, and thefingerprintSha256the tool reports is always the one derived from the key (claimedFingerprintSha256echoes the claim). The per-callexpectedFingerprintargument is checked too, but it arrives alongside the bundle, so a match on it alone is reported as "matches the fingerprint the caller supplied" (pinSource: "caller",provenanceConfirmed: false) — never as Arkwarden provenance.pinSourcealways says which pin matched.Where the fingerprint comes from. Arkwarden Cloud serves its current evidence signing key at
/.well-known/arkwarden-evidence-keys.jsonon the Cloud origin — each entry'sfingerprint_sha256is the value to pin inARKWARDEN_EVIDENCE_FINGERPRINTS. Fetch it yourself over HTTPS from the origin you trust; this server never fetches pins.
key_idandsigned_atare unsigned. Onlycontent_hashis covered by the signature. Thesignature.keyIdandsignature.signedAtthe tool returns are copied from the bundle as-is, so anyone holding it can rewrite them without breaking the signature — they identify, they do not authenticate, and the tool never uses them for a verdict.
Cloud bundles only — there are two signing schemes. arkwarden_verify_evidence verifies a Cloud bundle: the signature is embedded under signature.signature and covers the UTF-8 bytes of the content_hash string, so the bundle is self-contained. A bundle produced by the Arkwarden Refactor (in CI or via the CLI) is signed the other way: a detached .sig file beside it, over the artefact file's exact bytes, with the bundle embedding only signature metadata (signature.detached_signature) and no content_hash at all.
Handing an Action bundle to this tool therefore reports a verification failure — missing signature bytes, missing content hash — which is a scheme mismatch, not a tampered artefact. The tool says so explicitly in its output when it recognises one. Verify engine bundles with the standalone verifier instead:
arkwarden verify-evidence <bundle> <bundle>.sig <pubkey>Run the hosted HTTP transport
For remote or browser-based clients, run the Streamable HTTP transport:
npm run start:http # listens on http://127.0.0.1:3010/mcpIt binds loopback only by default, ships with DNS-rebinding protection on by default, and keeps CORS off until you set ARKWARDEN_MCP_ALLOWED_ORIGINS. A Dockerfile is included for hosting.
The transport speaks the 2026-07-28 MCP specification, which has no protocol-level sessions: every request is self-contained — no Mcp-Session-Id, no initialize handshake — and the SDK builds a fresh server per request. Any replica can serve any request, so it scales horizontally behind a load balancer with no sticky routing. See MCP-PROTOCOL.md.
Each client sends its own Arkwarden token. In hosted mode the bearer on every /mcp request is the caller's own akw_… token, and the server forwards that token to Arkwarden Cloud. The server holds no token of its own, so there is no shared identity: a request with no Authorization: Bearer akw_… header, or one that is not shaped like an Arkwarden token, is refused with 401 (and a WWW-Authenticate: Bearer header) before its body is read and without a call to the Cloud.
A token is checked against the Cloud before anything runs. A well-formed akw_… string proves nothing, so the first request carrying a new token is put to the Cloud (GET /api/v1/whoami, the route the Cloud keeps for this: it authenticates the bearer, needs no scope and reads no data, and answers { org_id, scopes, kind }) and nothing else happens until the Cloud answers. The token-free tools (arkwarden_verify_evidence, arkwarden_health_score) therefore run only for a caller the Cloud has vouched for:
The Cloud accepts it (
200with a whoami answer; a token holding any scope, however narrow, passes): the request is served. The answer is kept for one minute, keyed by a hash of the token, so a token revoked in the Cloud stops working here within a minute.The Cloud does not know it (
401): refused401before the body is read. That answer is kept for five seconds, so a flood of one made-up token costs one Cloud call.The Cloud cannot be asked (an outage, a timeout, a redirect, any status that is not a clear yes or no, a
403and a200whose body is not a whoami answer included): refused503withRetry-After. It fails closed, and the outage itself is not remembered.
Both tables are bounded (1,024 entries each, oldest out first, so made-up tokens cannot push out a real user's entry), concurrent checks of one token share one Cloud call, and at most 16 checks are in flight at once (a new token past that is told 503 to retry). Each token may also hold only a share of the in-flight slots (ARKWARDEN_MCP_MAX_INFLIGHT_PER_CLIENT).
A flood of made-up tokens from one address cannot crowd out everyone else. A check that has to ask the Cloud is charged to the caller's network address: one address may have only a quarter of the 16 check slots in use at once, and may start only 30 new checks a minute (ARKWARDEN_MCP_MAX_TOKEN_CHECKS_PER_MINUTE). Past either, the request is refused 429 with Retry-After and the Cloud is not asked; answers already held (an accepted token, or a refusal from the last five seconds) cost nothing and are not counted. An IPv6 address counts as its /64, and an IPv4-mapped one as the IPv4 address. With ARKWARDEN_MCP_TRUSTED_PROXY_HOPS=0 the address is the connection's own: the server reads no X-Forwarded-For, so behind a reverse proxy or load balancer every caller shares the proxy's address and the limit applies to the deployment as a whole. That is why a non-loopback bind will not start with the setting left out: it must be written down, 0 only for clients that connect directly. Set ARKWARDEN_MCP_TRUSTED_PROXY_HOPS to the number of proxies in front of the server (1 behind a single platform proxy such as Railway) and the address becomes the one the closest proxy saw, taken as that many entries from the right of X-Forwarded-For; a client cannot choose it, because entries it adds sit to the left. Set it only when that many proxies really do append to the header, since otherwise the entry is one a client wrote. Raise ARKWARDEN_MCP_MAX_TOKEN_CHECKS_PER_MINUTE to suit how many new tokens a minute your clients really present. Two clients with different tokens get their own Cloud calls and their own cached answers; the Cloud's scopes and plan limits apply to each caller as they would anywhere else. /healthz stays open and reports only that the process is up.
// An HTTP-capable MCP client's configuration: the token is the caller's own.
{ "url": "https://mcp.example.com/mcp", "headers": { "Authorization": "Bearer akw_your_token" } }To expose it (containers, remote clients), set ARKWARDEN_MCP_BIND_ADDRESS=0.0.0.0 and an origin allow-list — the server refuses to boot exposed without naming which origins may call it — and ARKWARDEN_MCP_TRUSTED_PROXY_HOPS (1 behind a single platform proxy such as Railway, 0 only when clients connect directly). Put TLS in front of it: the token travels in a header.
ARKWARDEN_MCP_BIND_ADDRESS=0.0.0.0 \
ARKWARDEN_MCP_ALLOWED_ORIGINS=https://ide.example.com \
ARKWARDEN_MCP_TRUSTED_PROXY_HOPS=1 \
npm run start:httpTokens are never logged, never put in an error or a tool result, and the findings cache is keyed by a hash of the caller's token and the Cloud's address, so one caller never reads another's answer. That cache is the one piece of state shared between callers within a process: it is a single table for every caller (16 entries, 64 MB), so a busy caller can push another's entries out (they are fetched again, nothing more), and an answer is served for up to 30 seconds after the Cloud would refuse it.
The stdio transport is unchanged: it keeps using ARKWARDEN_API_TOKEN from its environment.
Breaking, hosted mode only: ARKWARDEN_MCP_AUTH_TOKEN is retired. Before, a shared bearer gated /mcp and every caller was served under the server's one ARKWARDEN_API_TOKEN; now neither is used (the server logs a warning if either is still set) and each client must send its own token. Remove ARKWARDEN_MCP_AUTH_TOKEN from your deployment and point clients at their own akw_… tokens. A non-loopback deployment that did not set ARKWARDEN_MCP_ALLOWED_ORIGINS still fails at boot with an error naming it. (For a full hosted deployment the MCP spec's OAuth flow is the longer-term answer.)
Develop & test
npm run dev # stdio server via tsx (no build step)
npm run dev:http # HTTP server via tsx
npm test # unit tests (node:test via tsx)
npm run typecheck # tsc --noEmit
npm run inspector # open the MCP Inspector against the stdio serverMCP Inspector
npx -y @modelcontextprotocol/inspector npx -y -p @arkwarden/mcp arkwarden-mcpSet ARKWARDEN_API_TOKEN in the Inspector's environment panel, then call any tool with an owner/repo.
Troubleshooting
"No ARKWARDEN_API_TOKEN configured" — the token-free tools still work; set the token for the rest.
401 Unauthorized — token is missing/expired/revoked. Mint a fresh one. On the HTTP transport a
401from/mcpitself means the request carried noAuthorization: Bearer akw_…header (or one not shaped like a token); send your own token.402 Payment required — a private repo (or a non-starter compliance framework) needs a paid plan.
404 Not found — the repo isn't connected to this org yet, or hasn't reported a run.
"no public report" from
arkwarden_health_score— the repo is private, unconnected, or unscanned; the public badge never discloses private posture.Nothing shows in the client — check the client's MCP server logs (this server logs to stderr; stdout is reserved for JSON-RPC).
Unsupported protocol version: 2025-11-25(-32022) — the client is speaking the 2025-era protocol. This server implements2026-07-28only; upgrade the client (or, for the SDK's ownClient, pin it:versionNegotiation: { mode: { pin: "2026-07-28" } }).
Releasing
Releases are automated with release-please, driven by Conventional Commits:
Before 1.0 the config bumps the patch for both:
feat: …andfix: …→ patch bump;feat!:/BREAKING CHANGE:→ minor bump.chore:/test:are hidden from the changelog.On each push to
main, therelease-pleaseworkflow maintains a release PR that bumps the version and updatesCHANGELOG.md.The tests run first (the
testjob, which the release job needs), so a failing build or test leaves no release or tag behind.Merging that PR cuts a GitHub release + git tag, which triggers two guarded jobs: build (
npm ci --ignore-scriptsandnpm run build, with no OIDC token) uploadsdist/, then publish (the only job withid-token: write, and it installs nothing) downloads it and runsnpm publish --access public.
Publishing uses npm trusted publishing (OIDC) — no NPM_TOKEN secret and no
NODE_AUTH_TOKEN. Only the publish job holds id-token: write, and npm exchanges the
GitHub OIDC id-token for a short-lived registry credential via the trusted
publisher configured on npmjs.com, which must name this repository's
release-please.yml workflow. There is deliberately no --provenance flag:
npm cannot generate provenance from a private repository, and asking for it fails
the publish. Once the repository is public, trusted publishing attaches
provenance on its own, with no flag needed.
Two trusted-publishing facts that outlive any single release:
The first publish of a new package name is manual. A trusted publisher is configured on an existing package's settings page, so the name must exist first —
0.1.0of the oldinfraweaver-mcpwas published by hand (npm publish --access public), and so is the first release of@arkwarden/mcp, which needs the@arkwarden-ioscope on npm first.The trusted-publisher config is per package name. Renaming the package needs a fresh manual first publish and a new trusted-publisher config, and the old name cannot be taken back cleanly:
npm unpublishis only allowed within 72 hours of publishing.
Security model
Almost entirely read-only, and write tools are off unless
ARKWARDEN_MCP_ENABLE_WRITE_TOOLSis set. The single write path,arkwarden_remediate, does not touch a repo directly — it POSTs to Arkwarden Cloud, which (server-side, via its GitHub App) dispatches a fix run that OPENS a PR for a human. It never merges, comments, or mints a token, and it requires the dedicatedremediate:writescope, which only human-minted org tokens carry (machine/OIDC/CI-run identities are withheld it, so a run can't fan out into more runs).The token is sent only as a
Bearerheader toARKWARDEN_API_URL. Secrets the Cloud may return (apiToken, module credentials) are stripped before a tool result is built. Text from the Cloud that lands in a tool result (finding descriptions and paths, error messages, identities, hashes, the notes a verifier reports) is bounded and cleaned first: control characters become spaces, and zero-width and other format characters, bidirectional overrides and isolates, the Unicode tag block and variation selectors are removed, so text cannot be hidden from a reader or reordered. The exceptions are the objects passed through whole on purpose (the evidence bundle, the crosswalk pack, run-context settings), which must reach a verifier unaltered and carry a note saying their strings are data, not instructions.arkwarden_verify_evidenceruns entirely offline and separates integrity (integrityVerified) from authenticity (provenanceConfirmed, required byverified) — a self-signed bundle can never read as verified or authentic without a pinned fingerprint.The published package ships an
npm-shrinkwrap.json, so a consumer runningnpx -y -p @arkwarden/mcp arkwarden-mcpinstalls the entire transitive dependency tree locked to integrity hashes — a freshly-published malicious transitive version can't be pulled in by live semver resolution.The HTTP transport holds no token of its own: every
/mcprequest must carry the caller's ownakw_…token as the bearer, which is checked against the Cloud (a made-upakw_…string is refused, and an outage refuses everyone: it fails closed) and then forwarded to the Cloud for that request only (no shared-token fallback). Tokens are not logged, echoed or shared through the cache. It binds loopback by default and refuses to boot on a non-loopback interface without an origin allow-list (ARKWARDEN_MCP_ALLOWED_ORIGINS); it defends localhost with a Host allow-list (DNS-rebinding protection), caps in-flight requests overall and per token, and defaults CORS closed. Being stateless, it holds no per-client session for an attacker to exhaust or hijack; the one shared table is the findings cache described above.
Contributor License Agreement
All contributions are accepted under the Contributor License Agreement, enforced by the
CLA Assistant workflow (.github/workflows/cla.yml). On your first
pull request the CLA Assistant status check asks you to sign by commenting
I have read the CLA Document and I hereby sign the CLA
once, which covers all your future pull requests. The CLA lets the project owner relicense contributions, which is what allows a commercial licence to be offered alongside the AGPL; a plain DCO sign-off does not grant that right.
License
Copyright © 2026 Gabriel Ignat.
Licensed under the GNU Affero General Public License v3.0 or later
(AGPL-3.0-or-later). This is network-copyleft: if you run a modified version of
this server as a network service, you must offer its source to that service's
users. See LICENSE for the full text.
A commercial licence is also available for organisations that cannot use this server under the AGPL, for example to embed it in a closed-source product or to run a modified version as a service without publishing the changes. Contact contact@arkwarden.io.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Read-only AI coding tools for change verification, release readiness, capacity, and guidance.
Security reviews for coding agents: diffs checked against your org policy and live infrastructure.
Governed access to sensitive data, secrets and APIs for AI agents. A signed proof for each decision.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to safely inspect a local repository's code and metadata while blocking private data from leaving the machine, providing read-only tools for search, change tracking, and integrity verification.MIT

Break Anythingofficial
AlicenseNot gradedqualityBmaintenanceConnects AI coding agents to security tooling so they can inspect authorized code, dependencies, container images, and infrastructure, confirm exploitability, and receive evidence-backed remediation plans.98 npmMIT- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to perform scoped, policy-enforced GitHub operations with allowlisted repositories and tools, protected branches, approval gates, dry runs, secret redaction, and a tamper-evident audit log.MIT
- AlicenseNot gradedqualityBmaintenanceGives coding agents safe, read-only access to a repository's ADRs, tickets, conventions, and searchable project context, with guardrails for path confinement and output redaction; write tools are available only when explicitly enabled.36 npmMIT