Skip to main content

MCP server for news services with RSS feed support

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 Distribution

pozansky_news_server-0.3.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

pozansky_news_server-0.3.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pozansky_news_server-0.3.0.tar.gz.

File metadata

  • Download URL: pozansky_news_server-0.3.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for pozansky_news_server-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1c08fb5006b0c65733de204b0877706165be9492a177eeb7a8d523260935ec1b
MD5 cd1ae5ef40863e0dc16dd54ebcad3f91
BLAKE2b-256 3d3075e4d41d221eb602d5592ed711fe9c7356661504647ae31e519f236ca860

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pozansky_news_server-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40d781e351c6ce1e32f4cc4d08f263e94d894549fe030e435c29b1f246e27c12
MD5 c2be5de708b5be18f759956ad4ded0d8
BLAKE2b-256 eb7f312d110db47199c10f2b4750f409db0efb1ddc83e933ef16eda9dac8c5e5

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