- Home
- MCP servers
- Price Monitor
Price Monitor
- python
0
GitHub Stars
python
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"moongzee-mcp-price-monitor": {
"command": "mcp",
"args": [
"run",
"src/price_monitor_mcp.py"
],
"env": {
"DB_HOST": "localhost",
"DB_NAME": "price_monitor",
"DB_PORT": "5432",
"DB_USER": "db_user",
"DB_PASSWORD": "db_password",
"SLACK_WEBHOOK_URL": "https://hooks.slack.com/services/..."
}
}
}
}You can run the Price Monitor MCP Server to automatically fetch a product’s standard price from your database, crawl live prices from G마켓, compare them, and send a Slack alert when prices drop. This MCP server automates the full workflow and exposes simple tools you can call from an MCP client for quick price monitoring.
How to use
Use an MCP client to call the price monitoring workflow for a given product code. You can run the full workflow to fetch the database price, obtain the live price from G마켓, compute the discount, and trigger a Slack alert if a price drop occurs. The core tools you will use are get_db_price, crawl_gmarket_price, send_slack_alert, and monitor_price_workflow. You can also run monitor_price for a single step in the process.
How to install
Prerequisites you need before starting:
Create and activate a Python-friendly environment (conda is recommended):
conda create -n price_monitor_mcp python=3.11
conda activate price_monitor_mcp
Install required Python packages:
pip install mcp firecrawl requests python-dotenv psycopg2-binary pydantic
Prepare environment variables in a file named .env with Slack and database configuration:
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/...
DB_HOST=...
DB_PORT=...
DB_NAME=...
DB_USER=...
DB_PASSWORD=...
Run the MCP server
Start the MCP server using the runtime command shown in the workflow:
mcp run src/price_monitor_mcp.py
Available tools
get_db_price
Query the database to retrieve the base price for a given product code.
crawl_gmarket_price
Fetch the real-time price from Gmarket using the Firecrawl integration.
send_slack_alert
Send a notification to Slack when a price drop is detected.
monitor_price_workflow
Run the full price monitoring workflow for a product code, returning DB price, current price, discount, and alert status.
monitor_price
Execute the price monitoring prompt for a given product code.