Skip to main content
Glama

DouYuSearcher MCP Server

MIT License
2

DouYuSearcher MCP Server

Python License Status

一个轻量级的 MCP 服务器,支持通过斗鱼房间ID或关键词搜索获取斗鱼直播房间信息。

功能特性

  • 房间信息查询:通过 get_room(room_id) 工具,输入斗鱼房间ID,获取详细房间信息(包括头像、分区、主播、状态、热度等)。
  • 关键词搜索房间:通过 search_rooms(keyword) 工具,输入关键词,搜索相关斗鱼房间。
  • Markdown 表格输出:所有信息均以美观的 Markdown 表格形式返回,支持图片展示。 image

安装方法

前置条件

  • Python 3.10+
  • pip

安装步骤

  1. 克隆本仓库:
    git clone https://github.com/LokerL/douyu-mcp-py.git cd douyu-mcp-py
  2. 安装依赖:
    uv install

使用方法

运行和测试

  • Windows下直接运行:
    ./inspector.cmd

工具说明

工具:get_room(room_id)

根据斗鱼房间ID获取房间详细信息。

  • 参数room_id(整数,斗鱼房间ID)
  • 返回:Markdown 表格,包含头像、房间ID、分区名、房间名、主播名、房间状态、热度、房间封面图、房间链接。
  • 示例输出
    | 名称 | 信息 | |----------------|-------------------| | 头像 | ![Avatar](https://example.com/avatar.jpg) | | 房间ID | 12345 | | 分区名 | 英雄联盟 | | 房间名 | 斗鱼最强 | | 主播名 | 张三 | | 房间状态 | 直播中 | | 热度 | 123456 | | 房间封面图 | ![Room Thumb](https://example.com/thumb.jpg) | | 房间链接 | [Link](https://www.douyu.com/71415) |
工具:search_rooms(keyword)

通过关键词搜索斗鱼房间,返回第一个相关房间信息。

  • 参数keyword(字符串,搜索关键词)
  • 返回:Markdown 表格,包含分区名、是否直播、关键词、主播昵称、房间ID。
  • 示例输出
    | 名称 | 信息 | |----------------|-------------------| | 分区名 | 英雄联盟 | | 是否直播 | 直播中 | | 关键词 | 英雄联盟 | | 主播昵称 | 张三 | | 房间 ID | 123456 |

许可证

MIT License. 详见 LICENSE

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

A lightweight MCP server that allows querying and searching for Douyu live streaming room information by room ID or keywords, returning results in Markdown format.

  1. 功能特性
    1. 安装方法
      1. 前置条件
      2. 安装步骤
    2. 使用方法
      1. 运行和测试
      2. 工具说明
    3. 许可证

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        This MCP server utilizes DuckDuckGo for web searches, providing structured search results with metadata and features like smart content classification and language detection, facilitating easy integration with AI clients supporting the MCP protocol.
        Last updated -
        1
        25
        1
        JavaScript
        MIT License
      • -
        security
        F
        license
        -
        quality
        An MCP server that enables LLMs to search YouTube, retrieve video information, and access video transcripts through standardized tools.
        Last updated -
        TypeScript
      • -
        security
        F
        license
        -
        quality
        An MCP server that enables searching and retrieving content from Confluence documentation systems, providing capabilities for both document searches and full page content retrieval.
        Last updated -
        Python
      • A
        security
        F
        license
        A
        quality
        Provides MCP access to the BangumiTV API, allowing users to retrieve and interact with anime, manga, music, and game information through natural language queries.
        Last updated -
        17
        1
        Python
        • Linux
        • Apple

      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/LokerL/douyu-mcp-py'

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