OSCAL MCP Server
An MCP server that wraps the
oscal Python library so agentic AI can
create, validate, convert, query and inspect OSCAL content — and get help writing
Python against the library itself.
All OSCAL interaction is delegated to the oscal library. This server never parses or
mutates OSCAL content directly.
What it provides
Content-operation tools
Generic across all eight OSCAL models (catalog, profile, mapping-collection,
component-definition, system-security-plan, assessment-plan, assessment-results,
plan-of-action-and-milestones). Every document tool takes a handle returned when the
document is opened.
| Tool | Purpose |
|---|---|
open_document / load_content / new_document |
Open a file/URI, load in-memory text, or create from template |
list_documents / get_document_summary / close_document |
Manage the open-document cache |
validate_document |
Tiered metaschema validation (L2, or L3 with full=true) |
convert_document / save_document |
Serialize to XML/JSON/YAML (string or file) |
query_document |
XPath-inspired query (XML-element or JSON-key syntax) |
inspect_imports / resolve_imports / retry_import |
Import resolution and recovery |
list_oscal_models / list_oscal_versions |
Enumerate support-database coverage |
describe_model_structure |
Metaschema structure outline / node detail |
update_oscal_support |
Fetch newly published OSCAL versions (needs Internet) |
Library coding-help
| Resource / Tool | Purpose |
|---|---|
oscal-lib://about |
Server/library versions and bundled-knowledge parity status |
oscal-lib://api |
Compact API index (modules → classes → members + signatures) |
oscal-lib://api/{fqname} |
Full signature + docstring for one symbol |
oscal-lib://metaschema/{model} |
OSCAL model structure outline |
oscal-lib://recipes + oscal-lib://recipes/{name} |
Curated usage recipes |
oscal-lib://concepts + oscal-lib://concepts/{name} |
Library operating-concept guides (validation, imports, profile processing, …), bundled offline |
oscal-std://concepts + oscal-std://concepts/{name} |
Curated NIST OSCAL standard snapshot (concepts, layers, per-model pages, tutorials), bundled offline |
oscal-std://notes |
Authored expert enhancements to the standard — draft-status caveats & known gaps NIST omits |
search_library_api |
Ranked search over the library API (names, signatures, docs) |
search_knowledge |
Ranked search over the bundled concept/standard guides (scope: lib/std/all) |
The API reference is generated by runtime introspection of the installed oscal
package, so it always reflects the version in use — new getters/setters added as the
library matures appear automatically.
Version alignment
This server targets the oscal library 4.3.x. The API reference tracks whatever
oscal is installed automatically; bundled operating-concept and OSCAL-standard
documentation (see below) is synced from a specific oscal-class release and its source
tag is recorded in a manifest. oscal-lib://about reports the installed library version
against the bundled-docs release so any drift is visible (ok / mismatch /
not-bundled).
OSCAL standard & expert notes
oscal-std://concepts is a curated, offline snapshot of the NIST OSCAL "Learn" pages
(from usnistgov/OSCAL-Pages; public domain /
CC0 — see knowledge/oscal_std/NIST-ATTRIBUTION.md). oscal-std://notes holds authored
expert commentary (not NIST) — draft-status caveats and known gaps the official docs do
not state, maintained by hand and versioned independently. Refreshing any bundled content,
and the policy that adding to the expert notes bumps the server version, are documented
in docs/MAINTAINING_KNOWLEDGE.md.
Install
python -m venv .venv && . .venv/bin/activate
pip install oscal-mcp
This pulls in the oscal library and all other dependencies from PyPI automatically.
Run
python -m oscal_mcp # stdio (default MCP transport)
oscal-mcp --transport http --port 8000
Support database location
The oscal library needs a SQLite support database of the NIST metaschemas. This server
pins its location (so it does not depend on the launch CWD) in this order:
--support-db /path/to/oscal_support.dbOSCAL_MCP_SUPPORT_DBenvironment variable- a per-user default under the platform data dir (e.g.
~/.local/share/oscal-mcp/support/oscal_support.db)
The library auto-extracts its bundled database on first run, so the server works offline.
Use update_oscal_support (online) to add newly published OSCAL versions.
Coexistence with other OSCAL MCP servers
This server is standalone. Its tool names are plain (open_document, …) and its
resources use a dedicated oscal-lib:// scheme, so it does not collide with other OSCAL
MCP servers (e.g. awslabs/mcp-server-for-oscal, metaschema-framework/claude-plugins)
if they are installed alongside it. It shares no state or database with them.
Scope
This is the core MVP. Model-specific authoring tools (catalog create_control,
profile tailoring/resolve, SSP/component implementation authoring, assessment models)
are planned for a second phase; today they are reachable as library methods documented
via the coding-help resources. If a required OSCAL operation is missing from the oscal
library, it is recorded as a hand-off document in docs/ rather than worked
around in this server.
Metadata
Release files for oscal-mcp 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oscal_mcp-1.1.0.tar.gz | 165.7 kB | With provenance | Details for oscal_mcp-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oscal_mcp-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for oscal_mcp-1.1.0-py3-none-any.whl |
Total release size: 365.8 kB
Release files / oscal_mcp-1.1.0.tar.gz
| Download URL | oscal_mcp-1.1.0.tar.gz |
|---|---|
| Size | 165.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
719adad353513bfe5af883da64349574b6f35c7b9a50dc029dabe9200723ed6a
|
|
BLAKE2b-256 checksum How to use checksums |
02de24983517a1da3574de17f33472e22e444f61a2504264f802dff13a3860c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / oscal_mcp-1.1.0-py3-none-any.whl
| Download URL | oscal_mcp-1.1.0-py3-none-any.whl |
|---|---|
| Size | 200.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b9c93cb74e82640f9b75f3fa4d12daf223ecc058182fc2b05224cb0ff77255d
|
|
BLAKE2b-256 checksum How to use checksums |
782b327fa3e02d7eaa171a53bcf6b327f6ee2d550fcc7b28ebf737c0574df683
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for oscal-mcp 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for oscal_mcp-1.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.