Trading Economics Calendar MCP Server

Trading Economics Calendar MCP Server

A Model Context Protocol server that provides access to economic calendar events from Trading Economics, allowing filtering by country, importance, and date range.

Category
Visit Server

README

Trading Economics Calendar MCP Server

A Model Context Protocol (MCP) server that provides access to economic calendar events from Trading Economics. This server allows you to fetch economic events with various filters including countries, importance levels, and date ranges.

Features

  • 📅 Fetch economic calendar events
  • 🌍 Filter by major countries
  • 📊 Filter by importance level (low, medium, high)
  • 📆 Date range filtering
  • 🔍 High-impact events filtering
  • 🏛️ Country-specific event queries

Installation

From PyPI (when published)

pip install trading-economics-calendar-mcp

From Source

git clone <repository-url>
cd trading-economics-calendar-mcp
pip install -e .

Usage

As MCP Server

Start the server:

trading-economics-mcp

Available Tools

1. Get Economic Events

get_economic_events(
    countries=["United States", "Germany"],
    importance="high",
    start_date="2024-01-01",
    end_date="2024-01-31"
)

2. Get Today's Events

get_today_economic_events(
    countries=["United States"],
    importance="medium"
)

3. Get This Week's Events

get_week_economic_events(
    countries=["Japan", "United Kingdom"],
    importance="high"
)

4. Get Major Countries

get_major_countries()
# Returns: {"united_states": "United States", "germany": "Germany", ...}

5. Get Importance Levels

get_importance_levels()
# Returns: {"low": 1, "medium": 2, "high": 3}

6. Get High-Impact Events

get_high_impact_events(
    countries=["United States", "China"],
    start_date="2024-01-01",
    end_date="2024-01-31"
)

7. Get Events by Country

get_events_by_country(
    country="United States",
    start_date="2024-01-01",
    end_date="2024-01-07",
    importance="high"
)

Supported Countries

The server supports filtering by major economies:

  • United States
  • China
  • Japan
  • Germany
  • United Kingdom
  • France
  • Italy
  • Canada
  • Australia
  • Brazil
  • India
  • Russia
  • South Korea
  • Spain
  • Mexico
  • Netherlands
  • Switzerland
  • Belgium
  • Sweden
  • Austria

Response Format

Each economic event returns the following structure:

{
    "date": "2024-01-15",
    "time": "08:30",
    "country": "United States",
    "event": "Retail Sales",
    "importance": 3,
    "actual": "0.6%",
    "forecast": "0.4%",
    "previous": "0.3%"
}

Configuration

The server uses the following default settings:

  • Base URL: https://tradingeconomics.com
  • Request timeout: 30 seconds
  • User agent: Modern browser string

Error Handling

The server includes comprehensive error handling:

  • Network timeouts
  • Invalid response parsing
  • Missing data fields
  • Rate limiting (when applicable)

Development

Setup Development Environment

git clone <repository-url>
cd trading-economics-calendar-mcp
pip install -e ".[dev]"

Run Tests

pytest

Code Formatting

black trading_economics_calendar/
flake8 trading_economics_calendar/
mypy trading_economics_calendar/

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Run the test suite
  6. Submit a pull request

License

MIT License - see LICENSE file for details.

Disclaimer

This tool fetches publicly available data from Trading Economics. Please respect their terms of service and rate limits. This tool is for educational and research purposes.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured