Back to MCP directory
publicPublicdnsLocal runtime

MCP Gnews

一个MCP服务器,用于提供互联网新闻搜索功能

article

README

🚀 使用说明

本部分将指导您如何配置MCP服务器,使其能够正常运行。您只需将以下配置添加到您的MCP配置文件中即可。

💻 使用示例

基础用法

{
  "mcpServers": {
    "gnews_search": {
      "command": "uv",
      "args": [
        "--directory",
        "%USERPROFILE%/Documents/GitHub/mcp-gnews",
        "run",
        "python",
        "main.py"
      ]
    }
  }
}
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client