Life Assistant MCP Server
Life Assistant MCP Server (Pequeña caja de herramientas de asistente de vida)
Un servidor MCP basado en el framework HelloAgents que integra tres capacidades: consulta meteorológica + noticias de tendencias + procesamiento de texto en una pequeña caja de herramientas. Todo usando APIs públicas sin clave, con solo 96 líneas de código, simple y sin complicaciones.
Funcionalidades
🌤️ Consulta meteorológica: soporta el clima en tiempo real de 12 ciudades principales de China (wttr.in, sin clave)
🔥 Noticias de tendencias: Lista de tendencias de Toutiao / Búsqueda popular de Baidu TOP10
🔍 Búsqueda de noticias: busca las últimas noticias por palabra clave (Bing News RSS, sin clave)
✂️ Herramientas de texto: invertir, contar palabras, convertir a mayúsculas, convertir a minúsculas
Related MCP server: weather
Instalación
pip install hello-agents requestsInstrucciones de uso
Ejecución directa (transporte HTTP, puerto 8081 por defecto)
python server.pyTransporte stdio (para uso local en Claude Desktop / HelloAgents)
python server.py --stdioUso en Claude Desktop
Edita claude_desktop_config.json:
{
"mcpServers": {
"life-assistant": {
"command": "python",
"args": ["/path/to/server.py", "--stdio"]
}
}
}Uso en HelloAgents
from hello_agents import SimpleAgent, HelloAgentsLLM
from hello_agents.tools import MCPTool
agent = SimpleAgent(name="生活助手", llm=HelloAgentsLLM())
tool = MCPTool(server_command=["python", "server.py", "--stdio"])
agent.add_tool(tool)
response = agent.run("北京今天天气怎么样?顺便看看今天有什么热搜")Ejecutar el script de demostración
El repositorio incluye una demostración completa (SimpleAgent + caja de herramientas: consultar clima → ver tendencias → invertir texto):
python examples/demo_agent.pyHerramientas de la API
Herramienta | Descripción | Parámetros |
| Obtener el clima en tiempo real |
|
| Listar ciudades soportadas | Ninguno |
| Tendencias TOP10 |
|
| Buscar noticias por palabra clave |
|
| Invertir texto |
|
| Contar palabras |
|
| Convertir mayúsculas/minúsculas |
|
| Información del servidor | Ninguno |
Ejemplos
get_weather
{"city": "北京", "temperature": 23.0, "condition": "Patchy rain nearby", "humidity": "85", "wind_kmh": 1.1, "timestamp": "2026-08-18 09:58:21"}get_hot_news
[{"rank": 1, "title": "天安门下半旗悼念朱镕基同志", "heat": "9733617"}, ...]search_news
[{"title": "从DeepSeek到"人工智能+":中美AI竞赛究竟在比什么?", "url": "https://...", "date": "Sun, 02 Aug 2026"}, ...]Fuentes de datos (todas sin clave)
Clima: https://wttr.in
Tendencias: https://www.toutiao.com/hot-event/hot-board , https://top.baidu.com
Noticias: https://www.bing.com/news
Ciudades soportadas
Pekín, Shanghái, Cantón, Shenzhen, Hangzhou, Chengdu, Chongqing, Wuhan, Xi'an, Nankín, Tianjin, Suzhou
También admite nombres de ciudades en inglés para consultar cualquier ciudad del mundo.
Licencia
MIT License
This server cannot be deployed
Maintenance
Related MCP Connectors
China MCP gateway hosting HTTP APIs for Doubao/Tongyi/Wenxin/Claude; weather, currency, holiday.
Live data: weather, air quality, FX, CN/HK/US stocks, IP geo, domain, SSL, China reachability.
MCP server for current weather and multi-day forecasts worldwide, Chinese city names and output.
China news (EN/ZH), Weibo 微博/Baidu 百度/Zhihu 知乎 hot lists and deletion watch from public data.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides utility tools including weather alerts, GitHub repository analysis, phone model lookup, Chinese ID card parsing, and User-Agent parsing.ISC
- AlicenseBqualityDmaintenanceProvides Chinese city weather query and forecast functionality using Juhe Weather API.24 npmMIT
- FlicenseNot gradedqualityDmaintenanceProvides tools for Chinese character stroke order animation with tracing practice and real-time weather queries for major cities.-
- AlicenseNot gradedqualityDmaintenanceEnables real-time weather queries for 12 major Chinese cities and global cities using the wttr.in API without an API key, with tools for weather, city listing, and server info.MIT