TroyStack API

MCP serverDev tools

troystack 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

Details

Available today. Use it from your connected AI after setup.

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.

TroyStack APIStart free

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/mcp

    Add 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/mcp

    In 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

  1. Push to GitHub repo
  2. Connect repo in Railway dashboard
  3. Set environment variables:
    • SUPABASE_URL
    • SUPABASE_SERVICE_ROLE_KEY
    • PORT (Railway sets automatically)
  4. Deploy

Custom domain: api.troystack.ai

Database Setup

Run migrations/001_api_keys.sql in Supabase SQL editor.

Endpoints

Public (no auth)

MethodPathDescription
GET/v1/pricesLive spot prices (Au, Ag, Pt, Pd)
GET/v1/prices/historyHistorical prices
GET/v1/market-intelNews headlines
GET/v1/vault-watchCOMEX inventory
GET/v1/speculationWhat-if projections

Authenticated (Bearer token)

MethodPathDescription
GET/v1/portfolioPortfolio summary
GET/v1/analyticsCost basis analysis
GET/v1/holdingsList holdings
POST/v1/holdingsAdd purchase

LLM / AI

PathDescription
/llms.txtLLM-readable description
/openapi.jsonOpenAPI 3.0 spec
/.well-known/ai-plugin.jsonAI plugin manifest
/.well-known/mcp.jsonMCP 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_prices
  • get_price_history
  • get_stack_signal
  • get_vault_watch
  • get_junk_silver
  • get_speculation
  • chat_with_troy
  • get_portfolio
  • add_holding
  • get_analytics
  • scan_receipt
  • get_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