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.
开发工具 分类下的更多 MCP 服务器
JetBrains MCP Proxy Server
JetBrainsA model context protocol server to work with JetBrains IDEs: IntelliJ, PyCharm, WebStorm, etc. Also, works with Android Studio
Deepwiki MCP Server
regenrek📖 MCP server for fetch deepwiki.com and get latest knowledge in Cursor and other Code Editors
MCP-Bridge
SecretiveShellA middleware to provide an openAI compatible endpoint that can call MCP tools
Hello World MCP Server (Reference Extension)
anthropicsDesktop Extensions: One-click local MCP server installation in desktop apps
Test
x1xhlolFULL Augment Code, Claude Code, Cluely, CodeBuddy, Comet, Cursor, Devin AI, Junie, Kiro, Leap.new, Lovable, Manus, NotionAI, Orchids.app, Perplexity, Poke, Qoder, Replit, Same.dev, Trae, Traycer AI, VSCode Agent, Warp.dev, Windsurf, Xcode, Z.ai Code, Dia & v0. (And other Open Sou
评论