Troystack

io.github.kingleosgold由 GitHub 账号 kingleosgold 发布v3.0.2更新于 Oct 24, 2026

Precious metals AI analyst with 12 tools — prices, portfolio, chat, receipts, and more.

已验证Streamable HTTP可网页运行金融数据与分析

概览

AI 生成的概览

面向贵金属的远程 MCP 服务器:提供现货价格、市场情报、投资组合跟踪和 AI 分析师对话。

可以做什么
  • 读取黄金、白银、铂金和钯金的实时现货价格,以及历史价格序列和假设目标价倍数测算
  • 查看市场情报:精选 Stack Signal 评论、COMEX 库存与未平仓合约数据,以及每日市场简报
  • 向 AI 分析师询问金属、市场或自身持仓相关问题,可用 API 密钥获得个性化回答
  • 管理投资组合:总市值、成本基础、盈亏、分金属明细、成本分析与盈亏平衡价,并新增购买记录
  • 计算 1965 年前美国银币的熔银价值,并从收据图片中提取购买信息
适用场景
适合关注贵金属行情、希望让助手获取现货价格、库存数据和评论,或集中记录并分析个人金银投资组合的用户。
运行要求
通过 streamable HTTP 连接 api.troystack.ai 的远程端点,无需本地安装,也未声明环境变量。投资组合和个性化对话功能需要向相应工具提供 API 密钥;公开价格与市场数据无需认证。
安装前请注意
投资组合工具会读取你的持仓与成本基础,add_holding 会写入新的购买记录,应妥善保管 API 密钥。收据扫描会把上传的图片发送到该服务进行 AI 视觉识别。市场评论与测算仅供参考,不构成投资建议。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Troystack,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.kingleosgold%2Ftroystack/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "troystack": {
      "type": "http",
      "url": "https://api.troystack.ai/mcp"
    }
  }
}

README

TroyStack API

REST API + MCP Server for TroyStack. Provides live precious metals data, portfolio management, and AI/LLM integration.

Quick Start

bash
npm installcp .env.example .env  # fill in Supabase credentialsnpm 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)

来源:README.md,提交 a33e928

工具

12

get_spot_prices

Get Spot Prices

Returns current spot prices for gold, silver, platinum, and palladium with daily change percentages

无需输入参数。

get_price_history

Get Price History

Historical spot price data for a precious metal over a time range

输入参数metal必填range

get_stack_signal

Get Stack Signal Articles

Returns Stack Signal — TroyStack's curated precious metals market intelligence with Troy's commentary

输入参数limitoffsetcategory

get_vault_watch

Get COMEX Vault Watch

Returns COMEX warehouse inventory: registered, eligible, combined ounces, daily changes, open interest, oversubscribed ratio

输入参数metal

get_junk_silver

Calculate Junk Silver Melt Value

Calculates silver melt value for pre-1965 US coinage

输入参数dimesdollarsquarterskennedy_40war_nickelshalf_dollars

get_speculation

Run What-If Price Scenario

Calculates price multipliers comparing current spot to hypothetical target prices

输入参数goldsilverplatinumpalladium

chat_with_troy

Chat with Troy

Ask Troy anything about precious metals, markets, your stack. Provide api_key for personalized portfolio-aware answers, or omit for general market analysis.

输入参数api_keymessage必填

get_portfolio

Get Portfolio

Returns your precious metals portfolio: total value, cost basis, gain/loss, per-metal breakdown, and individual holdings

输入参数api_key必填

add_holding

Add Holding

Add a precious metals purchase to your portfolio

输入参数typemetal必填api_key必填quantity必填weight_oz必填purchase_datepurchase_price必填

get_analytics

Get Portfolio Analytics

Cost basis, average cost per oz, break-even price, unrealized P/L per metal

输入参数api_key必填

scan_receipt

Scan Receipt

Extract precious metals purchase data from a receipt image using AI vision

输入参数api_key必填image_base64必填

get_daily_brief

Get Daily Brief

Troy's daily market brief. Provide api_key for personalized brief, or omit for the latest Stack Signal market synthesis.

输入参数api_key

版本历史

1
  1. v3.0.2最新Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。