Skip to main content
Glama

MCP-Server-IETF

by tizee

MCP-服务器-IETF

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

概述

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

主要特点:

  • 下载并缓存 RFC 索引和文档
  • 按标题中的关键字搜索 RFC
  • 通过分页支持访问 RFC 文档
  • 从文档中提取页码等元数据

安装

要求

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

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

模型上下文协议服务器使大型语言模型能够搜索和访问具有分页支持的 IETF RFC 文档。

  1. 概述
    1. 安装
      1. 要求
      2. 从源安装
    2. 用法
      1. 启动服务器
      2. 可用工具
    3. 发展
      1. 设置开发环境
      2. 运行测试
      3. 缓存位置
      4. 环境变量
    4. 执照
      1. 贡献

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          A 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 -
          • Apple
        • A
          security
          A
          license
          A
          quality
          A 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 -
          3
          21
          JavaScript
          MIT License
        • -
          security
          F
          license
          -
          quality
          A 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
          • Apple
        • A
          security
          A
          license
          A
          quality
          A 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 -
          8
          21
          Python
          Apache 2.0

        View all related MCP servers

        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