Skip to main content

News MCP Server

基于MCP协议的新闻获取服务器,支持热点新闻获取和新闻搜索功能。

功能特性

  • 🔥 获取热点新闻(多个分类)
  • 🔍 搜索新闻
  • 🌐 RESTful API 接口
  • 🐳 Docker 容器化部署
  • 📊 健康检查

API接口

健康检查

GET /health

获取新闻分类

GET /news/categories

获取热点新闻

GET /news/hot?category=general&limit=10

搜索新闻

GET /news/search?keyword=科技&limit=10

MCP接口

/mcp

本地测试

  1. 安装依赖:
pip install -r requirements.txt
运行测试:

bash
python src/mcp_server.py
启动服务器:

bash
python app.py

Metadata

Release files for pozansky-news-server 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pozansky-news-server 1.6.0
File Interpreter ABI Platform
pozansky_news_server-1.6.0-py3-none-any.whl Python 3 none any Details

Release files / pozansky_news_server-1.6.0-py3-none-any.whl

Download URL pozansky_news_server-1.6.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce1f44ebacc0f2181a2803447e2ef2050316eac3ed4e1c776918524501aa8a11
BLAKE2b-256 checksum
How to use checksums
aed126bfb841b2bb4ffdef6af7b2d5cd5d768fdc027dc291fee022450f7a5d3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Security for pozansky-news-server 1.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page