Get the FREE Ultimate OpenClaw Setup Guide →

MCP -Cybersecurity-News

Implementazione di un server MCP integrabile con Claude Desktop che consente di accedere alle ultime notizie sulla cybersecurity da vari siti web.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio forgeai-it-mcp-server-cybersecurity-news uv --directory /percorso/completo/al/tuo/progetto/MCP-Server-Cybersecurity-News run main.py

How to use

This MCP server provides a tool named get_news that fetches the latest cybersecurity news from configured sources. Once deployed and connected to Claude Desktop via MCP, you can invoke get_news to retrieve a concise set of recent articles. The server validates that the requested source is supported, downloads the page content, and uses Beautiful Soup to extract the title, link, and description for the most recent five articles. The returned text is formatted for easy presentation to an AI model, enabling fast summarization or extraction by Claude.

To use it effectively, ensure the sources you want are supported by the server. The tool is designed to be easily extendable so you can add additional news sources by updating the source mapping in the code. When calling get_news, you typically provide the source key (e.g., a site name) and the function will return the structured news data suitable for further processing by Claude or other MCP clients.

How to install

Prerequisites:

  • Python 3.9+
  • uv package manager installed (recommended)
  • Claude Desktop for testing integration (optional)

Install steps:

  1. Install uv (if not already installed): macOS/Linux: curl -LsSf https://astral.sh/uv/install.sh | sh Windows: powershell -ExecutionPolicy ByPass -c " irm https://astral.sh/uv/install.ps1 | iex"

  2. Clone the repository: git clone https://github.com/forgeai-it/MCP-Server-Cybersecurity-News.git cd MCP-Server-Cybersecurity-News

  3. Create a virtual environment and install dependencies: uv venv

    Activate the environment

    macOS/Linux

    source .venv/bin/activate

    Windows

    .venv\Scripts\activate

    uv add "mcp[cli]" httpx bs4

  4. Run the server (example with uv): uv run main.py

  5. Integrate with Claude Desktop (example configuration provided in README):

    • Open Claude Desktop
    • Settings -> Developer Tools -> Edit Config
    • Add or update the mcpServers entry to point to your uv executable and project directory as shown in the integration example.

Additional notes

Notes and tips:

  • Ensure your Python environment has the required libraries (httpx, beautifulsoup4) installed via uv add.
  • If you modify the sources to support additional news sites, update the internal mapping accordingly and handle parsing logic per site.
  • When testing with Claude Desktop, verify that the path to uv and the project directory are correctly specified in the configuration file.
  • Consider adding a caching mechanism or request throttling if you plan to poll sources frequently to reduce load on target websites.

Related MCP Servers

Sponsor this space

Reach thousands of developers