Skip to main content
Glama

nist-mcp

AI 어시스턴트에게 NIST 사이버 보안 카탈로그(간행물, SP 800-53 Rev 5 통제, CSF 2.0, CMVP 모듈, NCP 체크리스트, 용어집, NICE 직무 역할 및 실시간 NVD CVE/CPE 데이터)에 대한 구조화된 액세스를 제공하는 소형 MCP(Model Context Protocol) 서버입니다. 로컬 NIST 데이터는 NIST에서 직접 구조화된 데이터를 다운로드하여 처음 사용할 때 자동으로 빌드되는 SQLite 인덱스에서 제공됩니다.

설치

GitHub에서 직접 설치:

pipx install git+https://github.com/ball2jh/nist-mcp.git
# or
pip install git+https://github.com/ball2jh/nist-mcp.git

로컬 개발용:

git clone https://github.com/ball2jh/nist-mcp.git
cd nist-mcp
pip install -e ".[dev,scraper]"

Related MCP server: NIST NVD MCP Server

구성

환경 변수

변수

기본값

설명

NIST_MCP_DATA_DIR

~/.nist-mcp

로컬 데이터베이스 및 캐시된 문서를 위한 디렉토리

NIST_MCP_NVD_API_KEY

(없음)

더 높은 속도 제한을 위한 선택적 NVD API 키 (권장)

NIST_MCP_UPDATE_INTERVAL

604800

백그라운드 데이터베이스 재빌드 간격(초) (기본값: 7일)

config.toml

지속적인 설정을 위해 ~/.nist-mcp/config.toml (또는 $NIST_MCP_DATA_DIR/config.toml)을 생성하세요:

nvd_api_key = "your-api-key-here"
update_interval = 43200   # 12 hours

환경 변수가 구성 파일보다 우선합니다.

MCP 클라이언트 구성

MCP 클라이언트의 서버 목록에 추가하세요 (예: Claude Desktop claude_desktop_config.json):

{
  "mcpServers": {
    "nist": {
      "command": "nist-mcp",
      "env": {
        "NIST_MCP_NVD_API_KEY": "your-api-key-here"
      }
    }
  }
}

처음 실행 시, 서버는 NIST에서 구조화된 데이터를 다운로드하여 로컬 데이터베이스를 빌드합니다(약 2초 소요). 데이터베이스는 캐시되며 오래되면 자동으로 재빌드됩니다(기본값: 7일마다).

MCP 안전 참고 사항

이 서버는 로컬 stdio MCP 서버로 실행되도록 설계되었습니다. HTTP 리스너를 노출하지 않으므로 액세스는 이를 실행하는 MCP 클라이언트 프로세스로 제한됩니다. 로그는 Python 로깅을 통해 기록되며, 기본적으로 stderr에 기록되고 stdio JSON-RPC 트래픽을 손상시키지 않습니다.

도구 스키마는 일반적인 옵션 세트와 결과 크기를 제한합니다. 문서 다운로드는 알려진 NIST 간행물 호스트의 HTTPS URL로 제한되며, 리디렉션은 재검증되고, 파일 이름은 로컬 캐시에 쓰기 전에 삭제(sanitized)되며, 페이지 추출은 요청당 50페이지로 제한됩니다. 로컬 데이터를 다운로드, 캐시 또는 재빌드하는 도구는 비파괴적이지만 완전히 읽기 전용은 아닌 것으로 주석 처리되어 클라이언트가 적절한 확인 UI를 표시할 수 있도록 합니다.

사용 가능한 도구

도구

설명

search_nist

간행물, 통제, CSF, 용어집, CMVP, 체크리스트 및 NICE 전반에 걸쳐 로컬 NIST 카탈로그 데이터 검색

get_nist_record

소스 및 ID별로 단일 로컬 NIST 레코드 가져오기

read_publication

간행물 콘텐츠를 Markdown으로 다운로드/캐시 및 읽기; 기본적으로 PDF 목차 반환

search_nvd

실시간 NVD CVE 또는 CPE 데이터 검색

get_cve

CVSS, 취약점, 참조, KEV 상태 및 선택적 변경 이력이 포함된 CVE 하나 가져오기

database_status

데이터베이스 빌드 날짜, 크기, 신선도 및 파일 경로 표시

update_database

NIST 소스에서 최신 데이터를 다운로드하여 로컬 NIST 인덱스 재빌드

사용 가능한 리소스

URI

설명

nist://about

서버 버전, 데이터베이스 신선도 및 빠른 시작 도구 가이드

빠른 예제

제로 트러스트에 대한 NIST 지침 찾기

search_nist("zero trust architecture")

SP 800-207 간행물 조회

search_nist("zero trust", source="publications")
get_nist_record(source="publications", record_id="SP.800-207")

MODERATE 시스템에 대한 액세스 제어 요구 사항 검토

search_nist("account management", source="controls", detail="standard")
get_nist_record(source="controls", record_id="AC-2")

Log4Shell 분석

get_cve("CVE-2021-44228")

암호화 라이브러리가 FIPS 검증을 받았는지 확인

search_nist("OpenSSL", source="cmvp")

사고 대응에 대한 CSF 지침 찾기

search_nist("incident response", source="csf")

라이선스

MIT 라이선스. PDF-to-Markdown 변환에 사용되는 pymupdf4llm은 AGPL-3.0 라이선스를 따릅니다.

Available Tools

20 tools
database_statusA
Read-onlyIdempotent

Show the current NIST metadata index status: build date, last update check, database size, and file path. Use this to verify the database is available and check data freshness.

Inputs: no named parameters. Returns: result

download_documentA

Download a publication PDF or supplemental material to local cache. Returns the file path. Use material_index to download a specific supplemental file listed in the get_publication output.

Inputs: publication_id (required), material_index. Returns: result

get_controlA
Read-onlyIdempotent

Get complete details for a specific SP 800-53 Rev 5 control: statement, guidance, parameters, related controls, baselines, and cross-framework mappings.

Set include_enhancements=True to also get all enhancement sub-controls. Do NOT use this for searching -- use search_controls to find controls first.

Inputs: control_id (required), include_enhancements. Returns: result

get_csf_dataA
Read-onlyIdempotent

Browse/search the NIST CSF 2.0 framework hierarchy. No args = list all 6 functions. function="PR" = Protect categories. category="PR.AC" = subcategories. query="risk" = full-text search. Includes count of mapped SP 800-53 controls per entry.

Inputs: function, category, query, detail_level. Returns: result

get_cveA
Read-only

Get full details for a CVE: description, CVSS scores, affected products (CPE), CWE classification, references, and CISA KEV status (if exploited: date added, due date, required action). Use this after search_cves to get complete vulnerability details. May take 6+ seconds without an NVD API key due to rate limiting.

Inputs: cve_id (required). Returns: result

get_cve_historyA
Read-only

Get the change history for a CVE — when it was modified, what changed (score updates, CPE additions, CWE remaps). May take 6+ seconds without an NVD API key due to rate limiting.

Inputs: cve_id (required). Returns: result

get_document_contentA

Retrieve publication content as Markdown. Without section/pages, returns table of contents. With section, returns that section. With pages, returns those pages. Handles PDF, XLSX, CSV, JSON, and XML formats. Results are cached locally.

Use this to read the actual content of NIST documents. For large documents like SP 800-53 (492 pages), use the pages parameter to request specific page ranges.

Inputs: publication_id (required), section, pages. Returns: result

get_framework_mappingsA
Read-onlyIdempotent

Cross-reference frameworks. 'What CSF maps to AC-1?' or 'What 800-53 controls implement PR.AC?' Bidirectional lookup in the mappings table.

Inputs: source_id (required), target_framework. Returns: result

get_latest_revisionA
Read-onlyIdempotent

Resolve any publication to its newest available revision. Follows the supersedes chain. Use this when you need the most current version of a document.

Inputs: publication_id (required). Returns: result

get_publicationA
Read-onlyIdempotent

Get full metadata for a specific NIST publication including title, abstract, authors, date, supersedes chain, related publications, and list of supplemental materials.

Inputs: publication_id (required). Returns: result

lookup_glossaryA
Read-onlyIdempotent

Look up NIST cybersecurity/privacy terms. Use 'term' for exact match, 'query' for keyword search. Returns definition, authoritative source, and related terms.

Inputs: term, query, limit. Returns: result

search_checklistsB
Read-onlyIdempotent

Search NCP security configuration checklists. 'SCAP checklists for Windows Server 2022' or 'CIS benchmarks for Ubuntu'.

Inputs: product, format, authority, query, +2 more. Returns: result

search_cmvpA
Read-onlyIdempotent

Search FIPS 140-2/3 validated cryptographic modules. 'Is OpenSSL FIPS validated?' or 'Which modules support AES-256-GCM at Level 2?'

Inputs: vendor, module_name, fips_level, algorithm, +3 more. Returns: result

search_controlsA
Read-onlyIdempotent

Search NIST SP 800-53 Rev 5 security and privacy controls by keyword, family, or baseline. Accepts flexible ID formats (AC-2, ac-2, AC2 all work).

summary: label + title (~50 tokens/result) standard: + statement text + baselines (~200 tokens/result) full: + guidance + parameters + related controls (~500+ tokens/result)

Use get_control for the complete detail of a specific control including enhancements.

Inputs: query, family, baseline, include_withdrawn, +3 more. Returns: result

search_cpesA
Read-only

Search the NVD CPE (Common Platform Enumeration) database for products and platforms. May take 6+ seconds without an NVD API key due to rate limiting.

Inputs: keyword, match_string, limit, offset. Returns: result

search_cvesA
Read-only

Search the NVD CVE database. Supports keyword, CVSS severity, CPE product, CWE weakness type, and date range filters. Set has_kev=True for only CISA Known Exploited Vulnerabilities. Results include CVE ID, description, severity, and score. May take 6+ seconds without an NVD API key due to rate limiting.

Inputs: keyword, severity, cpe_name, cwe_id, +5 more. Returns: result

search_nice_rolesB
Read-onlyIdempotent

Search NICE Framework work roles. 'What role handles incident response?'

Inputs: query, category, limit. Returns: result

search_nistA
Read-onlyIdempotent

Search across ALL NIST data: publications, SP 800-53 controls, CSF framework, glossary, CMVP modules, checklists, and NICE roles. Results grouped by type.

Use this as a starting point when you're not sure which specific tool to use. For targeted searches, use domain-specific tools (search_publications, search_controls, etc.).

scope options: publications, controls, csf, glossary, cmvp, checklists, nice

Inputs: query (required), scope, limit. Returns: result

search_publicationsA
Read-onlyIdempotent

Search NIST publications by keyword across all series (SP 800, SP 1800, FIPS, IR, CSWP, AI).

Returns matching publications with ID, title, date, and series. Use get_publication for full details on a specific publication. Default shows only the latest revision of each document. Do NOT use this for SP 800-53 security controls -- use search_controls instead.

Inputs: query (required), series, status, pub_type, +4 more. Returns: result

update_databaseA

Rebuild the NIST metadata index by downloading fresh data from NIST sources (XLSX, JSON, ZIP). Takes about 5-10 seconds. Use this if you need the most current publication or control data.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools have distinct purposes with clear boundaries, such as get_control for detailed control information versus search_controls for finding controls. However, some overlap exists between search_nist and domain-specific search tools, which could cause confusion about which to use first, though descriptions help clarify their roles.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern throughout, such as get_control, search_cves, and update_database. This predictability makes it easy for agents to understand and navigate the toolset without naming confusion.

    Tool Count4/5

    With 20 tools, the count is slightly high but reasonable for the broad scope of NIST cybersecurity data, covering publications, controls, vulnerabilities, and frameworks. It might feel heavy, but each tool appears to serve a specific function without obvious redundancy.

    Completeness5/5

    The toolset provides comprehensive coverage for the NIST cybersecurity domain, including CRUD-like operations (e.g., get, search, update), cross-referencing, and content retrieval. No significant gaps are apparent, supporting full agent workflows from discovery to detailed analysis.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides conversational access to a local CVE (Common Vulnerabilities and Exposures) database, enabling natural language queries to search vulnerabilities, retrieve detailed CVE information, and view security statistics.
      3
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to search, retrieve, and analyze vulnerability data from the NIST National Vulnerability Database through a comprehensive Model Context Protocol server.
      8
      9
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 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.
      10
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides live CVE data from NVD and EPSS without API key, enabling AI assistants to look up CVSS scores, search vulnerabilities, and check product CVEs.
      3
      MIT