
Stig Mcp
io.github.jenericv0.1.1Updated Oct 1, 2026
MCP server mapping MITRE ATT&CK® -> NIST 800-53r5 -> DISA STIG fix/check steps
Installation
In SourceWeft
- Open Stig Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
stig-mcp
Local MCP server that maps MITRE ATT&CK® techniques (and actors) to the NIST 800-53r5 controls that mitigate them, with the DISA STIG fix and check steps for the systems under consideration, severity-ordered.
Install
stig-mcp is on PyPI. With uv, a client runs it with no separate install step:
From a source checkout instead, install the dependencies with:
The commands below are written for a checkout (uv run ...). Without one, run the same entry
point with uvx --from stig-mcp, for example uvx --from stig-mcp stig-mcp-install-kb.
Quickstart
- Wire the server into a client (see "Run the server" below) and start it.
- Ask the agent to install the knowledge base. It calls the
install_knowledge_basetool, which downloads the newest published release from this project's GitHub releases and verifies its SHA-256 before installing it. From a terminal the same isuv run stig-mcp-install-kb. A host that cannot reach GitHub installs from a file; see docs/operations.md, "Install a prebuilt knowledge base". - Or build it yourself:
uv run stig-mcp-fetchdownloads ATT&CK, the CTID mapping, the 800-53 catalog, and DISA's STIG content. This transfers roughly a gigabyte and refuses to start with less than 2 GiB free. Thenuv run stig-mcp-ingestbuilds the knowledge base.
On a host that cannot reach dl.dod.cyber.mil, place the artifacts in the sources
directory yourself and go straight to stig-mcp-ingest. That is a first-class path rather
than a fallback: the ingest reads a directory and never consults the fetch. See
docs/operations.md, "Placing the sources by hand".
Afterwards, uv run stig-mcp-fetch --check reports what MITRE ATT&CK, CTID, NIST and DISA
have published since, exiting 10 when there is something to take and 3 when a source could not
be reached, and --refresh takes it.
Neither rebuilds the knowledge base; see "Keeping current" in the same document.
Run the server
or, from a checkout, uv run stig-mcp.
This is a stdio MCP server: it speaks JSON-RPC on stdin/stdout and logs to stderr, so it is launched by an MCP client rather than run standalone.
It starts whether or not the knowledge base exists, and it never answers from one it
cannot trust. Called before the knowledge base is installed, or against one an older release
wrote, every tool returns a not_ready payload instead of an answer: the reason, which
source files it can and cannot see, the sources directory it looked in, and the next steps,
led by the install_knowledge_base tool and followed by the commands to run. Each command
comes in two forms: run, which works from the server's own environment, and as_installed,
which a person can type into a terminal, written for how the server was installed (uvx, a
checkout, or an installed copy). That is deliberate, so an agent can read the remedy from
the tool result rather than the operator having to find a log pane. Install or rebuild the
knowledge base and the running server picks it up without a restart.
The check_sources tool tells an agent whether a newer knowledge base is published. It and
install_knowledge_base are the only two tools that contact the network, and they reach
only this project's GitHub releases.
GitHub Copilot in VS Code
Run MCP: Open User Configuration from the Command Palette and add:
From a checkout, create .vscode/mcp.json in this repository instead (git-ignored, so it
stays local):
Then:
- Open Copilot Chat and set the mode dropdown to Agent. MCP tools are not available in Ask or Edit mode.
- Command Palette (
Ctrl+Shift+P, orCmd+Shift+Pon macOS) and run MCP: List Servers, selectstig-mcp, then Start. Trust the server when prompted, since it runs a local command. - Click Configure Tools in the chat input to confirm the eight tools are listed and enabled.
- Reference a tool explicitly to verify the wiring, rather than hoping the model picks it up on its own. See docs/user-guide.md's "Getting the LLM to use the server" for a prompt shape that reliably does this.
Copilot saves a tool answer over 8 KB to a temporary file and reads it back, so with
manual permissions it asks to read a file named like …copilot-tool-output-….txt
outside the workspace. That file is this server's answer; allow it.
To debug, run MCP: List Servers, select the server, and choose Show Output.
The two common failures are that uvx or uv is not on the PATH VS Code inherited,
which looks like a broken server but is a missing command, and an absent knowledge base.
For the first, use the absolute path (which uvx or which uv) as command. For the second, see
docs/operations.md.
Other clients
Any MCP client that launches a stdio server works, with uvx stig-mcp as the command. For
Claude Code:
From a checkout, uv run locates the project from the working directory, so a client that
starts elsewhere needs --directory, which makes the command independent of where it is
launched:
or, from the repository root, claude mcp add stig-mcp -- uv run stig-mcp.
By default the knowledge base is not found relative to the working directory, so only
uv run cares where the client starts the server. Where it is found depends on whether this is a
checkout or an installed copy. (A relative STIG_MCP_DATA does resolve against the working
directory, so give it an absolute path if the client's is not yours.)
Where the data lives
Two environment variables override the defaults, and the defaults differ between a source
checkout and an installed copy (which includes uvx stig-mcp):
A checkout is a directory holding both the package and the pyproject.toml that declares
it, so an editable install counts as one. XDG is used on POSIX, including macOS. On Windows
with the XDG variables unset, the default is %LOCALAPPDATA%, because a roaming profile
copies ~/.local/share at every logon and logoff, and this project's downloads can run to a
gigabyte; when
%LOCALAPPDATA% is set this puts the mapping overrides file inside the data directory rather
than beside it, since Windows has one such variable rather than XDG's separate data and config
locations. (With %LOCALAPPDATA% unset, Windows falls back to the same separate ~/.config
and ~/.local/share trees POSIX uses, so the two stay apart in that case, same as the table
above shows.)
The XDG variables are read first on every platform, Windows included, as the table's
Windows column shows: a Windows host with XDG_DATA_HOME set uses it and never reaches
%LOCALAPPDATA%, so the roaming argument above holds only where that variable is unset. The
order is kept so that an existing install's data directory never moves under it.
STIG_MCP_DATA and STIG_MCP_OVERRIDES outrank everything above and are the escape hatch
everywhere, for a native location or any other.
stig-mcp-ingest creates the data directory if it does not exist. It refuses to run when
STIG_MCP_OVERRIDES names a file that is not there, rather than silently applying no
overrides; a missing file at the default location is fine, because that file is optional.
What this server fetches
- The MCP server contacts nothing unless
check_sourcesorinstall_knowledge_baseis called. Then it sends HTTPS GET requests toapi.github.com(this repository's release listing) andgithub.com(/jeneric/STIG-MCP/releases/download/...), which redirects torelease-assets.githubusercontent.comorobjects.githubusercontent.com. Any other URL, a redirect included, is refused. Nothing is uploaded, and there is no telemetry.install_knowledge_basegiven a file path and its SHA-256 requests nothing at all. stig-mcp-install-kbcontacts the same hosts, and nothing at all with--file.stig-mcp-fetch, used only to build the knowledge base yourself, downloads fromraw.githubusercontent.comandapi.github.com(MITRE ATT&CK, the CTID mapping, the NIST 800-53 catalog) and fromdl.dod.cyber.mil(DISA).
PRIVACY.md states what each of these requests sends and what is stored locally.
Example prompts
With the knowledge base installed and the server wired into an agent, these are answered from it:
What DISA STIG steps mitigate T1078 on Windows 11?Which ATT&CK techniques does APT29 use?Which STIG benchmarks apply to RHEL 9?
Documentation
- docs/operations.md: for whoever installs, builds and maintains the knowledge base.
- docs/user-guide.md: for a person talking to an LLM that has this server wired in.
- SECURITY.md: reporting a vulnerability, and what is in scope.
- CONTRIBUTING.md: working from a source checkout, running the tests, and the project's conventions.
- RELEASING.md: for the maintainer, publishing the package to PyPI and the MCP Registry.
- PRIVACY.md: what the server and the fetch tool contact, and what is stored locally.
Third-party content
The knowledge base aggregates MITRE ATT&CK, CTID mapping, DISA STIG, DISA CCI list, and NIST OSCAL content. See NOTICE for attribution and licensing obligations and licenses/apache-2.0.txt for the Apache 2.0 license text that notice requires.
Development
Developed with the assistance of Claude Code (Anthropic). All changes were reviewed and tested by the maintainer.
Source: README.md at commit 215d772
Tools
0Version history
1- v0.1.1LatestOct 1, 2026


