shawn14
MCP Servershawn14public

tenzetta market cap updater

一个自动从 Tenzetta MCP 服务器更新标普 500 市值数据到 Supabase 数据库的服务。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
JavaScript
Language
-
License

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

  1. Clone this repository
  2. Install dependencies:
    npm install
    
  3. Create a .env file with your Supabase credentials:
    NEXT_PUBLIC_SUPABASE_URL=your-supabase-url
    NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
    
  4. 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:

  1. Add your Supabase credentials as repository secrets:
    • NEXT_PUBLIC_SUPABASE_URL
    • NEXT_PUBLIC_SUPABASE_ANON_KEY
  2. The workflow will run automatically every day at midnight UTC
  3. 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 USD
  • market_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

1

Clone the repository

git clone https://github.com/shawn14/tenzetta-market-cap-updater
2

Install dependencies

cd tenzetta-market-cap-updater
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownershawn14
Repotenzetta-market-cap-updater
LanguageJavaScript
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation