Agents Sdk Telegram
A Telegram weather bot based on the OpenAI Agents SDK that provides real-time weather information for global cities through natural language queries, integrating the Open-Meteo API and MCP protocol for data interaction.
rating : 2.5 points
downloads : 24
What is an MCP server?
An MCP server is a tool that allows external applications to interact with models through a specific protocol. In this project, the MCP server provides a tool called 'get_weather' that can obtain real-time weather information for any city in the world.How to use the MCP server?
You simply send a request to the MCP server, and it will call an external API (such as Open-Meteo) and return weather data. You can directly use these functions in the Telegram bot.Applicable scenarios
This MCP server is very suitable for applications or services that need to quickly obtain weather information. For example, weather forecast applications, travel planning assistants, etc.Main Features
Support multiple city queriesNo matter where you are, you can easily query the weather conditions of any city.
Real-time data updateThe MCP server regularly obtains the latest weather data from the Open-Meteo API.
Advantages and Limitations
Advantages
Simple to use, no complex settings required.
Open source and free, anyone can deploy their own version.
Integrates external APIs, powerful functionality without additional costs.
Limitations
Currently only supports weather query functionality.
Additional development and customization may be required for non-standard requirements.
How to Use
Install dependencies
Ensure that Python 3.11 or higher and the necessary dependency packages are installed in your environment.
Start the MCP server
Run the weather_mcp.py script to start the MCP server.
Test the tool
Try using the provided example commands to verify if the MCP server is working properly.
Usage Examples
Query the weather in UbudDemonstrate how to use the MCP server to query the weather in Ubud, Bali, Indonesia.
Query the weather in New YorkShow how to obtain the detailed weather information of New York City, USA.
Frequently Asked Questions
Does the MCP server require an API key?
How to stop the MCP server?
Can other functions be added to the MCP server?
Related Resources
MCP server source code
View the complete implementation of the MCP server.
Open-Meteo API documentation
Learn how to use the free weather data provided by Open-Meteo.
Featured MCP Services

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
85
4.3 points

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
140
4.5 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
1.7K
5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
829
4.3 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
6.7K
4.5 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
564
5 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
282
4.5 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
753
4.8 points