MCP-服务器-IETF
用于获取大型语言模型的 IETF 文档 (RFC) 的模型上下文协议服务器。
概述
该项目实现了一个模型上下文协议 (MCP)服务器,用于访问 IETF RFC 文档。它使大型语言模型能够通过标准化接口访问 RFC 规范。
主要特点:
- 下载并缓存 RFC 索引和文档
- 按标题中的关键字搜索 RFC
- 通过分页支持访问 RFC 文档
- 从文档中提取页码等元数据
安装
要求
- Python 3.11 或更高版本
pyproject.toml
中列出的依赖项
从源安装
用法
启动服务器
或者与 MCP 检查器一起使用:
可用工具
连接到服务器后,可以使用以下工具:
list_docs_number
获取索引中可用的 RFC 文档总数。
get_doc
通过编号获取 RFC 文档,并支持分页。
参数:
number
:RFC 编号(例如“1234”)start_line
:开始的行号(默认值:1)max_lines
:返回的最大行数(默认值:200)
search_rfc_by_keyword
通过标题中的关键字搜索 RFC 文档。
参数:
keyword
:在 RFC 标题中查找的搜索词
发展
设置开发环境
使用 Makefile 运行检查器:
运行测试
或者使用 Makefile:
缓存位置
默认情况下,服务器将 RFC 文档和索引缓存在~/.cache/ietf-doc-server
中。
环境变量
LOG_LEVEL
:设置日志级别(默认值:“DEBUG”)
执照
MIT 许可证 - 有关详细信息,请参阅LICENSE
文件。
贡献
欢迎贡献代码!欢迎提交 Pull 请求。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
模型上下文协议服务器使大型语言模型能够搜索和访问具有分页支持的 IETF RFC 文档。
Related Resources
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables Large Language Models to access and interact with database connections, including viewing schemas and performing CRUD operations on connected databases.Last updated -
- AsecurityAlicenseAqualityA Model Context Protocol server that helps large language models process code repositories by providing file tree generation, code merging, and code analysis capabilities.Last updated -321JavaScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server for ingesting, chunking and semantically searching documentation files, with support for markdown, Python, OpenAPI, HTML files and URLs.Last updated -Python
- AsecurityAlicenseAqualityA Model Context Protocol server that enables large language models to access database metadata and perform cross-engine data querying across diverse database ecosystems.Last updated -821PythonApache 2.0