
tenzetta market cap updater
一个自动从 Tenzetta MCP 服务器更新标普 500 市值数据到 Supabase 数据库的服务。
Repository Info
About This Server
一个自动从 Tenzetta MCP 服务器更新标普 500 市值数据到 Supabase 数据库的服务。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Tenzetta Market Cap Updater
A service that automatically updates S&P 500 stock market capitalization data from the Tenzetta MCP server to a Supabase database.
Features
- Daily automatic updates of S&P 500 market cap data
- Fetches data from Tenzetta MCP server API
- Updates Supabase database with latest market cap values
- Runs via GitHub Actions workflow every day at midnight UTC
- Detailed logging of update operations
Setup
- Clone this repository
- Install dependencies:
npm install - Create a
.envfile with your Supabase credentials:NEXT_PUBLIC_SUPABASE_URL=your-supabase-url NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key - Run the update script manually:
node scripts/update-market-caps-daily.js
GitHub Actions Setup
This repository includes a GitHub Actions workflow that runs the update script daily. To use it:
- Add your Supabase credentials as repository secrets:
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEY
- The workflow will run automatically every day at midnight UTC
- You can also trigger it manually from the Actions tab
API Endpoints
The script fetches data from the Tenzetta MCP server:
- Base URL:
https://mcp-server-tenzetta.replit.app/mcp/market-cap - Individual stock endpoint:
https://mcp-server-tenzetta.replit.app/mcp/market-cap/{symbol}
Database Structure
The script updates the following fields in the sp500_stocks table:
market_cap: The market capitalization value in USDmarket_cap_date: The date of the market cap data
Logs
Update logs are stored in the logs/ directory with the naming convention market_cap_update_YYYY-MM-DD.log. These logs include:
- Total number of stocks processed
- Success and failure counts
- List of top 10 stocks by market cap
Quick Start
Clone the repository
git clone https://github.com/shawn14/tenzetta-market-cap-updaterInstall dependencies
cd tenzetta-market-cap-updater
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.