ism-mcp
The ism-mcp server provides an agent-friendly query layer over the ASD Information Security Manual (ISM) for lookup, discovery, and compliance tracking — without needing the full ~700-page document in context.
Control Discovery & Lookup
ism_get— Retrieve the full record for a specific control by ID (e.g.ISM-1781)ism_search— Full-text search over control descriptions and topics (FTS5/BM25 ranking)ism_applicable— Rank controls relevant to a plain-language description of planned work, with optional filters for classification, maturity, section tags, or repo file paths (hybrid semantic + lexical retrieval)
Browsing & Enumeration
ism_list_by_classification— List controls applicable at a given classification level (NC, OS, P, S, TS)ism_list_by_topic— List controls under a specific topicism_list_topics/ism_list_sections— Enumerate all distinct topics or section tagsism_list_classifications/ism_list_maturities— Get canonical classification levels and Essential Eight maturity levels (ML1/ML2/ML3)
Version History & Diffing
ism_versions— List loaded ISM releasesism_diff— View the delta between two ISM releasesism_history— Track a single control's evolution across versions
Project Compliance Coverage Tracking
ism_coverage_read— Read the project's.ism-coverage.tomlmanifest (scope, summary counts, control entries)ism_coverage_upsert— Create or update a coverage entry with evidence (files, commits, URLs, review metadata)ism_coverage_gaps— Identify uncurated, partial, or deferred in-scope controls; optionally ranked by relevanceism_coverage_impact— Identify controls to re-review or newly in-scope after an ISM update
Database Metadata
ism_stats— View total control count, ISM revision metadata, and source paths
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., "@ism-mcp what controls apply to multi-factor authentication?"
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.
ism-mcp
Agent-friendly query layer over the ASD Information Security Manual, served via MCP.
The ISM is ~700 pages and does not fit in a model context window. This MCP server parses the official ASD OSCAL release of the ISM into a local SQLite database and exposes a small set of typed lookup tools so that an agent (Claude Code, Codex, Cursor, etc.) can interrogate the ISM without re-reading the source documents. It holds the full ISM release history, so it can also report what changed between versions and what a newer ISM means for a project's existing compliance work.
Status
Single-tenant and local: SQLite storage, stdio-transport MCP server, no auth, no network listener. Ingest fetches the OSCAL source over git. Suitable for local and per-project use, not multi-tenant or networked deployment.
Related MCP server: fedramp-docs-mcp
Install
Requires uv and Python 3.14+.
git clone https://github.com/samueldudley/ism-mcp.git
cd ism-mcp
uv syncIngest the ISM
The source is the official ASD OSCAL mirror, AustralianCyberSecurityCentre/ism-oscal. ism-mcp clones it into a managed cache (~/.local/share/ism-mcp/oscal) the first time, so a plain ingest needs no manual download:
uv run ism-mcp ingest --fetch # fetch latest, ingest it as the active version
uv run ism-mcp ingest-history --fetch # fetch, then ingest every tagged ISM release (full history)
uv run ism-mcp update # fetch latest and ingest any new releaseThe database lands at ~/.local/share/ism-mcp/ism.db by default. Override with --db PATH. For an offline or air-gapped environment, clone the OSCAL repo yourself and point at it: --oscal PATH (single version) or --oscal-repo PATH (history). Run ism-mcp ingest --help for the full flag list.
The first ingest downloads the embedding model once (see First-run network requirement). Pass --no-embeddings to skip it and fall back to lexical-only ranking. ingest-history embeds only the newest release by default (fast); pass --embed-all to embed every version.
Versions are upserted independently, so re-ingesting a release replaces just that version. There is no whole-database rebuild on each quarterly release. If you are upgrading from an older XLSX-based database, its schema is incompatible: ingest refuses it with a clear error, so pass --fresh once to wipe and rebuild.
Use as a Claude Code MCP server
Add to your Claude Code MCP configuration:
{
"mcpServers": {
"ism": {
"command": "uv",
"args": ["--project", "/path/to/ism-mcp", "run", "ism-mcp", "serve"]
}
}
}Restart Claude Code. The tools listed under MCP tools become available, led by ism_applicable for ranked discovery.
Adopt in a project
ism-mcp install writes everything a teammate needs into a consumer repo. The database is committed into the repo, so a clone has data without a local ingest.
uv run ism-mcp install --project /path/to/consumer-repoThis writes, all idempotent on re-run:
.mcp.jsonwith theismserver entry. Other servers in the file are kept.A managed block in
CLAUDE.mdbetween<!-- ism-mcp:begin -->and<!-- ism-mcp:end -->, telling agents when to consult the server..ism-coverage.tomlscaffolded from the template, only if absent. An existing manifest is never overwritten..ism/ism.db, the database, refreshed on each run.
The default uvx mode launches the server with uvx --from git+<repo>@<rev> ism-mcp serve. --repo defaults to this checkout's origin remote and --rev to its short HEAD, so the entry pins a reproducible build. A teammate needs only uv. The first semantic query downloads the embedding model once, then runs offline.
For air-gapped or locked-down environments, --mode docker --image <ref> emits a docker run entry that mounts the committed database. Building and hosting the image is left to you.
The database path uses Claude Code's ${CLAUDE_PROJECT_DIR:-.} expansion, so it resolves to each teammate's project root. Claude Code prompts once per repo to trust a project-scoped server. claude mcp reset-project-choices clears the approval.
Use --dry-run to see the planned writes without changing anything.
Fetching from the published remote
uvx and docker both fetch a pinned source. Point ism-mcp install at the published repository with --repo https://github.com/samueldudley/ism-mcp.git (if you cloned from there, that is already your origin and the default works). To register the server at user scope against the published source:
claude mcp add ism -s user -- uvx --from git+https://github.com/samueldudley/ism-mcp.git@v1.1 ism-mcp serveThe user-scope server keeps the default database at ~/.local/share/ism-mcp/ism.db, which you ingest locally. It carries no ISM_MCP_DB override, since that path is only for project installs where the database travels with the repo.
Use programmatically
from ism_mcp import store, server
conn = store.open_db(server.DEFAULT_DB)
c = store.get_control(conn, "ism-1781") # also accepts ISM-1781, 1781, or a label
print(c.description)
for r in store.search(conn, "session timeout", limit=5):
print(r.identifier, r.topic)Development
uv sync install all deps including dev
uv run pytest run the test suite
./scripts/ci.sh full CI suite (fmt + lint + type + test)
./scripts/ci.sh test single stageThe CI script is the source of truth for what counts as a passing build. Run it before pushing.
MCP tools
The table lists the bare tool names. Claude Code invokes them under the server key prefix, so ism_applicable is called as mcp__ism__ism_applicable (replace ism if you installed under a different --name).
Tool | Purpose |
| Hybrid retrieval: rank controls relevant to a free-text description of planned or current work. Recommended default for discovery. |
| Full record for one control by ID. Lookup tolerates |
| Deterministic FTS5 search. Use when you know the exact term. |
| Controls applicable at NC / OS / P / S / TS. |
| Distinct topic strings. |
| Controls under a topic. |
| Distinct section strings. The vocabulary for the |
| Canonical classification enum plus friendly aliases. |
| Essential Eight maturity levels. |
| Loaded ISM releases, newest first. The vocabulary for |
| Catalog delta between two releases. Defaults to the latest release versus the one before it. |
| One control's evolution (text, title, applicability, maturity) across every loaded release. |
| Database statistics: active version, total versions, control count. |
| Read the project's |
| Create or update one entry with evidence (files, commits, urls, attachments). Stamps the entry with the active ISM version. |
| Return outstanding in-scope controls. With |
| After an ISM update, flag covered controls to re-review, controls removed upstream, and newly in-scope controls with no entry. |
Lookup and listing tools default to the active ISM version. Pass version (see ism_versions) to target a historical release. Each Control record carries: version, identifier, label, title, control_class, guideline, section, topic, description, control_revision, updated, sort_id, classification applicability (NC/OS/P/S/TS), and maturity applicability (ML1/ML2/ML3).
Every tool publishes a JSON output schema and returns structured content that validates against it. Constrained parameters (classification, maturity, status, change_types, status_filter) are schema enums, so invalid values are rejected before the tool runs. Failures arrive as MCP tool errors (isError with a message), never as {"error": ...} payloads inside a successful result. Keys are never conditionally absent: a key that does not apply to a given call is present with a null value.
Discovery for agents
The headline use case is ism_applicable. The agent describes the work in plain language, optionally narrows by classification, maturity, section tags, or repo paths, and gets back a ranked list of relevant controls.
ism_applicable(
work="adding JWT refresh and idle session timeout to our auth flow",
classification="OFFICIAL",
paths=["src/auth/jwt.py", "src/auth/session.py"],
limit=10,
)Returns a ranked list with identifier, label, title, topic, section, description, applies, maturity, a normalised RRF score in [0.0, 1.0], and a why list naming the signals that surfaced each result (semantic, lexical, path:<token>). verbose=true adds the guideline.
Maturity is Essential Eight only.
ML1/ML2/ML3exist for the ~123 controls mapped to the Essential Eight Maturity Model, not the wider ISM (~1130 controls). Passingmaturity=(here, or in a manifest[scope]) drops every control with no maturity rating, so aPROTECTEDscope collapses to the subset that is also Essential Eight at that level. Leavematurityunset unless you are specifically tracking Essential Eight maturity.
Under the hood: a bge-small-en-v1.5 embedding of the work text is cosine-matched against per-control embeddings, fused with FTS5 BM25 via Reciprocal Rank Fusion, then post-filtered.
First-run network requirement
The first ingest after install downloads the embedding model (~130 MB) to ~/.cache/fastembed/. Subsequent runs are offline. To pre-warm:
uv run python -c "
from fastembed import TextEmbedding
TextEmbedding('BAAI/bge-small-en-v1.5')
"To skip embeddings entirely (offline first run, or for fast iteration during development):
uv run ism-mcp ingest --fetch --no-embeddingsWithout embeddings, ism_applicable falls back to lexical-only ranking. Results are still useful but recall on natural-language queries is lower.
Environment variables
Var | Values | Effect |
| path | Override the database location. Default |
|
| Force a specific embedder at server start. |
Project coverage manifest
For projects pursuing IRAP review (or any internal review against the ISM), .ism-coverage.toml at the project root records how each in-scope control is addressed.
schema_version = 1
[scope]
classification = "P"
sections = ["Authentication hardening", "Cryptographic fundamentals"]
baseline_version = "2026.03.24"
[project]
name = "demo-admin"
[controls."ism-0428"]
status = "covered"
how_met = """
Sessions terminate after 14 min of idle activity, enforced
in the auth middleware. Re-auth requires all original factors.
"""
last_reviewed = 2026-05-28
reviewed_against = "2026.03.24"
files = ["src/auth/session.py:42-87"]
commits = ["abc1234"]
[[controls."ism-0428".attachments]]
path = ".ism-coverage/evidence/ism-0428/lock-prompt.png"
description = "Admin console at 14:01 showing session-expired modal"[scope] defines the in-scope control set that ism_coverage_gaps measures against. Set classification (and optionally narrow by sections). baseline_version records the ISM release the project currently targets; each entry's reviewed_against records the release it was assessed against, and ism_coverage_impact uses the two to flag drift when a newer ISM lands. Do not set maturity unless you are tracking Essential Eight maturity specifically: it filters to the Essential Eight subset and drops every other control from scope (see the maturity note under Discovery for agents).
Recommended layout for binary evidence:
your-repo/
.ism-coverage.toml
.ism-coverage/
evidence/
ISM-0428/
lock-prompt.png
tls-handshake.pcapngA template lives at src/ism_mcp/data/coverage_template.toml if you want to copy and start from a known-good shape. The fields and their allowed values are shown in the example above.
The manifest is machine-managed: ism_coverage_upsert rewrites the whole file, so comments are not preserved. Keep narrative in how_met and evidence in the structured fields rather than in TOML comments.
Reference design: docs/superpowers/specs/2026-05-28-coverage-manifest-design.md.
Architecture
ism-mcp/
src/ism_mcp/
store.py version-keyed SQLite schema + queries, FTS5, version registry
oscal.py parse an OSCAL ISM catalog into version metadata and control rows
fetch.py clone/pull the ACSC ism-oscal mirror, list tags, read files at a tag
ingest.py orchestrate OSCAL ingest over a directory or a git-tag walk
diff.py catalog delta between two versions + per-control history
retrieve.py cosine search + Reciprocal Rank Fusion
embed.py embedder protocol + fastembed and hash backends
classification.py classification + maturity input normalisation
paths.py repo-path token expansion for query enrichment
coverage.py coverage manifest read, validate, serialise, gaps, drift
install.py consumer-repo install writer
server.py FastMCP server: lookup, discovery, version, coverage tools
__main__.py CLI: fetch, ingest, ingest-history, update, serve, install
data/ path keyword map + coverage template
pyproject.toml uv-managed, hatchling buildSingle SQLite file. A versions registry plus controls and embeddings keyed by (version, identifier), with an FTS5 virtual table kept in sync via insert and delete triggers. A meta table records the active version that lookup tools default to.
Known limitations
No auth on the MCP server. Suitable for local use only.
Licence
MIT. See LICENSE.
This licence covers the code in this repository. The ISM itself is Commonwealth of Australia content published by the ACSC under its own terms. You download and ingest the ISM separately; it is not redistributed here.
Available Tools
17 toolsism_applicableARead-only
Rank ISM controls relevant to a free-text description of planned or current work.
The primary discovery tool. Describe the work in a sentence or two and it returns
the most relevant controls. For exact keyword or phrase lookup, use ism_search.
Uses hybrid retrieval (semantic embeddings + FTS5 BM25) fused with Reciprocal
Rank Fusion. Optional filters: classification (NC|OS|P|S|TS or OFFICIAL through
TOP_SECRET), maturity (ML1|ML2|ML3, Essential Eight controls only, so leave it
unset unless scoping to the Essential Eight), tags (validated against
ism_list_sections), paths (repo paths whose tokens expand the lexical query).
Invalid filter values fail. limit defaults to 20 (capped at 200). verbose
populates each control's guideline text, null otherwise. score is a normalised
RRF score in [0.0, 1.0], not a probability.
Inputs: work (required), tags, limit, paths, +3 more. Returns: hint, count, query, filters, +2 more
ism_coverage_gapsARead-only
Return outstanding in-scope controls (uncurated, partial, deferred). Never writes.
The complement of ism_coverage_read: read reports what is curated, gaps reports
what is missing. Reads the manifest (.ism-coverage.toml), walking up from cwd
when project_path is omitted. If work is supplied, runs ism_applicable with
the project's scope as filters and intersects with the manifest to return
work-relevant gaps ranked by relevance score. Without work, returns the full
outstanding set ordered uncurated > partial > deferred.
Inputs: work, limit, project_path. Returns: gaps, work, scope, shown, +1 more
ism_coverage_impactARead-only
Report what a newer ISM version means for the project's coverage. Never writes.
Buckets covered/partial entries into re_review (control changed since it was
assessed), removed_upstream (control gone at target), and new_uncovered (now in
scope, no entry). target_version defaults to scope.baseline_version or the
active version. Reads the manifest like ism_coverage_read, walking up from cwd
when project_path is omitted. Run this after ingesting a new ISM release, then
curate the buckets with ism_coverage_upsert.
Inputs: limit, project_path, target_version. Returns: summary, re_review, manifest_path, new_uncovered, +3 more
ism_coverage_readARead-only
Read the project's coverage manifest (.ism-coverage.toml). Never writes.
Returns scope, summary counts, and curated entries. Walks up from cwd to find the
manifest if project_path is omitted and fails when none is found.
status_filter narrows the controls map to a single status
(covered|partial|not-applicable|deferred) while summary stays unfiltered. To
see what is missing rather than what is curated, use ism_coverage_gaps.
Inputs: project_path, status_filter. Returns: scope, project, summary, controls, +2 more
ism_coverage_upsertAIdempotent
Create or update one entry in the coverage manifest (.ism-coverage.toml).
The only tool that writes to disk. It rewrites the manifest file atomically and an
existing entry for the identifier is replaced whole. status must be one of
covered, partial, not-applicable, or deferred. Validates identifier against the
ISM DB, requires every attachment path to resolve on disk and every url and
attachment to carry a description. last_reviewed defaults to today. Returns the
action taken plus warnings and fails on validation errors.
Inputs: status (required), how_met (required), identifier (required), urls, +8 more. Returns: ok, action, warnings, identifier
ism_diffARead-only
Catalog delta between two ISM versions.
Defaults compare the version before active (from) to the active version (to), so a
bare call answers 'what changed in the latest release'. change_types narrows the
buckets (added, removed, reworded, retitled, moved, applicability_changed,
maturity_changed) and sets unrequested buckets to null. Returns
{from, to, summary, changes}. Fails on unknown versions. Use ism_versions to see
loadable versions, and ism_history for one control's timeline instead of the
whole catalog.
Inputs: to_version, change_types, from_version. Returns: to, from, changes, summary
ism_getARead-only
Get the full record for one ISM control by identifier (e.g. ism-1781).
Identifier input is tolerant: ISM-1781, bare 1781, and legacy labels resolve
to the canonical OSCAL id. Returns the control record with title, control text,
section, topic, classification applicability, and Essential Eight maturity flags.
Fails when nothing matches. Use ism_search or ism_applicable first when the
identifier is unknown. Defaults to the active ISM version. Pass version (see
ism_versions) for a historical one.
Inputs: identifier (required), version. Returns: label, title, topic, applies, +10 more
ism_historyARead-only
Show one control's evolution across every loaded ISM version.
Returns a chronological timeline of changes to that single control. Identifier input is tolerant like ism_get. An unknown id returns an empty timeline with a hint rather than an error. For the whole-catalog delta between two versions, use ism_diff instead.
Inputs: identifier (required). Returns: hint, timeline, last_seen, first_seen, +1 more
ism_list_by_classificationARead-only
List controls that apply at a given classification level.
classification takes canonical abbreviations only: NC, OS, P, S, or TS (see
ism_list_classifications for the OFFICIAL through TOP_SECRET mapping). Returns
{classification, count, identifiers} with ids only. Fetch full records with
ism_get. An unknown level fails.
Inputs: classification (required), version. Returns: count, identifiers, classification
ism_list_by_topicARead-only
List controls under a specific topic (exact match, use ism_list_topics to enumerate).
Returns {topic, count, identifiers} with ids only. Fetch full records with
ism_get. An unknown topic returns an empty list, not an error.
Inputs: topic (required), version. Returns: count, topic, identifiers
ism_list_classificationsARead-only
Return the classification vocabulary as parallel lists.
canonical[i] (NC, OS, P, S, TS) pairs with friendly[i] (OFFICIAL through
TOP_SECRET). ism_applicable accepts either form. ism_list_by_classification
accepts canonical only. Static data, no database read.
Inputs: no named parameters. Returns: friendly, canonical
ism_list_maturitiesARead-only
Return the Essential Eight maturity levels: ML1, ML2, ML3.
The Essential Eight is the ASD's baseline set of mitigation strategies, and only
controls belonging to it carry a maturity rating. These levels are the vocabulary
for the maturity filter on ism_applicable and for coverage manifest scope.
Static data, no database read.
Inputs: no named parameters. Returns: maturities
ism_list_sectionsARead-only
List the distinct ISM Section values, the vocabulary for the tags filter on ism_applicable.
Returns {count, sections} for the active version unless version is passed.
Inputs: version. Returns: count, sections
ism_list_topicsARead-only
List all distinct topic strings present in the ISM.
The vocabulary for the topic argument of ism_list_by_topic. Returns
{count, topics} for the active version unless version is passed.
Inputs: version. Returns: count, topics
ism_searchARead-only
Full-text keyword search (FTS5 BM25) over ISM control text and topics.
Best when you already know the terms, an exact phrase, or part of a control title.
To rank controls against a free-text description of work, use ism_applicable
instead. FTS operators in the query are neutralised, so input matches literally.
Returns {query, count, results} with full control records. limit defaults to
10 (capped at 200). Defaults to the active ISM version.
Inputs: query (required), limit, version. Returns: count, query, results
ism_statsARead-only
Report database state: active ISM version, version and control counts, db path.
Takes no arguments. Useful as a first call to confirm data is ingested and see which ISM release the other tools will answer from. For the full version list use ism_versions.
Inputs: no named parameters. Returns: db_path, git_tag, controls, versions, +2 more
ism_versionsARead-only
List loaded ISM versions, newest first. The vocabulary for version/from/to arguments.
Returns {active, count, versions} where each entry carries version, label,
published date, control_count, and git_tag. Call this before passing version,
from_version, or to_version to other tools.
Inputs: no named parameters. Returns: count, active, versions
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Every tool has a clearly distinct purpose: discovery, coverage management, version diffing, listing by various facets, and database queries. No two tools overlap in functionality.
All tool names follow the consistent pattern 'ism_' prefix followed by a descriptive verb_noun or verb phrase in snake_case (e.g., ism_applicable, ism_coverage_gaps, ism_list_topics). No mixing of conventions.
With 17 tools, the server covers the domain of ISM control discovery, coverage management, versioning, and listing without being excessive. Each tool fills a specific role with no redundancy.
The tool set covers discovery, search, coverage CRUD (create, read, update), version diffing, and history. A minor gap is the lack of an explicit delete tool for coverage entries, but the 'not-applicable' status may compensate.
Maintenance
Related MCP Connectors
Cited, standards-aware compliance overlay for AI assistants (ISO, NIST, FedRAMP, IRAP), over MCP.
Compliance frameworks (SOC 2, ISO 27001, CMMC, NIST, more) delivered to AI agents as MCP tools.
Guarded MCP server for agent-readable business truth, provenance, readiness, and discovery.
Deterministic IT asset registry operated by AI agents over MCP. Agents propose, humans approve.
Related MCP Servers
- AlicenseAqualityBmaintenanceServes the Australian Cyber Security Centre Information Security Manual (ISM) via MCP, providing access to all historical and current versions, search, and comparison tools.11MIT
- FlicenseAqualityDmaintenanceAn unofficial MCP server that exposes public FedRAMP 20x documentation as deterministic, citable lookup tools for AI assistants, with every response citing the exact upstream source.7-
- FlicenseNot gradedqualityDmaintenanceProvides search, detail lookup, and gap listing tools for a security control inventory, enabling natural language queries about control status and gaps.-
- AlicenseAqualityFmaintenanceEnables querying Swiss cybersecurity regulations, guidance, advisories, and frameworks from NCSC.ch via any MCP-compatible client.6Apache 2.0