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

Juhe News MCP Server

MCP Server

一个提供新闻头条信息功能的模型上下文协议服务器,使大型语言模型能够获取当前最新的热点新闻头条及详细内容信息。

工具数

2

提示词数

0

GitHub Stars

0

资源数

0
新闻聚合大型语言模型PythonClaudeClaude DesktopClaudeCline

安装说明

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

作者 / 组织

juhemcp

提供方

juhemcp

最后核验

2026/5/17 20:26

运行时

Python

快速接入

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

命令预览

uvx jnews-mcp-server

详细介绍

Juhe News MCP Server

一个提供新闻头条信息功能的模型上下文协议(Model Context Protocol)服务器。该服务器使大型语言模型(LLMs)能够获取当前最新的热点新闻头条(包括:推荐、国内、科技、体育等类型)及详细内容信息。

Components

Tools

服务器实现了两个工具:

  • get_news_list: 根据新闻类型获取今日热点新闻头条

- 需要传入 "type"(新闻类型)作为选填的字符串参数。

async def get_news_list(type: str = "top", page: int = 1, page_size: int = 20) -> list[types.TextContent | types.ImageContent | types.EmbeddedResource]:
  • get_news_content: 根据新闻类型获取今日热点新闻头条

- 需要传入 "uniquekey"(新闻id)作为必须的字符串参数。

async def get_news_content(uniquekey: str) -> list[types.TextContent | types.ImageContent | types.EmbeddedResource]:

Install

This server requires Python 3.10 or higher. Install dependencies using uv (recommended) or pip

Using uv (recommended)

When using uv no specific installation is needed. We will use uvx to directly run jnews-mcp-server.

uvx jnews-mcp-server

Using PIP

Alternatively you can install jnews-mcp-server via pip:

pip install jnews-mcp-server

After installation, you can run it as a script using:

python -m jnews_mcp_server

Configuration

Environment Variables

JUHE_NEWS_API_KEY: 聚合数据的新闻头条API密钥。获取:https://www.juhe.cn/docs/api/id/235

JUHE_NEWS_API_KEY=your_api_key

Claude Desktop

  • On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • On Windows: %APPDATA%/Claude/claude_desktop_config.json

Using uvx

  "mcpServers": {
    "jnews-mcp-server": {
      "command": "uvx",
      "args": [
        "jnews-mcp-server"
      ],
      "env": {
        "JUHE_NEWS_API_KEY": "your_api_key"
      }
    }
  }

Using pip installation

  "mcpServers": {
    "jnews-mcp-server": {
      "command": "python",
      "args": [
        "-m",
        "jnews_mcp_server"
      ],
      "env": {
        "JUHE_NEWS_API_KEY": "your_api_key"
      }
    }
  }

Debugging

You can use the MCP inspector to debug the server. For uvx installations:

npx @modelcontextprotocol/inspector uvx jnews-mcp-server 

Or if you've installed the package in a specific directory or are developing on it:

cd path/to/servers/src/jnews-mcp-server
npx @modelcontextprotocol/inspector uv run jnews-mcp-server

Examples of Questions for Cline

  1. "今日有哪些热点新闻?"
  2. "当前体育热点头条?"
  3. "第5条新闻的详细内容"

目录标签

目录标签

新闻聚合大型语言模型PythonClaude本地部署头条服务模型上下文协议

支持客户端

Claude DesktopClaudeCline

接入字段

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

stdio

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

none

运行时(runtime,运行环境)

Python

部署方式(deploymentType,部署类型)

remote-capable

工具数量(toolCount,工具数)

2

资源数量(resourceCount,资源数)

0

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

0

权限和风险

stdiononeremote-capable

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

安装前确认

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

来源信息

继续浏览同类 MCP