Gold Price Notifier
FreeNot checkedA high-performance Kotlin bot for monitoring gold prices with Telegram alerts and MCP support for Gemini CLI.
About
A high-performance Kotlin bot for monitoring gold prices with Telegram alerts and MCP support for Gemini CLI.
README
Stop staring at charts like a peasant. Let the machines do the heavy lifting.
GoldStrike is a high-performance, asynchronous Kotlin bot that relentlessly tracks the price of Gold (XAU) and strikes your Telegram DMs the exact second your target price is breached. Now also available as a Gemini CLI Extension!
🔥 Why It's Badass
- Relentless Monitoring: Powered by Kotlin 2.3.0 Coroutines to track prices asynchronously without blocking the main thread.
- Modern Networking: Engineered with Ktor 3.1.0 CIO client, precise HTTP timeouts, and graceful JVM shutdowns.
- Zero-Bullshit Alerts: Only alerts you when the price crosses your aggressively defined thresholds. No spam, no false alarms.
- Gemini CLI Extension: Install it directly into your Gemini CLI for instant gold price queries during your workflow.
- MCP Integration: Acts as a Model Context Protocol (MCP) server, allowing AI agents to query real-time gold prices directly.
- Battle-Tested: High-precision unit testing using MockK ensuring every strike is calculated and verified.
🚀 Instant Deployment (Gemini CLI)
The easiest way to use GoldStrike is as a Gemini CLI extension.
# 1. Install the extension
gemini extensions install https://github.com/goldyonwar/gold-price-notifier
# 2. Ask Gemini for the gold price
gemini "What is the current gold price?"
Requires Java 17+ installed locally.
⚙️ Configuration (The Arsenal)
If you are running the Telegram Watcher Bot, you need to arm it with environment variables. Create a .env file in the root directory:
Intel Gathering (Pre-requisites):
- Bot Token: Talk to @BotFather on Telegram to create your bot and get the token.
- Chat ID: Forward a message from your target chat to @userinfobot or use
https://api.telegram.org/bot<YOUR_TOKEN>/getUpdatesto find your precise Chat ID.
# Your Telegram Bot Token from @BotFather
TELEGRAM_BOT_TOKEN=your_bot_token_here
# Your personal Telegram Chat ID
TELEGRAM_CHAT_ID=your_chat_id_here
# The Strike Zones (Alert Triggers)
TARGET_HIGH_PRICE=5100.0
TARGET_LOW_PRICE=5080.0
# Polling frequency in milliseconds (e.g., 60000 = 1 minute)
CHECK_INTERVAL=60000
🛠 Mode 1: The Watcher Bot (Standard)
This is the default mode that monitors prices and sends Telegram alerts.
Option A: Docker (Recommended)
# 1. Build the image
docker build -t gold-watcher-bot .
# 2. Run the container
docker run -d --name my_gold_bot --env-file .env gold-watcher-bot
Option B: Gradle
./gradlew run
🛠 Mode 2: MCP Server (AI Agent Integration)
Run GoldStrike as a standalone MCP server to expose gold price tracking to your AI tools (Claude, etc.).
# Run with the --mcp flag
./gradlew run --args="--mcp"
Building the Artifact
To use GoldStrike as a standalone JAR (required for some MCP clients), build the fat JAR first:
./gradlew shadowJar
This produces the artifact at build/libs/gold-price-notifier-all.jar.
Exposed Tools:
get_gold_price: Fetches the real-time gold price in USD (XAU).
MCP Client Configuration (e.g., Claude Desktop)
{
"mcpServers": {
"gold-watcher": {
"command": "java",
"args": [
"-jar",
"/absolute/path/to/gold-price-notifier-all.jar",
"--mcp"
]
}
}
}
🧪 Testing (Verifying the Strike)
Run the automated test suite to ensure the tracker and MCP logic are working as expected:
./gradlew test
🛡️ License
This project is licensed under the MIT License - see the LICENSE file for details.
Installing Gold Price Notifier
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/goldyonwar/gold-price-notifierFAQ
Is Gold Price Notifier MCP free?
Yes, Gold Price Notifier MCP is free — one-click install via Unyly at no cost.
Does Gold Price Notifier need an API key?
No, Gold Price Notifier runs without API keys or environment variables.
Is Gold Price Notifier hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Gold Price Notifier in Claude Desktop, Claude Code or Cursor?
Open Gold Price Notifier on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Gmail
Read, send and search emails from Claude
by GoogleSlack
Send, search and summarize Slack messages
by SlackRunbear
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
Discord Server
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)
Compare Gold Price Notifier with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All communication MCPs
