
Troystack
Connects Claude to TroyStack's precious metals platform with 12 tools covering live spot prices for gold, silver, platinum, and palladium, portfolio management with cost basis analytics, market news headlines, COMEX vault inventory tracking, and what-if price projections. Authenticated routes let you sync holdings from the mobile app's SQLite database through Supabase, add new purchases, and pull portfolio summaries. Useful if you're building AI workflows around metals trading analysis or want Claude to answer questions about your stack's performance without manually copying data. The API runs on Railway at api.troystack.ai and exposes both public market data endpoints and private portfolio operations via Bearer token auth.
- tools
- 12
- transport
- HTTP
- last updated
- Apr 12, 2026
Install
From registry metadata$ npx add-mcp https://api.troystack.ai/mcp --name troystackRun in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add --transport http troystack https://api.troystack.ai/mcpRun in your terminal. Add --scope user to make it available in every project.
Tools
Verified live · 12 toolsVerified live against the running server on Nov 6, 2026.
get_spot_pricesReturns current spot prices for gold, silver, platinum, and palladium with daily change percentages
Returns current spot prices for gold, silver, platinum, and palladium with daily change percentages
No parameters. Call it with no arguments.
get_price_historyHistorical spot price data for a precious metal over a time range2 params
Historical spot price data for a precious metal over a time range
metal*stringgold · silver · platinum · palladiumrangestring1M · 3M · 6M · 1Y · 5Y · ALLget_stack_signalReturns Stack Signal — TroyStack's curated precious metals market intelligence with Troy's commentary3 params
Returns Stack Signal — TroyStack's curated precious metals market intelligence with Troy's commentary
categorystringlimitintegeroffsetintegerget_vault_watchReturns COMEX warehouse inventory: registered, eligible, combined ounces, daily changes, open interest, oversubscribed ratio1 params
Returns COMEX warehouse inventory: registered, eligible, combined ounces, daily changes, open interest, oversubscribed ratio
metalstringgold · silver · platinum · palladiumget_junk_silverCalculates silver melt value for pre-1965 US coinage6 params
Calculates silver melt value for pre-1965 US coinage
dimesintegerdollarsintegerhalf_dollarsintegerkennedy_40integerquartersintegerwar_nickelsintegerget_speculationCalculates price multipliers comparing current spot to hypothetical target prices4 params
Calculates price multipliers comparing current spot to hypothetical target prices
goldnumberpalladiumnumberplatinumnumbersilvernumberchat_with_troyAsk Troy anything about precious metals, markets, your stack. Provide api_key for personalized portfolio-aware answers, or omit for general market analysis.2 params
Ask Troy anything about precious metals, markets, your stack. Provide api_key for personalized portfolio-aware answers, or omit for general market analysis.
api_keystringmessage*stringget_portfolioReturns your precious metals portfolio: total value, cost basis, gain/loss, per-metal breakdown, and individual holdings1 params
Returns your precious metals portfolio: total value, cost basis, gain/loss, per-metal breakdown, and individual holdings
api_key*stringadd_holdingAdd a precious metals purchase to your portfolio7 params
Add a precious metals purchase to your portfolio
api_key*stringmetal*stringgold · silver · platinum · palladiumpurchase_datestringpurchase_price*numberquantity*integertypestringweight_oz*numberget_analyticsCost basis, average cost per oz, break-even price, unrealized P/L per metal1 params
Cost basis, average cost per oz, break-even price, unrealized P/L per metal
api_key*stringscan_receiptExtract precious metals purchase data from a receipt image using AI vision2 params
Extract precious metals purchase data from a receipt image using AI vision
api_key*stringimage_base64*stringget_daily_briefTroy's daily market brief. Provide api_key for personalized brief, or omit for the latest Stack Signal market synthesis.1 params
Troy's daily market brief. Provide api_key for personalized brief, or omit for the latest Stack Signal market synthesis.
api_keystringSponsors
Readme
TroyStack API
REST API + MCP Server for TroyStack. Provides live precious metals data, portfolio management, and AI/LLM integration.
Quick Start
npm install
cp .env.example .env # fill in Supabase credentials
npm run dev
Deploy to Railway
- Push to GitHub repo
- Connect repo in Railway dashboard
- Set environment variables:
SUPABASE_URLSUPABASE_SERVICE_ROLE_KEYPORT(Railway sets automatically)
- Deploy
Custom domain: api.troystack.ai
Database Setup
Run migrations/001_api_keys.sql in Supabase SQL editor.
Endpoints
Public (no auth)
| Method | Path | Description |
|---|---|---|
| GET | /v1/prices | Live spot prices (Au, Ag, Pt, Pd) |
| GET | /v1/prices/history | Historical prices |
| GET | /v1/market-intel | News headlines |
| GET | /v1/vault-watch | COMEX inventory |
| GET | /v1/speculation | What-if projections |
Authenticated (Bearer token)
| Method | Path | Description |
|---|---|---|
| GET | /v1/portfolio | Portfolio summary |
| GET | /v1/analytics | Cost basis analysis |
| GET | /v1/holdings | List holdings |
| POST | /v1/holdings | Add purchase |
Details
- Repository
- github.com/kingleosgold/troystack-api
- Category
- Communication & Messaging
- Transport
- HTTP
- Registry
- MCP registry, active
- Tools verified
- Nov 6, 2026