FedRAMP Docs MCP Server
Enables querying and analysis of FedRAMP documentation, compliance requirements, and security controls through structured tools that search markdown guidance, analyze FRMR datasets, and track regulatory changes.
README
FedRAMP Docs MCP Server
Custom Model Context Protocol (MCP) server that makes the FedRAMP/docs repository queryable with FRMR-aware tooling. The server scans FRMR JSON datasets and supporting markdown guidance, exposes structured tools for analysis, and can optionally clone and cache the upstream repository for you.
Demo
See the FedRAMP Docs MCP Server in action with Claude Desktop:
https://github.com/user-attachments/assets/6c96ace6-cbd8-4479-9aa9-4474643362c4
Prerequisites
- Node.js 18 or higher
- npm 8 or higher
Features
- Auto-detects FRMR JSON files (KSI, MAS, VDR, SCN, FRD, ADS) and builds typed metadata.
- Extracts KSI entries, flattened control mappings, and Significant Change references.
- Fast markdown search via an inverted index backed by Lunr with snippets and line numbers.
- Structured diffing between FRMR versions, including per-item change detection.
- Health check, version listing, and curated Significant Change guidance aggregator.
Getting Started
Local Development
- Install dependencies:
npm install
- Build the project:
npm run build
- Run the server:
node dist/index.js
Global Installation
To install globally and use the fedramp-docs-mcp command:
npm install -g .
fedramp-docs-mcp
Note: Global installation is required if you want to use fedramp-docs-mcp as the command in MCP client configurations (Claude Desktop, Goose, etc.). Alternatively, you can use the full path to the built server: node /path/to/fedramp-docs-mcp/dist/index.js
During startup the server ensures a FedRAMP/docs repository is available, indexes FRMR JSON and markdown content, then begins serving requests on MCP stdio.
Configuration
Environment variables control repository discovery and indexing behaviour:
| Variable | Default | Description |
|---|---|---|
FEDRAMP_DOCS_PATH |
~/.cache/fedramp-docs |
Path to an existing FedRAMP/docs checkout. |
FEDRAMP_DOCS_REMOTE |
https://github.com/FedRAMP/docs |
Remote used when cloning. |
FEDRAMP_DOCS_BRANCH |
main |
Branch to checkout when cloning. |
FEDRAMP_DOCS_ALLOW_AUTO_CLONE |
true |
Clone automatically when the path is missing. |
FEDRAMP_DOCS_AUTO_UPDATE |
true |
Automatically check for and fetch repository updates. |
FEDRAMP_DOCS_UPDATE_CHECK_HOURS |
24 |
Hours between automatic update checks (when auto-update is enabled). |
FEDRAMP_DOCS_INDEX_PERSIST |
true |
Persist the in-memory index under ~/.cache/fedramp-docs/index-v1.json. |
Set FEDRAMP_DOCS_PATH if you maintain a local clone. Otherwise leave it unset and allow the server to create a shallow cached copy.
Keeping Data Up-to-Date
The server includes automatic update checking to keep the FedRAMP docs current:
Automatic Updates (Default Behavior):
- Every 24 hours (configurable), the server checks if the cached repository needs updating
- If updates are available, they're fetched automatically on server startup
- This ensures you always have recent FedRAMP data without manual intervention
Manual Updates:
- Use the
update_repositorytool to force an immediate update - Example query in Claude Desktop: "Update the FedRAMP docs repository"
- Useful when you know new requirements or guidance has been published
Disabling Auto-Update:
{
"mcpServers": {
"fedramp-docs": {
"command": "fedramp-docs-mcp",
"env": {
"FEDRAMP_DOCS_AUTO_UPDATE": "false"
}
}
}
}
Custom Update Frequency:
{
"env": {
"FEDRAMP_DOCS_UPDATE_CHECK_HOURS": "6"
}
}
Available Tools
All tools follow the error model described in the product spec and respond with JSON payloads. Key tools include:
list_frmr_documents— enumerate indexed FRMR JSON documents.get_frmr_document— return full JSON and summary for a document.list_ksi/get_ksi— filter and inspect Key Security Indicators.list_controls— flatten FRMR → NIST control mappings.search_markdown/read_markdown— full-text search and retrieval with digests.list_versions— collate version metadata by FRMR document type.diff_frmr— structured diff of two FRMR datasets using ID-aware comparison.grep_controls_in_markdown— locate control references inside markdown guidance.get_significant_change_guidance— curated Significant Change references across FRMR + markdown.health_check— confirm the server indexed successfully and expose repo path.update_repository— force update the cached FedRAMP docs to the latest version.
See src/tools/ for the precise schemas implemented with Zod. Each tool returns either a successful object or an error payload containing code, message, and optional hint.
Usage Examples
When using the MCP server with Claude Desktop or other MCP clients, here are some example queries:
Getting KSI Information:
"List all available FedRAMP documents"
→ Uses list_frmr_documents
"Show me the Key Security Indicators"
→ Uses get_frmr_document with path 'FRMR.KSI.key-security-indicators.json'
"What are the KSI categories?"
→ Parses KSI document to show categories like IAM, CNA, MLA, etc.
Searching Documentation:
"Search for information about continuous monitoring"
→ Uses search_markdown with query 'continuous monitoring'
"Find guidance on incident response"
→ Uses search_markdown with query 'incident response'
Working with Controls:
"List all controls mapped in the MAS"
→ Uses list_controls
"Find all markdown files that reference AC-2"
→ Uses grep_controls_in_markdown with control 'AC-2'
Analyzing Changes:
"What's new in the latest KSI release?"
→ Uses list_versions then diff_frmr to compare versions
"Show significant change guidance"
→ Uses get_significant_change_guidance
MCP Client Configuration
The FedRAMP Docs MCP server works with any MCP-compatible client. Below are setup instructions for the most popular and reliable clients.
Recommended clients:
- Claude Desktop - Most mature MCP integration, excellent tool discovery
- Claude Code CLI - Official Anthropic CLI tool, great for terminal workflows
- LM Studio - Native MCP support, works with local models for privacy
- OpenCode - Terminal-based coding agent with MCP support
- Goose - Experimental support, may have tool discovery issues
Claude Desktop
Add the server to your Claude Desktop configuration file:
Location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"fedramp-docs": {
"command": "fedramp-docs-mcp",
"env": {
"FEDRAMP_DOCS_PATH": "/path/to/FedRAMP/docs"
}
}
}
}
After updating the config, restart Claude Desktop. The FedRAMP Docs tools will appear in your conversations.
Claude Code CLI
Claude Code is Anthropic's official CLI tool with built-in MCP support.
Method 1: Using CLI (Recommended)
# Add the FedRAMP Docs MCP server
claude mcp add --transport stdio fedramp-docs fedramp-docs-mcp
# With full path
claude mcp add --transport stdio fedramp-docs /path/to/node/bin/fedramp-docs-mcp
# List configured servers
claude mcp list
# Remove if needed
claude mcp remove fedramp-docs
Method 2: Configuration File
Claude Code supports three configuration scopes:
- Project-scoped (recommended for teams):
.mcp.jsonin project root - User-scoped:
~/.claude/settings.local.json - Project-local:
.claude/settings.local.jsonin project root
Example .mcp.json (project-scoped, can be version-controlled):
{
"mcpServers": {
"fedramp-docs": {
"command": "fedramp-docs-mcp",
"args": [],
"env": {
"FEDRAMP_DOCS_AUTO_UPDATE": "true"
}
}
}
}
With environment variable expansion:
{
"mcpServers": {
"fedramp-docs": {
"command": "fedramp-docs-mcp",
"args": [],
"env": {
"FEDRAMP_DOCS_PATH": "${HOME}/fedramp-docs",
"FEDRAMP_DOCS_AUTO_UPDATE": "true"
}
}
}
}
Testing:
- Restart Claude Code after configuration changes
- Use
/mcpcommand for interactive management - Use
--mcp-debugflag for troubleshooting:claude --mcp-debug - Verify with:
claude mcp list
Note: Project-scoped configurations in .mcp.json enable team collaboration by ensuring all team members have access to the same MCP tools.
LM Studio
LM Studio (v0.3.17+) has native MCP support and works great with local models for privacy-focused workflows.
Setup Instructions
- Open LM Studio and click the Program tab (terminal icon >_) in the right sidebar
- Click "Edit mcp.json" under the Install section
- Add the FedRAMP Docs configuration:
Config file location:
- macOS/Linux:
~/.lmstudio/mcp.json - Windows:
%USERPROFILE%\.lmstudio\mcp.json
Basic configuration:
{
"mcpServers": {
"fedramp-docs": {
"command": "fedramp-docs-mcp",
"args": [],
"env": {
"FEDRAMP_DOCS_AUTO_UPDATE": "true"
}
}
}
}
Using full path (recommended if command not found):
{
"mcpServers": {
"fedramp-docs": {
"command": "/path/to/node/bin/fedramp-docs-mcp",
"args": [],
"env": {
"FEDRAMP_DOCS_AUTO_UPDATE": "true",
"FEDRAMP_DOCS_PATH": "/path/to/FedRAMP/docs"
}
}
}
}
- Save the file - LM Studio will automatically load the server
- Start chatting - Open a chat with any local model
- Test it - Ask: "List all FedRAMP FRMR documents"
- Approve tool calls - LM Studio will show a confirmation dialog before executing each tool
Note: Requires global installation (npm install -g .) or use the full path to the executable. Find your path with: which fedramp-docs-mcp
OpenCode
OpenCode is a powerful AI coding agent built for the terminal with native MCP support.
Setup Instructions
- Create or edit your OpenCode configuration file:
Config file location:
- Global:
~/.config/opencode/opencode.json - Project:
opencode.json(in your project root)
- Add the FedRAMP Docs MCP server:
Basic configuration:
{
"mcp": {
"fedramp-docs": {
"type": "local",
"command": ["fedramp-docs-mcp"],
"enabled": true
}
}
}
With full path:
{
"mcp": {
"fedramp-docs": {
"type": "local",
"command": ["/path/to/node/bin/fedramp-docs-mcp"],
"enabled": true
}
}
}
With environment variables:
{
"mcp": {
"fedramp-docs": {
"type": "local",
"command": ["fedramp-docs-mcp"],
"enabled": true,
"env": {
"FEDRAMP_DOCS_AUTO_UPDATE": "true",
"FEDRAMP_DOCS_PATH": "/path/to/FedRAMP/docs"
}
}
}
}
- Restart OpenCode to load the MCP server
- Test it - The FedRAMP tools will be automatically available alongside built-in tools
Note: MCP servers add to your context, so enable only the ones you need. Use "enabled": false to temporarily disable a server without removing it.
Goose
Goose is Block's open-source AI agent. You can add the FedRAMP Docs MCP server using any of these methods:
Method 1: Via Goose CLI (Recommended)
goose configure
Then select:
Add ExtensionCommand-line Extension- Enter the following details:
- Name:
FedRAMP Docs - Command:
fedramp-docs-mcp - Timeout:
300
- Name:
Method 2: Via Goose Desktop App
- Open Goose Desktop
- Click Extensions in the sidebar
- Click Add custom extension
- Fill in the form:
- Extension Name:
FedRAMP Docs - Type:
STDIO - Command:
fedramp-docs-mcp - Timeout:
300 - Environment Variables: (optional)
FEDRAMP_DOCS_PATH:/path/to/FedRAMP/docsFEDRAMP_DOCS_AUTO_UPDATE:true
- Extension Name:
Method 3: Via Config File
Edit ~/.config/goose/config.yaml (Linux/macOS) or %USERPROFILE%\.config\goose\config.yaml (Windows):
extensions:
fedramp-docs:
name: FedRAMP Docs
cmd: fedramp-docs-mcp
enabled: true
type: stdio
timeout: 300
envs:
FEDRAMP_DOCS_PATH: "/path/to/FedRAMP/docs" # optional
FEDRAMP_DOCS_AUTO_UPDATE: "true" # optional
After configuration, restart Goose or reload extensions. You can test by asking: "What FedRAMP tools are available?"
Note: Goose's MCP support is still maturing and may have issues discovering tools from stdio servers. If you experience problems with tool discovery, consider using Claude Desktop, Claude Code CLI, LM Studio, or OpenCode instead.
MCP Inspector (Debugging)
For debugging and testing the server directly:
npx @modelcontextprotocol/inspector node dist/index.js
Development
Running in Development Mode
Use tsx for rapid iteration without building:
npm run dev
This runs the TypeScript source directly, automatically recompiling on changes.
Running Tests
The repository includes Vitest-based unit and contract tests with small fixtures:
npm test
Tests set FEDRAMP_DOCS_PATH to tests/fixtures/repo, ensuring the indexer, search, and diff logic run deterministically without needing the real FedRAMP repo.
Code Structure
The codebase uses:
- TypeScript 5.4+ with strict mode enabled
- ES Modules (
"type": "module"in package.json) - Node.js module resolution (
moduleResolution: "NodeNext") - Zod for runtime schema validation
- MCP SDK v1.20+ for server implementation
Project Structure
src/
index.ts # MCP bootstrap
repo.ts # repo discovery and cloning
indexer.ts # FRMR + markdown indexing logic
frmr.ts # FRMR-centric helpers
search.ts # markdown search + aggregations
diff.ts # structured FRMR diff engine
tools/ # individual MCP tool handlers
Fixtures live under tests/fixtures, while Vitest specs reside in tests/.
Troubleshooting
Build Errors
Error: Cannot find module '@modelcontextprotocol/sdk'
Ensure you have the correct SDK version installed:
npm install @modelcontextprotocol/sdk@^1.20.0
Error: Module not found or import errors
The project uses ES modules with NodeNext resolution. Make sure you're using Node.js 18+ and that your TypeScript configuration matches:
{
"compilerOptions": {
"module": "NodeNext",
"moduleResolution": "NodeNext"
}
}
Runtime Errors
Error: REPO_CLONE_FAILED
The server couldn't clone the FedRAMP docs repository. Check:
- Network connectivity
- Set
FEDRAMP_DOCS_PATHto an existing local clone, or - Ensure
FEDRAMP_DOCS_ALLOW_AUTO_CLONE=true(default)
Server starts but no tools appear
Verify the build completed successfully:
npm run build
ls dist/ # Should contain index.js, tools/, etc.
Development Issues
TypeScript errors about missing types
Install all development dependencies:
npm install
Required type packages:
@types/node@types/fs-extra@types/lunr@types/glob
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。