Weather Bot with OpenAI Agents SDK
@esakrissa
Weather Bot with OpenAI Agents SDK について
Telegram bot using OpenAI Agents SDK and MCP Server.
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"agents-sdk-telegram": {
"command": "python",
"args": [
"-m",
"venv",
"venv"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is Weather Bot with OpenAI Agents SDK?
A Telegram bot that provides real-time weather information using OpenAI's Agents SDK and Model Context Protocol (MCP). It processes natural language queries to fetch current weather conditions for cities worldwide, powered by GPT-4o-mini and the Open-Meteo API. Designed for users who want conversational weather updates through Telegram.
How to use Weather Bot with OpenAI Agents SDK?
Clone the repository, set up a Python 3.11+ virtual environment, install dependencies, and create a .env file with your Telegram bot token and OpenAI API key. Run python main.py then send a message like "what's the weather in Ubud?" to the bot on Telegram. The bot replies with temperature, conditions, and wind speed.
Key features of Weather Bot with OpenAI Agents SDK
- Real-time weather via Open-Meteo API (no key required)
- Natural language processing with GPT-4o-mini
- Simple MCP server for weather data retrieval
- Telegram-native message formatting
- Easy-to-use interface with plain text queries
Use cases of Weather Bot with OpenAI Agents SDK
- Quickly check current weather in any city via Telegram
- Integrate weather lookups into a conversational AI agent
- Demonstrate MCP server integration with OpenAI Agents SDK
- Provide weather information without external API keys (Open-Meteo)
FAQ from Weather Bot with OpenAI Agents SDK
Does it require an API key for weather data?
No. The bot uses the Open-Meteo API, which does not require an API key.
What are the runtime requirements?
Python 3.11+, an OpenAI API key (for GPT-4o-mini), and a Telegram bot token from BotFather.
Where does the bot run?
Locally on your machine or server after installation. The MCP server runs as part of the bot process.
How does the bot understand natural language?
It uses OpenAI's Agents SDK with the GPT-4o-mini model to process queries and generate responses.
What transport or authentication is used?
The bot uses the Telegram API (HTTPS) and the OpenAI API (HTTPS with key). The MCP server runs locally without external transport.
「開発者ツール」の他のコンテンツ
Unity MCP (Server + Plugin)
IvanMurzakAI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for fr
JetBrains MCP Proxy Server
JetBrainsA model context protocol server to work with JetBrains IDEs: IntelliJ, PyCharm, WebStorm, etc. Also, works with Android Studio
MCP Containers
metorialConnect any AI model to 1200+ integrations (MCP, CLI, API)
sentry-mcp
getsentryAn MCP server for interacting with Sentry via LLMs.
Burp Suite MCP Server Extension
PortSwiggerMCP Server for Burp
コメント