QGold is an MCP server that facilitates natural language querying of commodity and cryptocurrency prices alongside long-term financial withdrawal modeling. It connects AWS Lambda and Amazon DynamoDB storage to an external pricing API to track gold, silver, palladium, copper, bitcoin, and ethereum. Financial analysts, investors, and developers using command-line LLM environments like Amazon Q CLI use QGold to inspect historical or intraday price updates directly through chat prompts. Beyond raw asset quotes, QGold integrates financial projection tools that calculate principal depletion over a thirty-year horizon under variable growth and withdrawal rates. Users can simulate conservative scenarios, such as skipping withdrawals following negative market years, or test random annual return sequences. By standardizing quote retrieval into structured Model Context Protocol endpoints, QGold allows compatible AI clients to run multi-asset portfolio checks and retirement runway evaluations without manual spreadsheet configuration or external dashboard context switching.
Category: Data & Analytics
Tags: asset prices, financial modeling, nlp, withdrawal analysis
mcp_server directory. 2. Install the required Python dependencies: bash pip install -r requirements.txt 3. Register the MCP server with the Amazon Q CLI: bash q mcp add --name qgold --command python3 4. Open .amazonq/mcp.json and configure the server entry: json { "mcpServers": { "qgold": { "command": "python3", "args": ["server.py"] } } } 5. Authenticate and start the Q CLI session with trusted tool permissions: bash q login q chat --trust-tools=qgold___get_asset_prices,qgold___model_financial_projectionsPart of MCP Servers
QGold exposes tools for querying commodity and cryptocurrency price data alongside long-term financial modeling calculators. It fetches pricing for gold, silver, palladium, copper, bitcoin, and ethereum stored in DynamoDB, allowing users to query specific date ranges or current quotes. Additionally, it models thirty-year portfolio drawdowns with adjustable withdrawal rates, fixed or randomized growth rates, and rules for skipping withdrawals after down years.
QGold is designed and documented for use with the Amazon Q CLI developer environment. However, because it complies with the standard Model Context Protocol specifications using standard Python scripts, it can also be configured with other compatible MCP hosts such as Claude Desktop or Cursor by pointing the client configuration to run python3 server.py within the mcp_server directory.
QGold tracks six specific assets: XAU (Gold), XAG (Silver), XPD (Palladium), HG (Copper), BTC (Bitcoin), and ETH (Ethereum). Price data for these assets is periodically harvested from gold-api.com via scheduled AWS Lambda executions and indexed by date in Amazon DynamoDB for historical comparison and retrieval.
The model_financial_projections tool calculates principal balances over a thirty-year schedule based on an initial amount, annual growth rate, and target withdrawal percentage. It supports a random growth generator to simulate market volatility and includes a conditional logic flag that skips withdrawals in years following negative portfolio returns.