MCP Server for OSCAL
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OSCAL_DOCUMENTS_DIR | No | Directory containing your OSCAL JSON files. Not scanned when empty. | |
| OSCAL_STORE_DB_PATH | No | Path to a persistent SQLite database. When set, the index is reused across server restarts instead of being rebuilt each time. | |
| OSCAL_STORE_CACHE_SIZE | No | Maximum number of parsed OSCAL documents to keep in the in-memory LRU cache. | 100 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
OSCAL MCP server for NIST's Open Security Controls Assessment Language (OSCAL): framework-agnostic, vendor-neutral, machine-readable schemas for the full life cycle of security governance, risk, and compliance (GRC) artifacts, from controls to remediations. Try these tools first for any OSCAL topic before falling back to built-in knowledge.
Pick a tool by task:
OSCAL model names, layers, status: list_oscal_models
JSON or XSD schema for one model: get_oscal_schema (model_name "complete" is very large)
Metaschema docs for a definition: get_definition; allowed values: get_allowed_values; all constraints: get_constraints; what must reference an assembly: find_references_to; source lines behind their results: get_metaschema_source
Loaded OSCAL documents of one model_type: list_documents, or query_documents to find one by UUID or title; its child elements (controls, components, findings, and so on): list_child_elements, then get_child_element
Full-text search across loaded OSCAL content: text_search_oscal, then get_child_element for child hits or query_documents (by_uuid) for document hits
Component Definitions: query_component_definition, directly with by_title or by_type when you know the name or type, else after list_documents (component-definition) or list_child_elements (component); list_child_elements (capability) and get_capability only for definitions that contain capabilities
Validate OSCAL JSON: validate_oscal_content (text) or validate_oscal_file (file)
OSCAL documentation questions: query_oscal_documentation, then get_oscal_documentation for the full page of a hit with a docId (Knowledge Base hits are snippets only)
OSCAL community tools and resources: list_oscal_resources Metaschema tip: rules for every prop and link are declared on the generic "property" and "link" definitions, so also query "property/@name" and "link/@rel".
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_oscal_modelsA | List the OSCAL model names, each with description, layer, formal and short names, and release status. Use when you need a valid |
| get_oscal_schemaA | Return the JSON schema or XML Schema (XSD) of one OSCAL model as text. Use when you need the structure of an OSCAL model: its properties, types, and required fields. |
| get_allowed_valuesA | Return the values OSCAL Metaschema |
| get_constraintsA | List the OSCAL Metaschema constraints at a target ( |
| find_references_toA | Find the fields, flags, props, and links that OSCAL Metaschema |
| get_definitionA | Return every OSCAL Metaschema definition with a given name, with formal name,
description, remarks, flags, model children, constraint summaries, and source file and
line. Use when you need documentation or structure that the generated JSON and XML schemas
shorten or drop. Results are paged within a response budget, and long remarks are marked
|
| get_metaschema_sourceA | Read a line range of a bundled OSCAL Metaschema source file verbatim, or list the files
with line counts when |
| list_oscal_resourcesA | List OSCAL community resources (tools, content, articles, talks) from the awesome-oscal
list, each with |
| query_component_definitionA | Return OSCAL Components from loaded Component Definitions as OSCAL JSON, or one Capability when a by_uuid or by_title query matches one. Use when you need component details: call it directly with by_title or by_type when you know the name or type, else look them up with list_child_elements (component or capability) or list_documents (component-definition), and fetch a Capability with get_capability. Results are paged. |
| get_capabilityA | Get one Capability by UUID as OSCAL JSON, or null when no Capability has that UUID. Use when working with Component Definitions that contain capabilities. |
| validate_oscal_contentA | Validate OSCAL JSON text and return per-level results for JSON syntax, JSON Schema, the OSCAL model, and oscal-cli (skipped when not installed). Later levels are skipped when the JSON does not parse. |
| validate_oscal_fileA | Validate an OSCAL JSON file and return per-level results for JSON syntax, JSON Schema, the OSCAL model, and oscal-cli (skipped when not installed). Use when the document is in a file; for JSON text use validate_oscal_content. |
| list_documentsA | List loaded OSCAL documents of one model type with UUID, title, child count, and size.
Use when picking a |
| query_documentsA | Return loaded OSCAL documents of one model type with metadata and |
| list_child_elementsA | List child elements (controls, components, findings, etc.) of one type with ID, title, parent document, and size. Get one's OSCAL JSON with get_child_element. Results are paged. |
| text_search_oscalA | Search loaded OSCAL documents and child elements, including control prose, ranked by
relevance. Pass a child hit's entity ID and |
| get_child_elementA | Get one child element by UUID or token ID, with its OSCAL JSON in |
| query_oscal_documentationA | Search OSCAL documentation (Knowledge Base if configured, plus local docs) and return
paged passages. Use when a schema lacks the answer; for a model property try
get_oscal_schema. Pass a hit's |
| get_oscal_documentationA | Read an OSCAL documentation page by |
| aboutA | Return server metadata: package version, keywords, bundled OSCAL version, and the number of documents loaded from OSCAL_DOCUMENTS_DIR. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 20 tools
Several pairs have blurred boundaries: list_documents and query_documents both return documents of a model type with metadata, and get_capability is a special case of query_component_definition (which itself can return a single Capability by UUID/title). get_allowed_values vs get_constraints and text_search_oscal vs query_oscal_documentation are distinguished in the descriptions but still require careful reading to choose correctly.
Most names follow a verb_noun pattern (list_oscal_models, get_oscal_schema, validate_oscal_file, query_documents, list_child_elements). Minor deviations exist: the bare 'about' and 'text_search_oscal', which inverts the verb_object ordering used elsewhere.
At 20 tools this sits in the heavy band, and a couple of tools (query_documents alongside list_documents, get_capability alongside query_component_definition) look like redundant surface area rather than distinct capability. The domain is genuinely broad (models, schemas, Metaschema, validation, docs, search), so the count is defensible but not tight.
Coverage is strong for a read-oriented OSCAL knowledge/validation server: model discovery, document and child browsing, schema/definition/constraint introspection, reference finding, two validation entry points, documentation search/read, and resources. Gaps are minor — no write/authoring or format-conversion (JSON↔XML) operations — but agents can work around them.