Token导航 LogoToken导航TokenDH.com
MCP Newsbroadcast logo
AI代理未说明官方级别未说明来源级核验

MCP Newsbroadcast

MCP Server

新闻联播MCP服务是一个用于获取指定日期新闻联播文字稿的服务,支持MCP协议和HTTP API两种调用方式。

工具数

1

提示词数

0

GitHub Stars

0

资源数

0
JavaScriptAPI集成本地部署

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Ang-eiz

提供方

Ang-eiz

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

News broadcast MCP service

Project Introduction

The news broadcast MCP service is a service used to obtain news broadcast scripts on a specified date. It supports MCP protocol and HTTP API calling methods.

Quick Start

Install dependencies

npm install

Start service

production environment

npm start

Development environment (supports hot reloading)

npm run dev

The service will be available http://localhost:8000 Start up.

API documentation

health check

GET /health

Response example:

{
  "status": "ok",
  "message": "新闻联播MCP服务运行正常"
}

Get news broadcast script (HTTP API)

POST /get_news

Request parameters:

ParameterTypeRequiredDescription
DatestringYesDate, formatted as YYYYMMDD, for example 20231231

Request example:

curl -X POST -H "Content-Type: application/json" -d '{"date":"20231231"}' http://localhost:8000/get_news

Response example:

{
  "date": "20231231",
  "content": "新闻联播文字稿内容..."
}

MCP protocol support

MCP Service Description

GET /mcp/describe

Response example:

{
  "name": "news_联播",
  "version": "1.0.0",
  "description": "获取指定日期的新闻联播文字稿",
  "tools": [
    {
      "name": "get_news",
      "description": "获取指定日期的新闻联播文字稿",
      "parameters": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "日期,格式为YYYYMMDD,例如20231231"
          }
        },
        "required": ["date"]
      }
    }
  ]
}

MCP service call

POST /mcp/call

Request parameters:

ParameterTypeRequiredDescription
ToolstringYesTool name, fixed as get_news
ParamsobjectYesTool parameters, including date Fields

Request example:

curl -X POST -H "Content-Type: application/json" -d '{"tool":"get_news","params":{"date":"20231231"}}' http://localhost:8000/mcp/call

Response example:

{
  "date": "20231231",
  "content": "新闻联播文字稿内容..."
}

project structure

mcp-newsbroadcast/
├── mcp_server.js          # 主服务文件
├── package.json           # 项目配置文件
├── package-lock.json      # 依赖锁定文件
├── ServerConfig.json      # 服务配置文件
├── LICENSE                # 许可证文件
└── README.md              # 项目说明文档

Service Configuration

Service configuration file ServerConfig.json Contains detailed configuration information for MCP services, while the outer layer only includes mcpServers The field meets the service configuration requirements.

ServerConfig. json content:

{
  "mcpServers": {
    "default": {
      "name": "news_联播",
      "version": "1.0.0",
      "description": "获取指定日期的新闻联播文字稿",
      "command": "npx",
      "args": ["news-mcp-service@latest"],
      "tools": [
        {
          "name": "get_news",
          "description": "获取指定日期的新闻联播文字稿",
          "parameters": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string",
                "description": "日期,格式为YYYYMMDD,例如20231231"
              }
            },
            "required": ["date"]
          }
        }
      ]
    }
  }
}

Dependency Explanation

DependencyVersionPurpose
Express^ 4.18.2Web Framework for Building API Services
Axios^ 1.6.0HTTP client, used to request news broadcast data
Cheerio^ 1.0.0-rc.12HTML parsing library for extracting news content
Nodemon^ 3.0.1Development tool for hot reload services

license

MIT License

目录标签

目录标签

JavaScriptAPI集成本地部署新闻联播文字稿获取MCP协议HTTPAPI

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

1

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP