The RFCXML MCP server provides structured analysis of RFC documents by leveraging their semantic XML structure to extract requirements, analyze dependencies, and generate implementation aids.
Core Capabilities:
Extract Normative Requirements - Identify MUST/SHOULD/MAY requirements with condition/exception structuring, filterable by level and section
Retrieve RFC Structure and Metadata - Get section hierarchies, metadata, and optionally include section content
Manage Definitions - Fetch term definitions and their scope, with search capabilities for specific terms
Analyze Dependencies - Map normative and informative references between RFCs, with optional reverse reference lookup
Identify Related Sections - Find sections within an RFC related to a specified section
Generate Implementation Checklists - Create role-based (client/server/both) Markdown checklists, configurable by specific sections
Validate Compliance - Verify if statements or implementation descriptions adhere to RFC requirements
Key Features:
Dual Format Support - Uses RFCXML v3 for modern RFCs (8650+) with high accuracy; automatically falls back to text parsing for legacy RFCs with medium accuracy
Source Transparency - All responses indicate data source (XML or text) and accuracy level
Performance Optimized - Parallel fetching from multiple sources with LRU caching for frequently accessed RFCs
BCP 14 Compliant - Recognizes all standard RFC requirement keywords
Supports the generation of structured implementation checklists and protocol documentation in Markdown format for easier display and verification.
Provides tools to parse and extract semantic information from RFCXML documents, enabling the retrieval of section hierarchies, normative requirements, and dependency graphs.
RFCXML MCP Server
A Model Context Protocol (MCP) server for structured understanding of RFC documents.
Purpose
Unlike existing text-based RFC MCP servers, this server leverages the semantic structure of RFCXML to enable:
Normative requirements extraction (MUST/SHOULD/MAY) with structured output
RFC dependency graph construction
Definition scope management
Implementation checklist generation
Architecture
Comparison with Existing MCPs
Feature | Existing mcp-rfc | RFCXML MCP |
RFC text retrieval | ✅ | ✅ |
Section extraction | ✅ (text-based) | ✅ (structure-based) |
MUST/SHOULD/MAY extraction | ❌ | ✅ |
Condition/exception structuring | ❌ | ✅ |
RFC dependency graph | ❌ | ✅ |
Definition scope management | ❌ | ✅ |
Implementation checklist | ❌ | ✅ |
Quick Start
Using with Claude Desktop / Claude Code
Add the following to your MCP configuration file:
Configuration file locations:
Claude Desktop (macOS):
~/Library/Application Support/Claude/claude_desktop_config.jsonClaude Desktop (Windows):
%APPDATA%\Claude\claude_desktop_config.jsonClaude Code:
.claude/settings.jsonor useclaude settingscommand
Installation (Optional)
For global installation:
Available Tools
Phase 1: Basic Structure
get_rfc_structure- Get section hierarchy and metadataget_requirements- Extract normative requirements (MUST/SHOULD/MAY) with structureget_definitions- Get term definitions and their scope
Phase 2: Relationships
get_rfc_dependencies- Get referenced RFCs (normative/informative)get_related_sections- Get related sections within the same RFC
Phase 3: Verification Support
validate_statement- Verify if a statement complies with RFC requirementsgenerate_checklist- Generate implementation checklist
Legacy RFC Support
RFCs published after RFC 8650 (December 2019) are available in official RFCXML v3 format. Earlier RFCs may not have XML available.
This server includes automatic fallback functionality - when XML is unavailable, it parses the text format instead.
Source Information
All responses include source information:
| Description |
| Parsed from RFCXML (high accuracy) |
| Parsed from text (medium accuracy) |
Compatibility
RFC | Format | Notes |
RFC 8650+ | XML | Official RFCXML v3 support |
Before RFC 8650 | Text | Automatic fallback |
Output Samples
get_rfc_structure - Get RFC Structure
get_requirements - Extract Normative Requirements
get_rfc_dependencies - Get RFC Dependencies
generate_checklist - Generate Implementation Checklist
Text Fallback Output (Legacy RFCs)
Examples
See the examples/ directory for complete checklist samples:
Example prompt for Claude:
Internal Architecture
Module Structure
RFC Fetch Optimization
Sends parallel requests to multiple sources (RFC Editor, IETF Tools, Datatracker) and uses the first successful response:
Cache Strategy
LRU (Least Recently Used) cache with memory limits:
Cache | Max Entries | Content |
XML Cache | 20 | Raw RFCXML |
Text Cache | 20 | Raw text |
Metadata Cache | 100 | RFC metadata |
Parse Cache | 50 | Parsed structure |
Development
License
MIT
Related Projects
mjpitz/mcp-rfc - Text-based RFC MCP
ietf-tools/RFCXML - RFCXML schema
xml2rfc - IETF official tool