Tariff-News-MCP-Server

Tariff-News-MCP-Server

0

Tariff News MCP Server is a specialized server designed to provide AI agents with access to real-time tariff-related news. It features dual transport support and integrates with DuckDuckGo to offer up-to-date news retrieval.

Tariff News MCP Server

A specialized server for retrieving and analyzing tariff-related news using the Machine Conversation Protocol (MCP).

Overview

The Tariff News MCP Server provides a robust interface for AI agents to access up-to-date tariff news and reactions. It supports both stdio and Server-Sent Events (SSE) transport methods, making it versatile for different integration scenarios.

Features

  • Dual transport support (stdio and SSE)
  • Specialized get_tariff_reaction_news tool for retrieving tariff-related news
  • Integration with DuckDuckGo search for current news retrieval
  • Configurable time limits for news searches

Installation

Clone the repository and install dependencies:

git clone https://github.com/shanscar/Tariff-News-MCP-Server.git
cd Tariff-News-MCP-Server
pip install -r requirements.txt
pip install -e .

Usage

Running with stdio transport (default)

python -m tariff_news_server.server

Running with SSE transport

python -m tariff_news_server.server --transport sse

Configuration

Add the following to your mcp_settings.json file:

"mcpServers": {
  "tariff-news-server": {
    "command": "python",
    "args": [
      "-m",
      "tariff_news_server.server"
    ],
    "env": {},
    "disabled": false,
    "alwaysAllow": []
  }
}

Architecture

The server follows a structured workflow:

  1. Receives tool requests from MCP clients
  2. Processes requests through the appropriate transport layer
  3. Executes the requested tool function (e.g., get_tariff_reaction_news)
  4. Queries DuckDuckGo for relevant news articles
  5. Processes and formats the results
  6. Returns structured data to the client

Solution Diagram

MCP solution diagram

Development Stack

  • Language: Python
  • IDE: VS Code with Roo Code
  • Framework: MCP Python SDK
  • AI Integration: Google Gemini 2.5 Pro
  • Search Engine: DuckDuckGo News Service

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.