Juhe News MCP Server
一个提供新闻头条信息功能的模型上下文协议(Model Context Protocol)服务器。该服务器使大型语言模型(LLMs)能够获取当前最新的热点新闻头条(包括:推荐、国内、科技、体育等类型)及详细内容信息。
Components
Tools
服务器实现了两个工具:
- get_news_list: 根据新闻类型获取今日热点新闻头条
- 需要传入 "type"(新闻类型)作为选填的字符串参数。
- get_news_content: 根据新闻类型获取今日热点新闻头条
- 需要传入 "uniquekey"(新闻id)作为必须的字符串参数。
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.
Using PIP
Alternatively you can install jnews-mcp-server via pip:
After installation, you can run it as a script using:
Configuration
Environment Variables
JUHE_NEWS_API_KEY
: 聚合数据的新闻头条API密钥。获取:https://www.juhe.cn/docs/api/id/235
Claude Desktop
- On MacOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
- On Windows:
%APPDATA%/Claude/claude_desktop_config.json
Debugging
You can use the MCP inspector to debug the server. For uvx installations:
Or if you've installed the package in a specific directory or are developing on it:
Examples of Questions for Cline
- "今日有哪些热点新闻?"
- "当前体育热点头条?"
- "第5条新闻的详细内容"
This server cannot be installed
A Model Context Protocol server that enables large language models to access the latest trending news headlines and detailed content across various categories including recommended, domestic, technology, and sports news.