- Home
- MCP servers
- Online News
Online News
- javascript
0
GitHub Stars
javascript
Language
6 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
You can run an MCP server that provides online news tools, enabling real-time hot topic queries and keyword extraction through standardized MCP interfaces. This server is useful for building chat assistants, dashboards, or automated workflows that need up-to-date news insights.
How to use
To use this MCP server, run it with an MCP client and provide your API key if required. You can connect via HTTP for remote access or start a local stdio instance to run the server directly in your environment. Once connected, you can invoke the available tools to fetch real-time headlines or extract keywords from news content. Use the tools to enrich conversations, build summaries, or power search features.
Practical usage patterns: - Start the server via HTTP transport and connect from your MCP client using the provided URL. - Start a local stdio instance to run the MCP server in your own environment and reference it from your client. - Call the tool aa for real-time hotspot news queries. - Call the tool bb to extract keywords from news content. - Manage your API key securely and rotate it as needed.
How to install
Prerequisites: Node.js 22 or above.
Step 1: Install Node.js 22+ if it is not already installed. - On Windows, download the installer from the official Node.js site and run it. - On macOS, use a package manager or the installer. - On Linux, use your distribution’s package manager to install Node.js 22 or newer.
Step 2: Choose your startup method and prepare the MCP config snippet corresponding to your method.
{
"mcpServers": {
"xiaobenyang-mcp-http": {
"env": {
"XBY_APIKEY": "你的实际apikey"
},
"type": "http",
"url": "https://mcp.xiaobenyang.com/1804087353852938/mcp",
"args": []
}
}
}
{
"mcpServers": {
"xiaobenyang-mcp-stdio": {
"args": [
"xiaobenyang-mcp"
],
"command": "npx",
"env": {
"XBY_APIKEY": "你的实际apikey",
"MCP_ID": "1804087353852938"
}
}
}
}
Step 3: Start the HTTP transported server or the stdio server using your chosen config. Follow the appropriate start method below.
Additional sections
Configuration notes: - The HTTP transport uses a remote URL to expose the MCP endpoint. - The stdio transport runs locally and uses the npx command to start the MCP server process. Environment variables shown include XBY_APIKEY for API access and MCP_ID to identify the MCP instance.
Security: - Treat your API key as a secret. - Use role-based access in clients that can call the tools aa and bb. - Rotate API keys periodically and invalidate old keys.
Troubleshooting: - If you cannot connect via HTTP, verify the URL is reachable and that any required firewall rules allow outbound traffic. - If starting a stdio server, ensure Node.js is installed and that the CLI tool (npx) can download the package without network restrictions.
Available tools
aa
Real-time hotspot news query tool that retrieves current trending topics and headlines.
bb
News content keyword extraction tool that analyzes articles to extract key terms.