About mcp-rfc-editor
mcp-rfc-editor is an MCP server for editing RFC TXT documents with the rfc-editor Python library. It offers session-based document handling as well as tools to create, download, revise, and save RFCs.
Key features
- 01Load or download RFC documents
- 02Create and save RFC TXT files
- 03Edit titles, abstracts, and sections
- 04Set copyright and author details
- 05List sections and export document data
Use cases
- 01Download an RFC for editing
- 02Draft a new RFC document
- 03Revise sections and document metadata
- 04Save changes in TXT format
MCP support
The MCP server exposes tools for loading, creating, editing, and saving RFC documents. Session context retains the active document between operations.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEmcp-rfc-editor
mcp-name: io.github.daedalus/mcp-rfc-editor
An MCP (Model Context Protocol) server for editing RFC TXT documents using the rfc-editor Python library.
Installation
pip install mcp-rfc-editor
Usage
CLI
python -m mcp_rfc_editor
Programmatic
from mcp_rfc_editor import main
main()
MCP Tools
The server exposes the following tools:
load_rfc- Load and parse an RFC TXT file (creates session)download_rfc- Download an RFC from rfc-editor by ID (creates session)create_rfc- Create a new empty RFC document (creates session)get_document- Get the current document from session contextsave_rfc- Save an RFC document to TXT formatset_title- Set the document titleset_abstract- Set the document abstractadd_section- Add a new sectionupdate_section- Update an existing sectiondelete_section- Delete a sectionlist_sections- List all sections in the documentset_copyright- Set copyright noticeset_authors- Set document authorsto_dict- Convert document to dictionary
Session-Based Workflow
The server maintains session context so you don't need to pass the full document object on every call:
# 1. Download an RFC - returns Session ID
result = download_rfc(rfc_id="791")
# Returns: {document..., "Session ID": "abc-123"}
# 2. Use session ID to get title (no document needed)
get_title(session_id="abc-123")
# 3. Modify and changes are persisted
set_title(session_id="abc-123", title="New Title")
Alternatively, you can always pass the full document object directly (legacy mode).
Development
Requirements
- Python 3.11+
- mcp
- rfc-editor
Setup
pip install -e ".[dev]"
Testing
pytest tests/
Linting
black src/ tests/
ruff check src/ tests/
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.