Skip to main content
Glama
kingleosgold

TroyStack API

by kingleosgold

TroyStack API

REST API + MCP-сервер для TroyStack. Предоставляет данные о драгоценных металлах в реальном времени, управление портфелем и интеграцию с ИИ/LLM.

Быстрый старт

npm install
cp .env.example .env  # fill in Supabase credentials
npm run dev

Related MCP server: FinanceKit MCP

Развертывание на Railway

  1. Запушьте в репозиторий GitHub

  2. Подключите репозиторий в панели Railway

  3. Задайте переменные окружения:

    • SUPABASE_URL

    • SUPABASE_SERVICE_ROLE_KEY

    • PORT (Railway устанавливает автоматически)

  4. Разверните

Пользовательский домен: api.troystack.ai

Настройка базы данных

Выполните migrations/001_api_keys.sql в редакторе SQL Supabase.

Эндпоинты

Публичные (без аутентификации)

Метод

Путь

Описание

GET

/v1/prices

Цены спот в реальном времени (Au, Ag, Pt, Pd)

GET

/v1/prices/history

Исторические цены

GET

/v1/market-intel

Заголовки новостей

GET

/v1/vault-watch

Запасы COMEX

GET

/v1/speculation

Прогнозы «что если»

Аутентифицированные (Bearer-токен)

Метод

Путь

Описание

GET

/v1/portfolio

Сводка портфеля

GET

/v1/analytics

Анализ себестоимости

GET

/v1/holdings

Список активов

POST

/v1/holdings

Добавить покупку

LLM / AI

Путь

Описание

/llms.txt

Описание для LLM

/openapi.json

Спецификация OpenAPI 3.0

/.well-known/ai-plugin.json

Манифест AI-плагина

/.well-known/mcp.json

Манифест MCP-сервера

Архитектура

User's iPhone → TroyStack app (local SQLite)
                          ↕ sync
                    Supabase (server-side storage)
                          ↕
                    TroyStack API (Railway)
                      ↕         ↕
                  AI Agents    X/Twitter Bot
                (Claude, GPT)  (auto-tweets)

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides access to a comprehensive financial intelligence platform featuring real-time market data, quantitative models, and alternative data sources. It enables users to perform advanced financial analysis including options analytics, portfolio modeling, and SEC filing research.
    -
  • A
    license
    A
    quality
    C
    maintenance
    Provides AI agents with real-time financial market intelligence including stock quotes, crypto data, technical analysis, and portfolio insights. Enables natural language queries for current prices, technical indicators, asset comparisons, and portfolio analysis.
    17
    6
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kingleosgold/troystack-api'

If you have feedback or need assistance with the MCP directory API, please join our Discord server