Skip to main content
Glama
tizee

MCP-Server-IETF

by tizee

MCP-服务器-IETF

用于获取大型语言模型的 IETF 文档 (RFC) 的模型上下文协议服务器。

概述

该项目实现了一个模型上下文协议 (MCP)服务器,用于访问 IETF RFC 文档。它使大型语言模型能够通过标准化接口访问 RFC 规范。

主要特点:

  • 下载并缓存 RFC 索引和文档

  • 按标题中的关键字搜索 RFC

  • 通过分页支持访问 RFC 文档

  • 从文档中提取页码等元数据

Related MCP server: Code Merge MCP

安装

要求

  • Python 3.11 或更高版本

  • 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 请求。

Install Server
A
license - permissive license
B
quality
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tizee/mcp-server-ietf'

If you have feedback or need assistance with the MCP directory API, please join our Discord server