Weather MCP Server

Weather MCP Server

Provides current weather and multi-day forecasts for any city using the Open-Meteo API, with natural language city names and optional forecast duration.

Category
访问服务器

README

Weather MCP Server

An MCP server that exposes two tools — get_current_weather and get_forecast — backed by the free Open-Meteo API (no API key required). Built to be added to a Microsoft Copilot Studio agent as an MCP tool.

Files

  • server.py — the MCP server (FastMCP, Streamable HTTP transport)
  • requirements.txt — Python dependencies
  • Dockerfile — container image for deployment

1. Run it locally

pip install -r requirements.txt
python server.py

This starts a Streamable HTTP MCP server on http://0.0.0.0:8000/mcp (FastMCP's default path/port).

To sanity-check it without Copilot Studio, use the MCP Inspector:

npx @modelcontextprotocol/inspector

Point the Inspector at http://localhost:8000/mcp with transport "Streamable HTTP", then try calling get_current_weather with {"city": "Kigali"}.

Note: Copilot Studio's MCP connector needs a server reachable over the public internet via HTTPS, not localhost. Local runs are just for testing the tool logic before you deploy.

2. Deploy it somewhere public

Any host that can run a container and give you an HTTPS URL works. Azure Container Apps is a natural fit since you're already in the Microsoft ecosystem:

# from this folder
az login
az group create -n weather-mcp-rg -l eastus

az containerapp up \
  --name weather-mcp \
  --resource-group weather-mcp-rg \
  --location eastus \
  --source . \
  --target-port 8000 \
  --ingress external

az containerapp up builds the image from the Dockerfile, pushes it, and gives you back a public HTTPS URL, e.g. https://weather-mcp.<random>.eastus.azurecontainerapps.io.

Your MCP endpoint will be that URL + /mcp, e.g.:

https://weather-mcp.<random>.eastus.azurecontainerapps.io/mcp

(Any other host — Fly.io, Render, a VM, App Service — works the same way; you just need the container listening on port 8000 and reachable over HTTPS.)

3. Connect it to Copilot Studio

  1. In Copilot Studio, open your agent → Tools page → Add a tool.
  2. Choose Model Context Protocol.
  3. Give it a name (e.g. "Weather MCP") and description, and paste in your server's URL (the /mcp endpoint from step 2).
  4. Save. Copilot Studio will connect and list get_current_weather and get_forecast under that tool's Tools/Resources section.
  5. Go to Topics, create a topic (e.g. "Get weather") with trigger phrases like "what's the weather in X", add a node → Add a tool, and select the MCP tool.
  6. Test in the chat pane: "what's the weather in Kigali right now?"

Notes

  • get_forecast takes an optional days parameter (1–7, default 3).
  • The geocoding step means users can type natural city names ("Rome", "Kigali", "Rome, Italy") rather than coordinates.
  • If you want more detail (hourly data, weather alerts, historical data), Open-Meteo supports all of that — the get_forecast function is a good place to extend.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选