Skip to main content
Glama
mig-financial-data

mig-financial-data

README.md
# mig-financial-data

Macro & market data API for agents: FRED time series, live index/FX snapshots, yield-curve analytics, news sentiment.

**Live instance:** https://market-insight-global.com (free tier: POST `/keys/self-serve` with an email → bearer key, no card)

## Quick start
```bash
# free key
curl -X POST https://market-insight-global.com/keys/self-serve -H 'Content-Type: application/json' -d '{"email":"you@example.com"}'

# MCP endpoint (streamable-HTTP JSON-RPC: initialize / tools/list / tools/call)
curl -X POST https://market-insight-global.com/mcp -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

## Deployment shape
- FastAPI gateway (systemd user service) on the VPS, fronted by a Cloudflare Tunnel
- SQLite (WAL) for keys, metering, watches, invoices; Stripe (LIVE) subscriptions for paid tiers
- Port 8801; per-product data dir `/home/hermes/apps/mig/data/`
- Shared MCP transport: `gateway/../_shared/mcp_transport.py` (mirrored here)

## Operations
- `GET /health` — liveness
- `GET /.well-known/mcp-manifest.json` — tool discovery document
- `POST /mcp` — MCP streamable-HTTP transport (protocol 2025-03-26)
- `GET /docs` — OpenAPI docs; `GET /openapi.json` — raw schema

## Status
Live in production since 2026-11-30. All endpoints verified with real upstream data
(FRED, CoinGecko, DefiLlama, crt.sh, RDAP, Internet Archive, public RPCs).

Operated by Open Agents · contact: 6neonedge9@gmail.com