S&P 500 MCP Server
Provides tools for querying S&P 500 company data stored in Supabase, including company fundamentals, annual financial metrics, historical daily OHLCV price data, news sentiment, executive officers, and SEC filings.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@S&P 500 MCP Servershow me Apple's latest annual revenue and net income trends"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
S&P 500 MCP Server
An MCP (Model Context Protocol) server and Next.js web app for querying S&P 500 company data from Supabase. It exposes MCP tools for company fundamentals, annual financial metrics, historical price data, news sentiment, officers, and SEC filings, plus a web UI and embedded MCP App resources for browsing and testing those tools.
Tools
Tool | Description |
| Company basics, financials, leadership, address, and business summary |
| Annual financial metrics with chart-ready trends and matrix output |
| Historical daily OHLCV price rows with date filters |
| Recent company news with sentiment filtering |
| Executive officers and compensation |
| SEC filings history, with filing type and date filters |
search_companies is an internal symbol resolver, not an exposed MCP tool. User queries are resolved through getCompanySymbol.
For ambiguous matches, elicitation-capable clients are asked to choose a company. Modern clients receive an input_required
result; the SDK compatibility layer serves the same flow to 2025-era Streamable HTTP clients. Clients without elicitation
support continue with the first match.
Related MCP server: FinImpulse MCP Server
Tech Stack
Workspace: pnpm 10.34.5 + Turborepo
Runtime: Node 22 (
.nvmrc)Web app: Next.js 16 App Router, React 19, TypeScript strict mode (
apps/web)MCP Apps: Vite single-file React pages built from
apps/web-appand served as tool UI resourcesMCP:
mcp-handlerv2 atapps/web/app/mcp/route.ts;/mcpserves modern and legacy Streamable HTTPDatabase: Supabase client at
apps/web/app/[transport]/utils/supabase.tsUI: shared shadcn/Tailwind primitives in
packages/ui
Getting Started
Prerequisites
Node.js 22
pnpm 10
Supabase project with the S&P 500 data tables used by the tools
Local Development
Install dependencies:
pnpm installCreate a local env file with Supabase credentials:
SUPABASE_URL=your_supabase_url
SUPABASE_ANON_KEY=your_supabase_anon_key
LOGO_DEV_TOKEN=your_logo_dev_publishable_keySUPABASE_URL and SUPABASE_ANON_KEY are required. LOGO_DEV_TOKEN is required for the /api/logo/* proxy.
Build the embedded MCP App HTML resources:
pnpm --filter @apps/web-app buildStart the apps:
pnpm devThe Next.js web app runs on http://localhost:3000; the MCP endpoint is http://localhost:3000/mcp. The apps/web-app dev server proxies /mcp to port 3000 when run separately.
Commands
pnpm dev # Start apps/* dev tasks via Turbo
pnpm build # Build apps/web and apps/web-app via Turbo
pnpm start # Start production server for apps/web
pnpm type-check # Type-check apps/web and apps/web-app
pnpm lint # ESLint + Prettier rule checksFocused commands:
pnpm --filter @apps/web dev
pnpm --filter @apps/web-app dev
pnpm --filter @apps/web-app build
pnpm exec tsc -p apps/web/tsconfig.json --noEmit
pnpm exec tsc -p apps/web-app/tsconfig.json --noEmit
pnpm exec tsc -p packages/ui/tsconfig.json --noEmitTesting
Tests are integration tests that connect a real MCP client to http://localhost:3000/mcp, so start the dev server first:
pnpm --filter @apps/web-app build
pnpm dev
pnpm testRun a single tool test:
pnpm vitest run apps/web/tests/tools/get-company-info-tool.test.tsGenerate coverage:
pnpm coverageProject Layout
apps/web/
app/mcp/route.ts MCP Streamable HTTP GET/POST handler
app/[transport]/tools/ MCP tool registrations
app/[transport]/utils/ Supabase and symbol resolution
app/api/tools/call/route.ts HTTP proxy for the web tool tester
app/tools/ Tool catalog page
components/ App-specific UI
tests/tools/ MCP integration tests
apps/web-app/
src/pages/ Embedded MCP App pages, one per tool
src/components/ MCP App UI components
scripts/build-pages.js Builds each page into dist/*.html
dist/ Generated single-file HTML resources
packages/ui/
src/components/ Shared shadcn UI primitives
src/styles/globals.css Shared Tailwind CSSapps/web/app/[transport]/tools/app-resource.ts reads generated HTML from apps/web-app/dist, so rebuild apps/web-app after changing embedded MCP App pages.
Vercel Deployment
The
/mcphandler is stateless and does not require RedisModern 2026-07-28 and legacy 2025 Streamable HTTP clients use the same endpoint
Docs
Full guides and examples: https://sp500-mcp.vercel.app/
Contributing
Feel free to dive in! Open an issue or submit PRs.
Standard Readme follows the Contributor Covenant Code of Conduct.
Contributors
This project exists thanks to all the people who contribute.
License
GNU Affero General Public License v3.0 © MichaelSun
This server cannot be deployed
Maintenance
Related MCP Connectors
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
Research US-listed companies and funds with the StockPortfolio.pro MCP server. Tools cover SEC filing-grounded financials, filing timelines, company comparisons, watchlist screens, fund profiles, and cited filing questions. Filed figures include their fiscal period and EDGAR source URL; missing filing data is returned as null. Public tools work without authentication; optional API-key or OAuth access is supported. US-listed, USD-reporting companies only. Keyless access includes 3 free AI questions per rolling 30-day window. To get more now, choose the Dev plan ($19.99/month, 200 credits) at https://www.stockportfolio.pro/register?plan=dev, then follow https://www.stockportfolio.pro/docs/api-mcp to connect with OAuth or an API key. Or wait for the free allowance to renew.
SEC filings, earnings transcripts, guidance signals & macro calendar for S&P 500. 11 MCP tools.
75 MCP tools: SEC financials, FRED economics, IRS 990, FDA, FX, UK Companies House.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP server for querying S\&P 500 company data from Supabase, providing tools for company info, financials, price data, news, officers, and SEC filings.107AGPL 3.0
- AlicenseAqualityDmaintenanceProvides structured financial market data (stocks, ETFs, mutual funds, fundamentals, market indicators) to AI systems via MCP, enabling natural language access to financial datasets with both hosted and local deployment options.3134 npmISC
- AlicenseAqualityAmaintenanceMCP server that exposes Yahoo Finance data through tools for searching instruments, fetching quotes, history, company info, financials, dividends, news, recommendations, and options. Enables AI assistants to answer market-data questions using natural language.221,018 PyPI1MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to retrieve US stock market OHLCV data, company fundamentals and financial statements, FRED macroeconomic indicators, market news, Reddit/StockTwits sentiment, and Polymarket prediction market probabilities via simple tools.MIT