streamable-httpupdated 1mo ago
REST API + MCP Server for TroyStack. Provides live precious metals data, portfolio management, and AI/LLM integration.
What can you do with troystack?
TroyStack API
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)
Install
Add troystack to your client. Pick the one you use.
claude mcp add --transport http troystack https://api.troystack.ai/mcpcodex mcp add troystack --url https://api.troystack.ai/mcp{
"mcpServers": {
"troystack": {
"url": "https://api.troystack.ai/mcp"
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"servers": {
"troystack": {
"type": "http",
"url": "https://api.troystack.ai/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
{
"mcpServers": {
"troystack": {
"url": "https://api.troystack.ai/mcp"
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"troystack": {
"serverUrl": "https://api.troystack.ai/mcp"
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
Score
39 / 100
Incomplete
- Documentation22/25
- Maintenance16/25
- Trust6/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 30 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 6 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 3.0.2Latest | Apr 12, 2026 |
| 3.0.1 | Apr 12, 2026 |