TroyStack API
MCP serverDev toolstroystack gives your AI the abilities of a precious metals analyst. Once added, your AI can check metals prices, follow a portfolio, answer questions in chat, and work with receipts using 12 built-in tools.
Use TroyStack API in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add TroyStack API and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use TroyStack API to get spot prices
No key or account is asked for. Not verified by us yet: Ahel has not run a call through it.
Details
Available today. Use it from your connected AI after setup.
No key or account is asked for. Not verified by us yet: Ahel has not run a call through it.
After adding troystack, try asking your AI for a metals price or a portfolio update. You can also find the source at github.com/kingleosgold/troystack-api.
What your AI can do with it
- Check precious metals prices
- Track a precious metals portfolio
- Answer questions about precious metals in chat
- Look up receipts
- Work with 12 built-in tools for metals analysis
Install TroyStack API
The server’s own address, for the clients that take one directly. Or connect Ahel once and every client you use reads it from one address, with the account kept on Ahel rather than in each client’s config.
Claude Code
claude mcp add --transport http --scope user troystack-api 'https://api.troystack.ai/mcp'Run it once in your project, then open /mcp to approve any sign-in the server asks for.
Claude Desktop
https://api.troystack.ai/mcpAdd a custom connector in Settings, paste this address, and approve the sign-in.
Cursor
cursor://anysphere.cursor-deeplink/mcp/install?name=troystack-api&config=eyJ1cmwiOiJodHRwczovL2FwaS50cm95c3RhY2suYWkvbWNwIn0=Open the link and Cursor adds the server at that address.
ChatGPT
https://api.troystack.ai/mcpIn Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.
Codex
codex mcp add troystack-api --url 'https://api.troystack.ai/mcp'Run it once, then sign in with codex mcp login troystack-api if the server asks for an account.
From the project's README
As published by kingleosgold/troystack-api in README.md.
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 |
LLM / AI
| 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 |
Architecture
User's iPhone → TroyStack app (local SQLite)
↕ sync
Supabase (server-side storage)
↕
TroyStack API (Railway)
↕ ↕
AI Agents X/Twitter Bot
(Claude, GPT) (auto-tweets)
Tools it offers (12)
What this server listed when Ahel dialed its public endpoint in Oct 2026, with no key and no account of yours. The names are the server’s own.
get_spot_pricesget_price_historyget_stack_signalget_vault_watchget_junk_silverget_speculationchat_with_troyget_portfolioadd_holdingget_analyticsscan_receiptget_daily_brief
Signals
- Last commit
- Sep 2026
Advanced
- Delivery
- troystack MCP server → your Ahel connector (mcp.ahel.ai) → your AI.
- Item type
- mcp-server
- Key
io-github-kingleosgold-troystack- Source
- github.com/kingleosgold/troystack-api
- Hosted endpoint
https://api.troystack.ai/mcp
github.com/kingleosgold/troystack-api