The RFC MCP Server is a specialized server that allows programmatic interaction with RFC documents from ietf.org. It provides tools for fetching, searching, and extracting specific sections from RFC documents, with support for both HTML and TXT formats and built-in caching for improved performance.
Configure your MCP settings file to use the server by adding the following to your configuration:
{
"mcpServers": {
"rfc-server": {
"command": "npx",
"args": ["@mjpitz/mcp-rfc"],
"disabled": false,
"autoApprove": []
}
}
}
The RFC MCP Server provides several tools to interact with RFC documents.
This tool allows you to fetch an RFC document by its number.
Parameters:
number
(string, required): RFC number (e.g. "2616")format
(string, optional): Output format (full, metadata, sections), default: "full"Example:
{
"number": "2616",
"format": "metadata"
}
Search for RFCs by keyword or phrase.
Parameters:
query
(string, required): Search keyword or phraselimit
(number, optional): Maximum number of results to return, default: 10Example:
{
"query": "http protocol",
"limit": 5
}
Retrieve a specific section from an RFC document.
Parameters:
number
(string, required): RFC number (e.g. "2616")section
(string, required): Section title or number to retrieveExample:
{
"number": "2616",
"section": "Introduction"
}
The server provides resource templates for accessing RFC documents:
rfc://{number}
: Get an RFC document by its numberrfc://search/{query}
: Search for RFCs by keywordTo fetch RFC 2616 (HTTP/1.1):
{
"tool": "get_rfc",
"parameters": {
"number": "2616",
"format": "full"
}
}
To search for RFCs related to "http protocol":
{
"tool": "search_rfcs",
"parameters": {
"query": "http protocol",
"limit": 5
}
}
To get only the "Introduction" section from RFC 2616:
{
"tool": "get_rfc_section",
"parameters": {
"number": "2616",
"section": "Introduction"
}
}
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "rfc-server" '{"command":"npx","args":["@mjpitz/mcp-rfc"],"disabled":false,"autoApprove":[]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"rfc-server": {
"command": "npx",
"args": [
"@mjpitz/mcp-rfc"
],
"disabled": false,
"autoApprove": []
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"rfc-server": {
"command": "npx",
"args": [
"@mjpitz/mcp-rfc"
],
"disabled": false,
"autoApprove": []
}
}
}
3. Restart Claude Desktop for the changes to take effect