Skip to main content

news-server

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pozansky_news_server-1.6.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pozansky_news_server-1.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pozansky_news_server-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce1f44ebacc0f2181a2803447e2ef2050316eac3ed4e1c776918524501aa8a11
MD5 3af7406606ecd79c40a71924ef05e04f
BLAKE2b-256 aed126bfb841b2bb4ffdef6af7b2d5cd5d768fdc027dc291fee022450f7a5d3d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page