MCP-IETF模型上下文服务器添加福利群:解决AI开发者的「MCP实战痛点」一个用于为大型语言模型获取IETF文档(RFC)的模型上下文协议服务器。
该项目实现了一个模型上下文协议 (MCP) 服务器,提供对IETF RFC文档的访问。它使大型语言模型能够通过标准化接口访问RFC规范。
主要特性:
pyproject.toml# Clone the repository
git clone https://github.com/tizee/mcp-server-ietf
cd mcp-server-ietf
# Install with pip
pip install -e .

# Start the server
mcp-server-ietf

或者使用MCP检查器:
npx @modelcontextprotocol/inspector uv run mcp-server-ietf
连接到服务器后,以下工具可用:
list_docs_number获取索引中可用的RFC文档总数。
get_doc按编号获取RFC文档,并支持分页。
参数:
number: RFC编号(例如:"1234")start_line: 开始行号(默认:1)max_lines: 返回的最大行数(默认:200)search_rfc_by_keyword根据标题中的关键词搜索RFC文档。
参数:
keyword: 在RFC标题中查找的搜索词# Install development dependencies
uv install -e .[dev]

使用Makefile运行检查器:
make dev
# Run tests
uv run pytest

或者使用Makefile:
make test

默认情况下,服务器将RFC文档和索引缓存在 ~/.cache/ietf-doc-server。
LOG_LEVEL: 设置日志级别(默认:"DEBUG")MIT许可证 - 详情见 LICENSE 文件。
欢迎贡献!请随时提交Pull Request。