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.
REST API + MCP Server for TroyStack. Provides live precious metals data, portfolio management, and AI/LLM integration.
npm install
cp .env.example .env # fill in Supabase credentials
npm run dev
SUPABASE_URLSUPABASE_SERVICE_ROLE_KEYPORT (Railway sets automatically)Custom domain: api.troystack.ai
Run migrations/001_api_keys.sql in Supabase SQL editor.
| 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 |
| Method | Path | Description |
|---|---|---|
| GET | /v1/portfolio | Portfolio summary |
| GET | /v1/analytics | Cost basis analysis |
| GET | /v1/holdings | List holdings |
| POST | /v1/holdings | Add purchase |
| Path | Description |
|---|---|
/llms.txt | LLM-readable description |
/openapi.json | OpenAPI 3.0 spec |
/.well-known/ai-plugin.json | AI plugin manifest |
/.well-known/mcp.json | MCP server manifest |
User's iPhone → TroyStack app (local SQLite)
↕ sync
Supabase (server-side storage)
↕
TroyStack API (Railway)
↕ ↕
AI Agents X/Twitter Bot
(Claude, GPT) (auto-tweets)
io.github.mindstone/mcp-server-microsoft-teams
com.mintmcp/outlook-email
helbertparanhos/resend-email-mcp
marlinjai/email-mcp
io.github.mindstone/mcp-server-email-imap
io.github.osamahassouna/email-playbook-mcp