MCP Server for OSCAL
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., "@MCP Server for OSCAL Show me the required fields for an OSCAL Component Definition."
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.
MCP Server for OSCAL
A Model Context Protocol (MCP) server that provides AI assistants (Claude, Cline, Kiro, Claude Code, etc.) with tools to work with NIST's Open Security Controls Assessment Language (OSCAL). Like many early adopters, we needed help implementing OSCAL proofs-of-concept to demonstrate value to business stakeholders. Perhaps due to limited availability of examples in the public domain, we found that most AI agents/LLMs alone produced inconsistent results related to OSCAL. The tools in this MCP server minimized that problem for our use-case and we hope it does the same for you.
To get started, seeInstallation below.
Features
Together, the tools provided by this MCP server are meant to enable your preferred AI assistant to provide accurate, authoritative guidance about OSCAL architecture, models, use-cases, requirements, and implementation. You don't need to understand the tools to use them, but details are in the tools directory.
The server is lightweight and meant to run locally without additional setup. By default, it uses stdio protocol for MCP transport. Do not attempt to use the server with streamable-http transport, as we've not yet implemented transport security or authentication.
The default tools should not connect to any remote services or resources - all required content is bundled with the server. As a security measure, we've implemented basic file integrity verification for bundled content. At build-time we generate manifests including SHA-256 hashes of all content files. Each time the server starts, all content files are verified against the hash manifests. Any mismatch should produce an error and prevent startup.
In addition to the MCP server, the package includes a standalone OSCAL agent built with Strands Agents. See the OSCAL Agent section below.
Related MCP server: nist-mcp
What is OSCAL?
OSCAL (Open Security Controls Assessment Language) is a set of framework-agnostic, vendor-neutral, machine-readable schemas developed by NIST that describe the full life cycle of GRC (governance, risk, compliance) artifacts, from controls to remediation plans. OSCAL enables automation of GRC workflows by replacing digital paper (spreadsheets, PDFs, etc.) with a standard-based structured data format. To learn more about OSCAL, install this MCP server then ask your AI. Or see the official OSCAL website.
What is MCP?
MCP (Model Context Protocol) is an open-source standard for connecting AI applications to external systems. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect electronic devices, MCP provides a standardized way to connect AI applications to external systems.
How to use / examples
Examples below were created with kiro-cli, but should work with any AI assistant that supports MCP servers.
Example 1: Learn about available OSCAL models
% kiro-cli
> /tools trust get_oscal_schema list_oscal_models list_oscal_resources
Tools '@oscal/get_oscal_schema', '@oscal/list_oscal_models', '@oscal/list_oscal_resources' are now trusted. I will not ask for confirmation before running these tools.
> How many GA OSCAL models are there?
> I'll check the available OSCAL models to find out how many are in GA (Generally Available) status.
Running tool list_oscal_models with the param (from mcp server: oscal)
⋮ {}
- Completed in 0.1s
> There are 8 GA OSCAL models:
Control Layer (3):
- Catalog
- Profile
- Mapping Collection
Implementation Layer (2):
- Component Definition
- System Security Plan (SSP)
Assessment Layer (3):
- Assessment Plan (SAP)
- Assessment Results (SAR)
- Plan of Action and Milestones (POA&M)
All of these models have "GA" (Generally Available) status, meaning they are stable and ready for production use.
▸ Time: 8sExample 2: OSCAL template generation
> generate a minimum, valid, OSCAL mapping in JSON for use as a template.
> I'll help you create a minimal, valid OSCAL mapping in JSON. Let me first check what OSCAL models are available to understand the structure.
Running tool list_oscal_models with the param (from mcp server: oscal)
⋮ {}
- Completed in 0.1s
> Now let me get the schema for the mapping-collection model to understand its structure:
Running tool get_oscal_schema with the param (from mcp server: oscal)
⋮ {
⋮ "model_name": "mapping-collection",
⋮ "schema_type": "json"
⋮ }
- Completed in 0.14s
> Based on the schema, I'll create a minimal, valid OSCAL mapping collection template. Here's the absolute minimum required structure:
I'll create the following file: ./oscal-mapping-template.json (using tool: write)
Purpose: Create minimal OSCAL mapping collection template
+ 1: {
+ 2: "mapping-collection": {
+ 3: "uuid": "12345678-1234-4567-8901-123456789012",
+ 4: "metadata": {
+ 5: "title": "Sample Mapping Collection",
+ 6: "last-modified": "2026-01-06T20:46:28.034Z",
+ 7: "version": "1.0",
+ 8: "oscal-version": "1.2.0"
+ 9: },
+ 10: "provenance": {
+ 11: "method": "human",
+ 12: "matching-rationale": "semantic",
+ 13: "status": "draft",
+ 14: "mapping-description": "Sample mapping between two control frameworks"
+ 15: },
+ 16: "mappings": [
+ 17: {
+ 18: "uuid": "87654321-4321-7654-1098-210987654321",
+ 19: "source-resource": {
+ 20: "type": "catalog",
+ 21: "href": "https://example.com/source-catalog.json"
+ 22: },
+ 23: "target-resource": {
+ 24: "type": "catalog",
+ 25: "href": "https://example.com/target-catalog.json"
+ 26: },
+ 27: "maps": [
+ 28: {
+ 29: "uuid": "11111111-2222-3333-4444-555555555555",
+ 30: "relationship": "equivalent",
+ 31: "sources": [
+ 32: {
+ 33: "type": "control",
+ 34: "id-ref": "ac-1"
+ 35: }
+ 36: ],
+ 37: "targets": [
+ 38: {
+ 39: "type": "control",
+ 40: "id-ref": "access-control-policy"
+ 41: }
+ 42: ]
+ 43: }
+ 44: ]
+ 45: }
+ 46: ]
+ 47: }
+ 48: }
Creating: ./oscal-mapping-template.json
- Completed in 0.8s
> I've created a minimal, valid OSCAL mapping collection template at ./oscal-mapping-template.json. This template includes:
Required elements:
- uuid: Unique identifier for the mapping collection
- metadata: Document metadata with title, last-modified timestamp, version, and OSCAL version
- provenance: Mapping methodology information including method, matching rationale, status, and description
- mappings: Array containing at least one mapping with:
- uuid: Mapping identifier
- source-resource and target-resource: References to the catalogs being mapped
- maps: Array with mapping entries showing relationships between controls
Key features:
- Uses placeholder UUIDs (replace with actual UUIDs in production)
- Maps a source control "ac-1" to target control "access-control-policy" with "equivalent" relationship
- Includes minimal required fields only
- Valid JSON structure conforming to OSCAL 1.2.0 schema
You can customize this template by:
- Replacing placeholder UUIDs with real ones
- Updating the resource URLs to point to actual catalogs
- Adding more mapping entries in the maps array
- Modifying control IDs and relationships as needed
▸ Time: 21s
Example 3: Discover open source OSCAL catalogs
> What are some open source OSCAL catalogs?
Running tool list_oscal_resources with the param (from mcp server: oscal)
⋮ {}
- Completed in 0.51s
> Based on the OSCAL community resources, here are some notable open source OSCAL catalogs:
## Government/Official Catalogs
Australian Cyber Security Centre (ACSC)
- Information Security Manual (ISM) controls in OSCAL format
- Essential Eight Maturity Levels (ML1, ML2, ML3)
- Available at: https://www.cyber.gov.au/ism/oscal
CMS Acceptable Risk Safeguards (ARS)
- Tailored NIST SP 800-53 controls for Centers for Medicare and Medicaid Services
- Available at: https://github.com/CMSgov/ars-machine-readable
GovTech Singapore
- ICT&SS Policy catalog and profile for low-risk systems
- Available at: https://github.com/GovtechSG/tech-standards
## Industry/Standards Organizations
Center for Internet Security (CIS)
- CIS Critical Security Controls (formerly Top 18/20)
- Available at: https://github.com/CISecurity/CISControls_OSCAL/
Cloud Security Alliance (CSA)
- Cloud Controls Matrix v4 in OSCAL format
- Available at: https://cloudsecurityalliance.org/artifacts/ccm-machine-readable-bundle-json-yaml-oscal/
NIST SP 800-171 (Community)
- Maintained by Fathom5
- Available at: https://github.com/FATHOM5/oscal/tree/main/content/SP800-171/oscal-content
## Community Collections
CivicActions Component Definitions
- Cloud services, software, security and privacy controls
- Available at: https://github.com/CivicActions/oscal-component-definitions
RedHat OSCAL Content
- Component definitions: https://github.com/RedHatProductSecurity/oscal-component-definitions
- Custom profiles: https://github.com/RedHatProductSecurity/oscal-profiles
Brad Hards ISM Catalog
- Australian Government ISM controls (community version)
- Available at: https://github.com/bradh/ism-oscal
These catalogs provide ready-to-use OSCAL content for various compliance frameworks and can serve as templates or starting points for your own OSCAL implementations.
▸ Time: 15sExample 4: Query component definitions for information about AWS services
[OSCAL] > what components are available for Cognito?
Running tool list_components with the param (from mcp server: oscal-dev)
⋮ {}
- Completed in 0.49s
> There are 3 Cognito-related components available:
1. Cognito Identity - from "Cognito Identity Pools" component definition
2. Cognito Sync - from "Amazon Cognito Sync" component definition
3. Cognito Identity Provider - from "Amazon Cognito Identity User Pools" component definition
▸ Time: 7s
[OSCAL] > show me the names and IDs from all 3 components
Running tool query_component_definition with the param (from mcp server: oscal-dev)
⋮ {
⋮ "query_type": "by_uuid",
⋮ "query_value": "7fd5d354-6ec4-4f8e-8c5f-2904086bb597"
⋮ }
Running tool query_component_definition with the param (from mcp server: oscal-dev)
⋮ {
⋮ "query_type": "by_uuid",
⋮ "query_value": "a1d82e1d-3733-41f4-bc09-90ab47b9e82f"
⋮ }
Running tool query_component_definition with the param (from mcp server: oscal-dev)
⋮ {
⋮ "query_type": "by_uuid",
⋮ "query_value": "2519deaf-4612-4c70-aba2-d9080ae3c816"
⋮ }
- Completed in 0.13s
- Completed in 0.6s
- Completed in 0.6s
> 1. Cognito Sync
- Service ID: Cognito Sync
- API Endpoint Prefix: cognito-sync
- ARN Namespace: cognito-sync
2. Cognito Identity Provider
- Service ID: Cognito Identity Provider
- API Endpoint Prefix: cognito-idp
- ARN Namespace: cognito-idp
3. Cognito Identity
- Service ID: Cognito Identity
- API Endpoint Prefix: cognito-identity
- ARN Namespace: cognito-identity
▸ Time: 12s
[OSCAL] > show me everything in the EC2 component definition
Running tool query_component_definition with the param (from mcp server: oscal-dev)
⋮ {
⋮ "component_definition_filter": "Elastic Compute Cloud (EC2)",
⋮ "query_type": "all"
⋮ }
- Completed in 0.14s
> The EC2 component definition contains 1 component:
Component: EC2
- UUID: 66345eb9-7c0d-435c-b2b5-675fd977de80
- Type: service
- Description: Empty
Properties:
- Service ID: EC2
- Version: 2016-11-15
- Availability: REGIONAL and ZONAL
- Full Name: Elastic Compute Cloud (EC2)
- API Endpoint Prefix: ec2
- ARN Namespace: ec2
Regional Availability (34 regions):
Africa (Cape Town), Asia Pacific (Hong Kong, Tokyo, Seoul, Osaka, Mumbai, Hyderabad, Singapore, Sydney, Jakarta, Melbourne, Malaysia), Canada (Central, Calgary), China (Beijing, Ningxia),
Europe (Frankfurt, Zurich, Stockholm, Milan, Spain, Ireland, London, Paris), Israel (Tel Aviv), Middle East (UAE, Bahrain), South America (Sao Paulo), US East (N. Virginia, Ohio), AWS
GovCloud (US-East, US-West), US West (N. California, Oregon)
▸ Time: 10s
[OSCAL] > what's the ID of the Jakarta region?
> Based on the EC2 component data I just retrieved, the Jakarta region's resource fragment ID is:
8041109b-0a0b-46cc-bddb-91d703667637
This is the UUID for the "Asia Pacific (Jakarta)" region component.
▸ Time: 3s
[OSCAL] > get the region ID from that component
Running tool query_component_definition with the param (from mcp server: oscal-dev)
⋮ {
⋮ "query_type": "by_uuid",
⋮ "query_value": "8041109b-0a0b-46cc-bddb-91d703667637"
⋮ }
- Completed in 0.13s
> The region ID for Jakarta is: ap-southeast-3
▸ Time: 7s
[OSCAL] > /quitInstallation
Follow these instructions to setup the MCP server for use with your preferred IDE, AI agent, chatbot, etc. The server is published as Python package on PyPI. The uvx command (shown below) automatically downloads the latest version of the server from PyPI on startup.
To setup for development instead, seeDEVELOPING.md
Prerequisites
uvpackage manager for Python (Installation instructions)Python 3.11 or higher (
uv install python 3.12). The server may work with later versions of Python, but we only test 3.11 & 3.12 for now.
Configuring IDEs and AI Tools
This server communicates via stdio (standard input/output) and can be integrated with various IDEs and agentic tools that support the Model Context Protocol. The configuration examples shown below are for your preferred IDE / chatbot / agent.
Configuration Format
Most MCP-compatible tools use a JSON configuration format described in the FastMCP documentation. Here's the basic structure:
{
"mcpServers": {
"oscal": {
"command": "uvx",
"args": ["mcp-server-for-oscal@latest"]
}
}
} For typical, runtime use of the MCP server, additional configuration should not be required. If needed, runtime environment variables can be configured in an "env": {} object as described in the FastMCP documentation. See the file dotenv.example for available options.
[!Note] A dotenv file is only needed in a development environment.
Kiro Configuration
See Kiro's MCP documentation for additional options. Add to your .kiro/settings/mcp.json:
{
"mcpServers": {
"oscal": {
"command": "uvx",
"args": ["mcp-server-for-oscal@latest"],
"env": {},
"disabled": false,
"autoApprove": [
"*"
]
}
}
}Claude Desktop
Add to your ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"oscal": {
"command": "uvx",
"args": ["mcp-server-for-oscal@latest"]
}
}
}VS Code
Run the MCP: Open User Configuration command, which opens the mcp.json file in your user profile. You can then manually add the server configuration to the file. See the VSCode/Copilot docs for additional options and details.
{
"servers": {
"oscal": {
"command": "uvx",
"args": ["mcp-server-for-oscal@latest"]
}
}
}Using your own OSCAL Content
By default, the server ships with bundled OSCAL content (AWS component definitions, OSCAL documentation, and schemas). You can also point the server at a directory of your own OSCAL JSON files — catalogs, SSPs, profiles, assessment plans, assessment results, POA&Ms, or mapping collections. The server indexes them at startup and makes them available through all query and list tools.
Set the OSCAL_DOCUMENTS_DIR environment variable to the path of your OSCAL content directory. The path can be absolute or relative to the server's package directory. For example, in your MCP configuration:
{
"mcpServers": {
"oscal": {
"command": "uvx",
"args": ["mcp-server-for-oscal@latest"],
"env": {
"OSCAL_DOCUMENTS_DIR": "/path/to/your/oscal/files"
}
}
}
}The server scans the directory recursively for .json files and indexes any valid OSCAL documents it finds. Your content is merged with the bundled content — both are queryable in the same session.
Two additional environment variables control the OSCAL store behavior:
Variable | Default | Description |
| (empty) | Directory containing your OSCAL JSON files. Not scanned when empty. |
| (empty) | Path to a persistent SQLite database. When set, the index is reused across server restarts instead of being rebuilt each time. |
|
| Maximum number of parsed OSCAL documents to keep in the in-memory LRU cache. |
SettingOSCAL_STORE_DB_PATH is recommended if you have a large collection of OSCAL documents. The server only needs to index new or changed files on subsequent startups.
OSCAL Agent
In addition to the MCP server, the package includes a standalone OSCAL agent built with Strands Agents. The agent uses the same tools as the MCP server and can be run directly:
# Via entry point
oscal-agent
# Or via module
python -m mcp_server_for_oscal.oscal_agentThe agent requires AWS Bedrock access and uses the same configuration environment variables as the MCP server.
Session Persistence
The agent supports session persistence so that conversation history and agent state survive across invocations. Choose between local filesystem or Amazon S3 storage:
# File-based session storage (new session)
oscal-agent --session-storage file
# Resume a previous session
oscal-agent --session-storage file --session-id <your-session-id>
# S3-based session storage
oscal-agent --session-storage s3 --session-s3-bucket my-bucketWhen session storage is enabled without a --session-id, a UUID is auto-generated and displayed so you can resume later. Session defaults can also be set via environment variables (see DEVELOPING.md).
Conversation Management
For long-running workflows, you can select a conversation manager to control how the agent's context window is maintained:
# Summarize older messages to keep context manageable
oscal-agent --session-storage file --conversation-manager summarizing
# Sliding window (SDK default behavior)
oscal-agent --conversation-manager sliding-window
# No conversation management
oscal-agent --conversation-manager nullExisting tools and features cover a variety of use-cases but are far from comprehensive. Please share your feedback, feature requests, questions, or bug reports in a GitHub issue. Direct contributions are wanted and welcome.
Development
See DEVELOPING to get started.
Security
See CONTRIBUTING for more information.
Known limitations
It's not yet possible to use this MCP server with ChatGPT due to limited MCP support by ChatGPT.
The
streamable-httptransport does not yet implement authentication or transport security. Usestdiofor production workloads.
Related projects
Experimental Component Definitions for AWS services are bundled with this MCP server. You can find that content in the AWS Labs project OSCAL Content for AWS Services.
MCP Server for OSCAL uses compliance-trestle for certain capabilities, including OSCAL content validation.
License
This project is licensed under the Apache-2.0 License.
Available Tools
40 toolsaboutA
Get metadata about the server itself
Inputs: no named parameters.
get_capabilityA
Retrieve a single Capability by UUID, returning its full OSCAL representation.
A Capability groups related Components and may include control implementations, description, and a list of incorporated Components. Use list_capabilities() to discover available UUIDs.
Args: ctx: MCP server context (injected automatically by MCP server) uuid: UUID of the Capability to retrieve.
Returns: dict | None: Full OSCAL Capability object as a dict, or None if the UUID is not found.
Inputs: uuid. Returns: result
get_child_elementA
Retrieve a single child element by its identifier.
OSCAL uses two identifier schemes:
UUIDs (globally unique) for most elements such as tasks, activities, results, findings, POA&M items, mappings, and system-components.
Token IDs (e.g.
ac-1,sc) for catalog controls and groups — these are human-readable but only unique within their containing document.
For elements with token-based IDs, parent_doc_uuid should be
provided to disambiguate. For elements with UUIDs,
parent_doc_uuid is optional.
If parent_doc_uuid is omitted and the element_id matches
elements in more than one document, an error dict is returned with
error: "ambiguous_element_id" and a list of matching parent
document UUIDs so the caller can retry with disambiguation.
Args: ctx: MCP server context (injected automatically). element_id: The element identifier (UUID or token ID). parent_doc_uuid: Optional parent document UUID to scope the lookup using the composite key (element_id, parent_doc_uuid).
Returns: A dict with keys: id, title, element_type, description, parentDocumentTitle, parentDocumentUuid, raw_json — or None if not found. Returns an error dict if the element_id is ambiguous across documents.
Inputs: element_id, parent_doc_uuid. Returns: result
get_oscal_schemaA
A tool that returns the schema for specified OSCAL model. Try this tool first for any questions about the structure of OSCAL models.
By default we return a JSON schema, but schema_type parameter can change that behavior. You can use the list_models tool to get
a list of valid model names. Request the complete schema only as a last resort - it's very large and may overflow your context window.
Args:
ctx: MCP server context (should be injected automatically by MCP server)
model_name: The name of the OSCAL model. If no value is provided, then we return a "complete" schema including all models, which is large.
schema_type: If json (default) then return the JSON schema for the specified model. Otherwise, return its XSD (XML) schema.
Returns: str: The requested schema as JSON string
Inputs: model_name, schema_type. Returns: result
list_assessment_plan_activitiesA
List activity elements within OSCAL Assessment Plan documents.
Activities describe the methods and procedures used to assess controls. Each activity is identified by a UUID.
Args: ctx: MCP server context (injected automatically). parent_doc_uuid: Optional UUID to scope results to a single assessment plan. offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore. Each item contains: id, title, element_type, description, parentDocumentTitle, parentDocumentUuid.
Inputs: parent_doc_uuid, offset, limit.
list_assessment_plansA
List loaded OSCAL Assessment Plans with summary metadata.
Args: ctx: MCP server context (injected automatically). offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore.
Inputs: offset, limit.
list_assessment_plan_tasksA
List task elements within OSCAL Assessment Plan documents.
Tasks define the specific assessment activities to be performed. Each task is identified by a UUID.
Args: ctx: MCP server context (injected automatically). parent_doc_uuid: Optional UUID to scope results to a single assessment plan. offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore. Each item contains: id, title, element_type, description, parentDocumentTitle, parentDocumentUuid.
Inputs: parent_doc_uuid, offset, limit.
list_assessment_resultsB
List loaded OSCAL Assessment Results with summary metadata.
Args: ctx: MCP server context (injected automatically). offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore.
Inputs: offset, limit.
list_assessment_results_findingsA
List finding elements within OSCAL Assessment Results documents.
Findings document specific determinations about control implementation status. Each finding is identified by a UUID.
Args: ctx: MCP server context (injected automatically). parent_doc_uuid: Optional UUID to scope results to a single assessment results document. offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore. Each item contains: id, title, element_type, description, parentDocumentTitle, parentDocumentUuid.
Inputs: parent_doc_uuid, offset, limit.
list_assessment_results_resultsA
List result elements within OSCAL Assessment Results documents.
Results capture the outcome of an assessment, including observations and risk determinations. Each result is identified by a UUID.
Args: ctx: MCP server context (injected automatically). parent_doc_uuid: Optional UUID to scope results to a single assessment results document. offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore. Each item contains: id, title, element_type, description, parentDocumentTitle, parentDocumentUuid.
Inputs: parent_doc_uuid, offset, limit.
list_capabilitiesA
List loaded Capabilities with summary metadata.
Capabilities sit above Components but are optional in the OSCAL hierarchy. Each Capability groups related Components and describes a collection or higher-level offering. Start here when exploring what a Component Definition provides — then drill into individual Components as needed.
Use the returned UUIDs or names as query_value in query_component_definition() to retrieve full Capability details.
Args: ctx: MCP server context (injected automatically by MCP server) offset: Zero-based index of the first item to return (default 0). limit: Maximum number of items to return, 1-100 (default 10).
Returns:
dict: Page_Response with keys items, total, offset,
limit, hasMore. Each item in items has keys:
uuid, name, parentComponentDefinitionTitle,
parentComponentDefinitionUuid, sizeInBytes.
Inputs: offset, limit.
list_catalog_controlsA
List controls within OSCAL Catalog documents.
Controls are the primary structural elements of a catalog, each
identified by a human-readable token ID (e.g. ac-1, sc-7).
Args: ctx: MCP server context (injected automatically). parent_doc_uuid: Optional UUID to scope results to a single catalog. offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore. Each item contains: id, title, element_type, description, parentDocumentTitle, parentDocumentUuid.
Inputs: parent_doc_uuid, offset, limit.
list_catalog_groupsA
List groups within OSCAL Catalog documents.
Groups organise controls into families (e.g. ac for Access
Control). Group IDs are human-readable tokens unique within the
containing catalog.
Args: ctx: MCP server context (injected automatically). parent_doc_uuid: Optional UUID to scope results to a single catalog. offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore. Each item contains: id, title, element_type, description, parentDocumentTitle, parentDocumentUuid.
Inputs: parent_doc_uuid, offset, limit.
list_catalogsA
List loaded OSCAL Catalogs with summary metadata.
Returns UUID, title, model type, child count, and size for each
catalog. Use the returned UUIDs or titles as query_value in
query_catalog for detailed results.
Args: ctx: MCP server context (injected automatically). offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore.
Inputs: offset, limit.
list_component_definitionsA
List loaded Component Definitions with summary metadata.
A Component Definition is the top-level OSCAL document that contains Capabilities and Components. Use this tool to discover available definitions and obtain UUIDs or titles for use as the component_definition_filter in query_component_definition().
Args: ctx: MCP server context (injected automatically by MCP server) offset: Zero-based index of the first item to return (default 0). limit: Maximum number of items to return, 1-100 (default 10).
Returns:
dict: Page_Response with keys items, total, offset,
limit, hasMore. Each item in items has keys:
uuid, title, componentCount, importedComponentDefinitionsCount,
sizeInBytes.
Inputs: offset, limit.
list_componentsA
List loaded Components with summary metadata.
Components are leaf-level elements within a Component Definition that represent individual services, software, regions, or similar items. A Component may belong to one or more Capabilities. Use this tool to discover Component UUIDs and titles for targeted queries via query_component_definition().
Args: ctx: MCP server context (injected automatically by MCP server) offset: Zero-based index of the first item to return (default 0). limit: Maximum number of items to return, 1-100 (default 10).
Returns:
dict: Page_Response with keys items, total, offset,
limit, hasMore. Each item in items has keys:
uuid, title, parentComponentDefinitionTitle,
parentComponentDefinitionUuid, sizeInBytes.
Inputs: offset, limit.
list_mapping_collection_mappingsA
List mapping elements within OSCAL Mapping Collection documents.
Mappings describe how controls from one framework relate to controls in another framework. Each mapping is identified by a UUID.
Args: ctx: MCP server context (injected automatically). parent_doc_uuid: Optional UUID to scope results to a single mapping collection document. offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore. Each item contains: id, title, element_type, description, parentDocumentTitle, parentDocumentUuid.
Inputs: parent_doc_uuid, offset, limit.
list_mapping_collectionsA
List loaded OSCAL Mapping Collections with summary metadata.
Args: ctx: MCP server context (injected automatically). offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore.
Inputs: offset, limit.
list_oscal_modelsA
List all available OSCAL model types with metadata.
Returns: dict: List of OSCAL models where the key is model's name as used in the schema, and value is an object that includes description, layer, formal and short names, and release status.
Inputs: no named parameters.
list_oscal_resourcesA
Retrieve a comprehensive directory of OSCAL community resources and tools.
This tool provides access to a curated collection of OSCAL (Open Security Controls Assessment Language) community resources that can help users:
Find OSCAL-compatible tools and software implementations
Discover educational content, tutorials, and documentation
Access example OSCAL documents and templates
Locate presentations, articles, and research papers about OSCAL
Identify government and industry adoption examples
Find libraries and SDKs for OSCAL development
Access validation tools and utilities
The returned content is structured markdown that categorizes resources by type (tools, content, presentations, etc.) making it easy to find specific types of OSCAL resources based on user needs.
Use this tool when users ask about:
"What OSCAL tools are available?"
"How can I learn more about OSCAL?"
"Are there examples of OSCAL implementations?"
"What resources exist for OSCAL development?"
"Who is using OSCAL in production?"
Args: ctx: MCP server context (should be injected automatically by MCP server)
Returns: str: Complete markdown content containing categorized OSCAL community resources, tools, documentation, examples, and educational materials
Raises: FileNotFoundError: If the awesome-oscal.md content cannot be found IOError: If there are issues reading the content
Inputs: no named parameters. Returns: result
list_poam_itemsA
List POA&M item elements within OSCAL POA&M documents.
POA&M items document specific security issues and their remediation plans. Each item is identified by a UUID (optional in the OSCAL schema).
Args: ctx: MCP server context (injected automatically). parent_doc_uuid: Optional UUID to scope results to a single POA&M document. offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore. Each item contains: id, title, element_type, description, parentDocumentTitle, parentDocumentUuid.
Inputs: parent_doc_uuid, offset, limit.
list_poamsB
List loaded OSCAL Plans of Action and Milestones with summary metadata.
Args: ctx: MCP server context (injected automatically). offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore.
Inputs: offset, limit.
list_profile_importsA
List import elements within OSCAL Profile documents.
Imports reference the catalogs or profiles from which controls are
selected. Import IDs are synthetic positional identifiers
(e.g. import-0, import-1).
Args: ctx: MCP server context (injected automatically). parent_doc_uuid: Optional UUID to scope results to a single profile. offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore. Each item contains: id, title, element_type, description, parentDocumentTitle, parentDocumentUuid.
Inputs: parent_doc_uuid, offset, limit.
list_profile_modifyA
List modify elements within OSCAL Profile documents.
The modify element is a singleton within each profile that describes customisations applied to imported controls (e.g. parameter settings, additions, alterations).
Args: ctx: MCP server context (injected automatically). parent_doc_uuid: Optional UUID to scope results to a single profile. offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore. Each item contains: id, title, element_type, description, parentDocumentTitle, parentDocumentUuid.
Inputs: parent_doc_uuid, offset, limit.
list_profilesA
List loaded OSCAL Profiles with summary metadata.
Args: ctx: MCP server context (injected automatically). offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore.
Inputs: offset, limit.
list_ssp_control_implementationsA
List control-implementation elements within OSCAL SSP documents.
The control-implementation is a singleton element within each SSP that describes how the system implements required security controls.
Args: ctx: MCP server context (injected automatically). parent_doc_uuid: Optional UUID to scope results to a single SSP. offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore. Each item contains: id, title, element_type, description, parentDocumentTitle, parentDocumentUuid.
Inputs: parent_doc_uuid, offset, limit.
list_sspsA
List loaded OSCAL System Security Plans with summary metadata.
Args: ctx: MCP server context (injected automatically). offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore.
Inputs: offset, limit.
list_ssp_system_componentsA
List system-component elements within OSCAL SSP documents.
System components describe the individual parts of a system (e.g. servers, services, software) and are identified by UUID.
Args: ctx: MCP server context (injected automatically). parent_doc_uuid: Optional UUID to scope results to a single SSP. offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore. Each item contains: id, title, element_type, description, parentDocumentTitle, parentDocumentUuid.
Inputs: parent_doc_uuid, offset, limit.
query_assessment_planA
Query OSCAL Assessment Plan documents.
Assessment Plans define how security controls will be assessed.
Args:
ctx: MCP server context (injected automatically).
query_type: "all" (paginated), "by_uuid", "by_title",
or "by_type".
query_value: Required for by_uuid, by_title, by_type queries.
offset: Zero-based pagination offset (default 0).
limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore.
Inputs: query_type, query_value, offset, limit.
query_assessment_resultsA
Query OSCAL Assessment Results documents.
Assessment Results document the outcomes of control assessments.
Args:
ctx: MCP server context (injected automatically).
query_type: "all" (paginated), "by_uuid", "by_title",
or "by_type".
query_value: Required for by_uuid, by_title, by_type queries.
offset: Zero-based pagination offset (default 0).
limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore.
Inputs: query_type, query_value, offset, limit.
query_catalogA
Query OSCAL Catalog documents.
Catalogs are structured collections of security controls and control
enhancements. Use list_catalogs to discover available catalogs,
then drill into specific ones with this tool.
Args:
ctx: MCP server context (injected automatically).
query_type: "all" (paginated), "by_uuid", "by_title",
or "by_type".
query_value: Required for by_uuid, by_title, by_type queries.
offset: Zero-based pagination offset (default 0).
limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore.
Inputs: query_type, query_value, offset, limit.
query_component_definitionA
Query OSCAL Component Definition documents to find Capabilities and Components.
OSCAL Component Definitions follow a hierarchy: a Component Definition contains Capabilities and Components. A Capability groups related Components and describes a higher-level security function. This tool reflects that hierarchy — when a query matches a Capability (by title or UUID), the Capability is returned directly, including its list of incorporated Components. Only when no matching Capability is found does the search fall through to individual Components.
Prefer querying by Capability name/UUID when exploring what a Component Definition offers. Query by Component only when you need details about a specific service, software, region, or similar leaf-level element.
Use the companion tools to discover valid query filters:
list_capabilities() — lists all Capability UUIDs and names
list_components() — lists all Component UUIDs and titles
list_component_definitions() — lists all Component Definition UUIDs and titles
If you need details about the Component Definition schema, use the tool get_oscal_schema.
Args: ctx: MCP server context (injected automatically by MCP server) component_definition_filter: Optional UUID or metadata.title of a Component Definition to narrow the search scope. Case-insensitive for titles. If omitted, all loaded Component Definitions are searched. query_type: Type of query to perform: - "all": Return all components in the definition(s). Intended for use with a component_definition_filter. Results may be large. For a lightweight summary, use list_components() instead. - "by_uuid": Find a Capability or Component by UUID (requires query_value). Capabilities are checked first. - "by_title": Find a Capability by name or a Component by title (requires query_value). Capabilities are checked first; if no Capability matches, Components are searched with a fallback to property-value matching. - "by_type": Filter Components by type (requires query_value). Does not apply to Capabilities. query_value: The value to search for. Required for by_uuid, by_title, and by_type queries. return_format: Response format. Currently only "raw" is supported, returning complete OSCAL objects as JSON. offset: Zero-based pagination offset (default 0). limit: Maximum items to return, 1-100 (default 10).
Returns: dict: When a Capability matches, the response contains: - capability: Full OSCAL Capability object as JSON - component_count: Number of Components the Capability incorporates - offset, limit, total, hasMore: Pagination metadata (always 0, 1, 1, False for single-capability results) - query_type, component_definitions_searched, filtered_by
When Components are returned instead, the response contains:
- components: Paginated list of OSCAL Component objects as JSON
- total_count: Total number of matching Components across all pages
- offset, limit, hasMore: Pagination metadata
- query_type, component_definitions_searched, filtered_byRaises: ValueError: If required query parameters are missing or no data is loaded.
Inputs: component_definition_filter, query_type, query_value, return_format, +2 more. Returns: object
query_mapping_collectionA
Query OSCAL Mapping Collection documents.
Mapping Collections describe how one set of security controls relates to another set of controls.
Args:
ctx: MCP server context (injected automatically).
query_type: "all" (paginated), "by_uuid", "by_title",
or "by_type".
query_value: Required for by_uuid, by_title, by_type queries.
offset: Zero-based pagination offset (default 0).
limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore.
Inputs: query_type, query_value, offset, limit.
query_oscal_documentationB
A tool to query OSCAL-related documentation. Use this tool when a question about OSCAL cannot be answered just by analyzing model schemas. In case the question is about an explicit property of an OSCAL model, try to find the answer using the get_schema tool first.
Args: query: Question or search query about OSCAL
Returns: dict: Results retrieved from knowledge base, structured as a Bedrock RetrieveResponseTypeDef object.
Inputs: query (required).
query_poamA
Query OSCAL Plan of Action and Milestones (POA&M) documents.
POA&Ms document remediation plans for identified security issues.
Args:
ctx: MCP server context (injected automatically).
query_type: "all" (paginated), "by_uuid", "by_title",
or "by_type".
query_value: Required for by_uuid, by_title, by_type queries.
offset: Zero-based pagination offset (default 0).
limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore.
Inputs: query_type, query_value, offset, limit.
query_profileA
Query OSCAL Profile documents.
Profiles are baselines or overlays that select and customise controls from one or more catalogs.
Args:
ctx: MCP server context (injected automatically).
query_type: "all" (paginated), "by_uuid", "by_title",
or "by_type".
query_value: Required for by_uuid, by_title, by_type queries.
offset: Zero-based pagination offset (default 0).
limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore.
Inputs: query_type, query_value, offset, limit.
query_sspA
Query OSCAL System Security Plan (SSP) documents.
SSPs document how a system implements required security controls.
Args:
ctx: MCP server context (injected automatically).
query_type: "all" (paginated), "by_uuid", "by_title",
or "by_type".
query_value: Required for by_uuid, by_title, by_type queries.
offset: Zero-based pagination offset (default 0).
limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore.
Inputs: query_type, query_value, offset, limit.
text_search_oscalA
Full-text search across all OSCAL documents and child elements.
Searches titles, descriptions, and other indexed text fields using SQLite FTS5. Results are ranked by relevance. Optionally scope the search to a single OSCAL model type.
Args:
ctx: MCP server context (injected automatically).
query_text: The search string.
oscal_model_type: Optional model type value to scope results
(e.g. "catalog", "system-security-plan"). When
omitted, all model types are searched.
offset: Zero-based pagination offset (default 0).
limit: Maximum items to return, 1-100 (default 10).
Returns: Page_Response dict with keys: items, total, offset, limit, hasMore. Each item contains: entity_type, entity_id, title, description, model_type.
Inputs: query_text, oscal_model_type, offset, limit.
validate_oscal_contentA
Validate OSCAL JSON content through a multi-level validation pipeline.
Runs up to four validation levels in sequence:
Well-formedness - Is it valid JSON and a JSON object?
JSON Schema - Does it conform to the NIST OSCAL JSON schema?
Trestle - Semantic checks via compliance-trestle Pydantic models
oscal-cli - Full NIST validation if oscal-cli is installed
If Level 1 fails, Levels 2-4 are skipped. If oscal-cli is not installed, Level 4 is gracefully skipped. The overall result is valid only when all non-skipped levels pass.
Args: ctx: MCP server context (injected automatically by MCP server) content: OSCAL JSON content as a string model_type: Optional OSCAL model type (e.g. "catalog", "profile"). If omitted, the model type is auto-detected from the root key.
Returns: dict: Structured validation results with per-level detail
Inputs: content (required), model_type.
validate_oscal_fileA
Validate OSCAL JSON file through a multi-level validation pipeline.
Runs up to four validation levels in sequence:
Well-formedness - Is it valid JSON and a JSON object?
JSON Schema - Does it conform to the NIST OSCAL JSON schema?
Trestle - Semantic checks via compliance-trestle Pydantic models
oscal-cli - Full NIST validation if oscal-cli is installed
If Level 1 fails, Levels 2-4 are skipped. If oscal-cli is not installed, Level 4 is gracefully skipped. The overall result is valid only when all non-skipped levels pass.
Args:
ctx: MCP server context (injected automatically by MCP server)
file_uri: URI of the file to be validated. This can be local or remote but remote URI will fail unless config.allow_remote_uris == True.
model_type: Optional OSCAL model type (e.g. "catalog", "profile").
If omitted, the model type is auto-detected from the root key.
Returns: dict: Structured validation results with per-level detail
Inputs: file_uri (required), model_type.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 40 tools
Each tool targets a distinct operation or resource: list_* for paginated child elements, query_* for document-level queries, get_* for single items, validate_* for validation, and text_search for full-text search. No two tools have overlapping purposes.
Tools follow a consistent verb_noun pattern (e.g., list_catalogs, query_profile, get_capability). Even 'about' and 'text_search_oscal' fit the pattern. The naming is predictable and uniform across all 40 tools.
40 tools is on the higher side but appropriate for the complex OSCAL domain covering multiple document types, child elements, validation, and search. Each tool earns its place; the count reflects the domain's breadth rather than redundancy.
The tool surface covers all major OSCAL document types with list, query, and child-element tools, plus validation, schema retrieval, documentation query, and full-text search. For a read-only server, there are no obvious gaps.
Maintenance
Related MCP Connectors
Compliance frameworks (SOC 2, ISO 27001, CMMC, NIST, more) delivered to AI agents as MCP tools.
Convert, lint and generate LLM tool schemas for OpenAI, Anthropic, Gemini and MCP
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides tools for AI assistants to access the Agent Web Protocol (AWP) specification, validate agent.json files, and generate protocol-compliant configurations. It enables developers to integrate the AWP standard into their websites through natural language prompts and automated validation.8 npmMIT
- AlicenseAqualityDmaintenanceProvides structured access to the full NIST cybersecurity catalog, including SP 800/1800 publications, security controls, CSF 2.0, and the NVD database. It enables AI assistants to search and retrieve cybersecurity standards, CVEs, and compliance guidance directly from a local SQLite index.201MIT
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive access to NIST cybersecurity frameworks and controls, enabling AI assistants and applications to query, analyze, and manage NIST security controls through a standardized interface.10MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants and IDEs to work with the AGNTCY Agent Directory, providing tools for validating, publishing, searching agent records, and navigating OASF taxonomies.4Apache 2.0