Token导航 LogoToken导航TokenDH.com
Weatherapi Com MCP Server logo
运维云端stdio官方级别未说明来源级核验

Weatherapi Com MCP Server

MCP Server

用于访问Weatherapi Com API的MCP服务器,提供实时天气、天气预报、天文数据等多种天气相关功能。

工具数

11

提示词数

0

GitHub Stars

0

资源数

0
位置天气气象数据PythonClaudeAPI集成Claude DesktopClaudeCursor

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

BACH-AI-Tools

提供方

BACH-AI-Tools

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install bach-weatherapi_com

详细介绍

Weatherapi Com MCP Server

English |Simplified Chinese| Traditional Chinese

MCP server used to access WeatherAPI Com API.

🚀 Quickly experience using the EMCP platform

EMCP It is a powerful MCP server management platform that allows you to quickly use various MCP servers without manual configuration!

Quick Start:

  1. 🌐 visit EMCP platform
  2. 📝 Register and log in to your account
  3. 🎯 enter MCP SquareBrowse all available MCP servers
  4. 🔍 Search or find this server(bach-weatherapi_com
  5. 🎉 click Install MCP button
  6. ✅ Done! Can be used in your application

Advantages of the EMCP platform:

  • Zero configurationNo need to manually edit configuration files
  • 🎨 Visual managementEasily manage all MCP servers through a graphical interface
  • 🔐 safe and reliableUnified management of API keys and authentication information
  • 🚀 One-click installationMCP Square offers a wide range of server options
  • 📊 Use statisticsReal time viewing of service invocation status

Visit Now EMCP platform Start your MCP journey!

______________________________________________________________________

Introduction

This is an MCP server used to access the WeatherAPI Com API.

  • PyPI package name: bach-weatherapi_com
  • version: 1.0.0
  • transmission protocol: stdio

install

Install from PyPI:

pip install bach-weatherapi_com

Install from source code:

pip install -e .

run

Method 1: Use UVX (recommended, no installation required)

# 运行(uvx 会自动安装并运行)
uvx --from bach-weatherapi_com bach_weatherapi_com

# 或指定版本
uvx --from bach-weatherapi_com@latest bach_weatherapi_com

Method 2: Direct Run (Development Mode)

python server.py

Method 3: Run as a command after installation

# 安装
pip install bach-weatherapi_com

# 运行(命令名使用下划线)
bach_weatherapi_com

configuration

API certification

This API requires authentication. Please set environment variables:

export API_KEY="your_api_key_here"

environment variable

Variable NameDescriptionRequired
API_KEYAPI KeyYes
PORTNot applicableNo
HOSTNot applicableNo

Use in cursor

Edit cursor MCP configuration file ~/.cursor/mcp.json:

{
  "mcpServers": {
    "bach-weatherapi_com": {
      "command": "uvx",
      "args": ["--from", "bach-weatherapi_com", "bach_weatherapi_com"],
      "env": {
        "API_KEY": "your_api_key_here"
      }
    }
  }
}

Using Claude Desktop

Edit Claude Desktop configuration file claude_desktop_config.json:

{
  "mcpServers": {
    "bach-weatherapi_com": {
      "command": "uvx",
      "args": ["--from", "bach-weatherapi_com", "bach_weatherapi_com"],
      "env": {
        "API_KEY": "your_api_key_here"
      }
    }
  }
}

Available tools

This server provides the following tools:

alerts_api

Alerts API returns alerts and warnings issued by government agencies (USA, UK, Europe and Rest of the World) as an array if available for the location provided.

endpoint: GET /alerts.json

parameter:

  • q (string) *necessary*: Example value: london

______________________________________________________________________

future_weather_api

Future weather API method returns weather in a 3 hourly interval in future for a date between 14 days and 300 days from today in the future.

endpoint: GET /future.json

parameter:

  • q (string) *necessary*: Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:\ e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1
  • lang (string): Returns 'condition:text' field in API in the desired language
  • dt (string) *necessary*: 'dt' should be between 14 days and 300 days from today in the future in yyyy-MM-dd format (i.e. dt=2023-01-01)

______________________________________________________________________

realtime_weather_api

Current weather or realtime weather API method allows a user to get up to date current weather information in json and xml. The data is returned as a Current Object.

endpoint: GET /current.json

parameter:

  • q (string) *necessary*: Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:\ e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1

______________________________________________________________________

sports_api

Sports API method allows a user to get listing of all upcoming sports events for football, cricket and golf in json.

endpoint: GET /sports.json

parameter:

  • q (string) *necessary*: Example value: London

______________________________________________________________________

astronomy_api

Astronomy API method allows a user to get up to date information for sunrise, sunset, moonrise, moonset, moon phase and illumination in json.

endpoint: GET /astronomy.json

parameter:

  • q (string) *necessary*: Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:\ e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1
  • dt (string): Date

______________________________________________________________________

searchautocomplete_api

Search or Autocomplete API returns matching cities and towns.

endpoint: GET /search.json

parameter:

  • q (string) *necessary*: Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:\ e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1

______________________________________________________________________

marine_weather_api

Marine weather API returns upto next 7 day marine and sailing weather forecast and tide data for global marine/sea points.

endpoint: GET /marine.json

parameter:

  • q (string) *necessary*: Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:\ e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1
  • days (number): Example value: 1
  • lang (string): Example value:

______________________________________________________________________

history_weather_api

History weather API method returns historical weather for a date on or after 1st Jan, 2010 (depending upon subscription level) as json.

endpoint: GET /history.json

parameter:

  • q (string) *necessary*: Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:\ e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1
  • lang (string): Returns 'condition:text' field in API in the desired language
  • hour (number): Restricting history output to a specific hour in a given day.
  • dt (string) *necessary*: For history API 'dt' should be on or after 1st Jan, 2010 in yyyy-MM-dd format
  • end_dt (string): Restrict date output for History API method. Should be on or after 1st Jan, 2010. Make sure end_dt is equal to or greater than 'dt'.

______________________________________________________________________

forecast_weather_api

Forecast weather API method returns upto next 14 day weather forecast and weather alert as json. It contains astronomy data, day weather forecast and hourly interval weather information for a given city.

endpoint: GET /forecast.json

parameter:

  • q (string) *necessary*: Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:\ e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1
  • days (number): Number of days of forecast required.
  • lang (string): Returns 'condition:text' field in API in the desired language
  • dt (string): If passing 'dt', it should be between today and next 10 day in yyyy-MM-dd format.

______________________________________________________________________

ip_lookup_api

IP Lookup API method allows a user to get up to date information for an IP address in json.

endpoint: GET /ip.json

parameter:

  • q (string) *necessary*: e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1

______________________________________________________________________

time_zone_api

Time Zone API method allows a user to get up to date time zone and local time information in json.

endpoint: GET /timezone.json

parameter:

  • q (string) *necessary*: Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:\ e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1

______________________________________________________________________

tech stack

  • transmission protocol: stdio
  • HTTP client: httpx

license

MIT License - see details LICENSE Document.

development

This server is composed of API-to-MCP Tool generation.

Version: 1.0.0

目录标签

目录标签

位置天气气象数据PythonClaudeAPI集成天气服务本地部署服务器管理

支持客户端

Claude DesktopClaudeCursor

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

api-key

部署方式(deploymentType,部署类型)

remote-capable

工具数量(toolCount,工具数)

11

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdioapi-keyremote-capable

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP