mcp-server

mcp-server

3.3

This is a Model Control Protocol (MCP) server project designed to interact with big data platforms.

The MCP server project is a robust solution for interacting with big data platforms, offering services such as weather data queries and big data metrics uploads. It provides a comprehensive interface for retrieving weather forecasts and alerts, as well as uploading various metrics to a big data platform. The server supports adding measurement point data with different time period types, automatically generating data in the required format based on user parameters. This project is ideal for organizations needing to integrate weather data and big data metrics into their systems efficiently.

Features

  • Weather Data Query Service: Retrieve weather forecasts and alerts for US states.
  • Big Data Metrics Upload Service: Interact with big data platforms to upload various metrics.
  • Measurement Point Data Addition Service: Add measurement point data to big data platforms, supporting different time period types.
  • Automatic Data Formatting: Automatically generate data in the required format based on user parameters.
  • Comprehensive Time Period Support: Supports real-time, minute, hour, day, month, and year data uploads.

Usage with Different Platforms

add_index_data

python
add_index_data(
    system_code="PARK3853_EMS01",
    device_code="CEC_CEC01",
    index_code="FfuelIntD",
    period_type="DAY",
    time_period="2023-01-01",
    data_value=188.8
)

add_multiple_dates

python
add_index_data(
    system_code="PARK3853_EMS01",
    device_code="CEC_CEC01",
    index_code="FfuelIntD",
    period_type="DAY",
    time_period="2023-01-01,2023-01-02,2023-01-03",
    data_value=188.8
)

add_date_range

python
add_index_data(
    system_code="PARK3853_EMS01",
    device_code="CEC_CEC01",
    index_code="FfuelIntD",
    period_type="DAY",
    time_period="2023-01-01~2023-01-10",
    data_value=188.8
)

add_hourly_data

python
add_index_data(
    system_code="PARK3853_EMS01",
    device_code="CEC_CEC01",
    index_code="FfuelIntH",
    period_type="HOUR",
    time_period="2023-01-01 00~2023-01-01 23",
    data_value=45.6
)