Skip to main content
Glama
Life Assistant MCP Server

Life Assistant MCP Server

by kkmmtt0919

Life Assistant MCP Server(生活アシスタント小ツールボックス)

HelloAgents フレームワークに基づく MCP サーバーで、天気予報 + ホットニュース + テキスト処理 の3つの機能を1つのツールボックスにまとめました。 すべて無料の公開 API を使用し、コードはわずか96行、シンプルで複雑ではありません。

機能特徴

  • 🌤️ 天気予報:中国の主要12都市のリアルタイム天気をサポート(wttr.in、キー不要)

  • 🔥 ホットニュース:头条ホットランキング / 百度ホット検索 TOP10

  • 🔍 ニュース検索:キーワードで最新ニュースを検索(Bing News RSS、キー不要)

  • ✂️ テキストツール:反転、単語数カウント、大文字変換、小文字変換

Related MCP server: weather

インストール

pip install hello-agents requests

使用方法

直接実行(HTTP トランスポート、デフォルト 8081 ポート)

python server.py

stdio トランスポート(Claude Desktop / HelloAgents ローカル使用)

python server.py --stdio

Claude Desktop で使用する

claude_desktop_config.json を編集:

{
  "mcpServers": {
    "life-assistant": {
      "command": "python",
      "args": ["/path/to/server.py", "--stdio"]
    }
  }
}

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("北京今天天气怎么样?顺便看看今天有什么热搜")

デモスクリプトを実行する

リポジトリには完全なデモが付属しています(SimpleAgent + ツールボックス:天気確認 → ホットニュース表示 → テキスト反転):

python examples/demo_agent.py

API ツール

ツール

説明

パラメータ

get_weather

都市のリアルタイム天気を取得

city(string)

list_supported_cities

天気対応都市を一覧表示

なし

get_hot_news

ホットニュース TOP10

source = toutiao(デフォルト) / baidu

search_news

キーワードでニュース検索

keyword(string)

reverse_text

テキストを反転

text

count_words

単語数をカウント

text

to_uppercase / to_lowercase

大文字小文字変換

text

get_server_info

サーバー情報

なし

例

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"}, ...]

データソース(すべてキー不要)

対応都市

北京、上海、広州、深圳、杭州、成都、重慶、武漢、西安、南京、天津、蘇州

英語の都市名でも世界中の任意の都市を検索可能です。

ライセンス

MIT License

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides utility tools including weather alerts, GitHub repository analysis, phone model lookup, Chinese ID card parsing, and User-Agent parsing.
    ISC
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables 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