Price Monitor MCPサーバー
概要
このプロジェクトは、Model Context Protocol(MCP)ベースの価格監視サーバーです。商品コードでDBの価格とGマーケットのリアルタイム価格を比較し、価格が下がったときにSlackに通知を送信します。
MCP規格に準拠したサーバー/ツール/プロンプト構造
クロール、価格比較、通知全体のプロセスを自動化
スラックウェブフック連動サポート
主な機能
DB基準価照会:商品コードでDBから基準価格を照会する
Gマーケットリアルタイム価格クロール:Firecrawl APIの活用
価格比較と割引率の計算
価格下落時にスラック通知を送信
フルワークフロー自動実行ツールを提供
フォルダ構造
実行方法
1. 仮想環境の準備とパッケージのインストール
2. 環境変数の設定
.env
ファイルに以下のようにSlack Webhookなどの環境変数を設定します。
3. MCP サーバーの実行
またはdevツールで実行:
mcp dev src/price_monitor_mcp.py
またはシェルスクリプトでconda環境を有効にした後に実行する
MCPツール/プロンプトリスト
get_db_price(product_code)
: DB 基準が照会crawl_gmarket_price(product_code)
:Gマーケットリアルタイム価格クロールsend_slack_alert(message)
: スラック通知の送信monitor_price_workflow(product_code)
: フルプロセス自動実行 (推奨)monitor_price(product_code)
:プロンプト(LLM用)
フルプロセス自動実行(推奨)
ワークフローツール呼び出しの例
MCP開発ツール/クライアントから:
monitor_price_workflow
ツールを選択し、product_code
入力して実行結果:DB価格、最低価格、価格差、割引率、スラック通知などを返す
Pythonクライアントの例
スラック通知テスト
スラックウェブフックが正しく設定されていると、価格が下がると自動的に通知が送信されます。
メッセージフォーマットは
send_slack_alert
関数で自由に変更可能
LLM(Claude、GPTなど)連動
Claude、GPTなどでMCPサーバー接続機能が公式にサポートされると、自然言語でのプロンプト/ツール実行が可能
現在は、MCPクライアントコードで結果を受け取り、LLMに貼り付けて要約/分析要求
参考/文書
Firecrawl、Slack API、DBなどは各環境に合わせて設定が必要
お問い合わせ/貢献
気になる点、バグ、拡張リクエストは問題として残してください!
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Monitors product prices by comparing database reference prices with real-time G-Market prices and sends Slack notifications when prices drop.
Related MCP Servers
- AsecurityAlicenseAqualityProvides real-time and historical cryptocurrency market data through integration with major exchanges. This server enables LLMs like Claude to fetch current prices, analyze market trends, and access detailed trading information.Last updated -754MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server enabling product searches across e-commerce platforms, price history tracking, and product specification-based searches using natural language prompts.Last updated -214MIT License
- AsecurityAlicenseAqualityA server that provides tools for retrieving real-time price information for various assets including precious metals and cryptocurrencies, allowing language models to access and display current asset price data.Last updated -1252MIT License
- -securityFlicense-qualityProvides real-time access to global stock market data including current prices, historical charts, and company financial information through a Model Context Protocol (MCP) server for AI assistants.