Skip to main content

A Model Context Protocol server for fetching ietf documents for LLMs

Project description

MCP-Server-IETF

A Model Context Protocol server for fetching IETF documents (RFCs) for Large Language Models.

Overview

This project implements a Model Context Protocol (MCP) server that provides access to IETF RFC documents. It enables Large Language Models to access RFC specifications through a standardized interface.

Key features:

  • Download and cache RFC index and documents
  • Search RFCs by keyword in titles
  • Access RFC documents with pagination support
  • Extract metadata like page numbers from documents

Installation

Requirements

  • Python 3.11 or higher
  • Dependencies as listed in pyproject.toml

Install from source

# Clone the repository
git clone https://github.com/tizee/mcp-server-ietf
cd mcp-server-ietf

# Install with pip
pip install -e .

Usage

Starting the server

# Start the server
mcp-server-ietf

Or use it with the MCP inspector:

npx @modelcontextprotocol/inspector uv run mcp-server-ietf

Available Tools

When connected to the server, the following tools are available:

list_docs_number

Get the total number of RFC documents available in the index.

get_doc

Get an RFC document by its number with pagination support.

Parameters:

  • number: The RFC number (e.g., "1234")
  • start_line: The line number to start from (default: 1)
  • max_lines: Maximum number of lines to return (default: 200)

search_rfc_by_keyword

Search for RFC documents by keyword in their titles.

Parameters:

  • keyword: The search term to look for in RFC titles

Development

Setup Development Environment

# Install development dependencies
uv install -e .[dev]

Run inspector with Makefile:

make dev

Running Tests

# Run tests
uv run pytest

Or using the Makefile:

make test

Cache Location

By default, the server caches RFC documents and the index at ~/.cache/ietf-doc-server.

Environment Variables

  • LOG_LEVEL: Set the logging level (default: "DEBUG")

License

MIT License - See LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mseep_mcp_server_ietf-0.1.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mseep_mcp_server_ietf-0.1.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file mseep_mcp_server_ietf-0.1.1.tar.gz.

File metadata

  • Download URL: mseep_mcp_server_ietf-0.1.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for mseep_mcp_server_ietf-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2bdc1433ebd89033bef22696d36f9084a6206df17c6ab8afc0b1daccf82094dd
MD5 b0ddaf9cf5a8790d02a69484b03db107
BLAKE2b-256 73f057e09268cb08b3afc4f9c97dbdf6e04fe6e0c6cfad14edbb76979932fa71

See more details on using hashes here.

File details

Details for the file mseep_mcp_server_ietf-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mseep_mcp_server_ietf-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dff7a01ab81ad20c2ee8b5a9d0662d0eeb4d20422913b21b3023d09c32ae5ce6
MD5 fedee19da60c78b91adb14523aa495c1
BLAKE2b-256 c7f55b4bbf95e744a8050029056008ddceb507fc8b92cbb07a6b0539f444359e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page