# sp500-mcp-server [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/zhensherlock/sp500-mcp-server  
**GitHub Stars:** 110  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/sp500-mcp-server

## Description
An MCP server and Next.js web app for querying S&P 500 company data from Supabase, with tools for company info, news, officers, and SEC filings, plus embedded MCP App UI resources, Elicitation, and Sampling support.

## Tools
Capabilities this server exposes over MCP:

- **get_company_info** — Company basics, financials, leadership, address, and business summary
- **get_company_financials** — Annual financial metrics with chart-ready trends and matrix output
- **get_company_price_data** — Historical daily OHLCV price rows with date filters
- **get_company_news** — Recent company news with sentiment filtering
- **get_company_officers** — Executive officers and compensation
- **get_company_filings** — SEC filings history, with filing type and date filters

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/zhensherlock/sp500-mcp-server), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
pnpm install
```

2. Start the server:

```sh
pnpm --filter @apps/web-app build
```

3. Start the server:

```sh
pnpm dev
```

4. Start the server:

```sh
pnpm dev        # Start apps/* dev tasks via Turbo
```

5. Run:

```sh
pnpm build      # Build apps/web and apps/web-app via Turbo
```

6. Start the server:

```sh
pnpm start      # Start production server for apps/web
```

## Documentation

## What sp500-mcp-server does

sp500-mcp-server provides MCP access to S&P 500 company records held in Supabase. Its tool set covers company profiles, annual financial metrics, daily historical prices, recent news, executive officers, compensation, and SEC filing history. The repository also contains a Next.js web application with pages for browsing and testing the tools, plus embedded MCP App resources that present tool-specific interfaces.

The project is aimed at agent workflows that need company research data in structured responses rather than a general-purpose market terminal. Queries are resolved to company symbols before the requested data tool runs, so callers can work with company names or symbols through the server’s resolution flow.

## How it works

The MCP endpoint is served at `/mcp` by the Next.js application. It uses Streamable HTTP and supports both modern and legacy Streamable HTTP client variants at the same endpoint. The handler is stateless, which allows deployment without Redis according to the project’s Vercel deployment notes.

Company lookup is handled internally by `getCompanySymbol`; the symbol resolver is not exposed as a separate MCP tool. When a query has multiple possible matches, elicitation-capable clients can be asked to select a company. Modern clients receive an input-required result, while the compatibility path supports the same interaction for older Streamable HTTP clients. Clients without elicitation support continue with the first match.

## Setup and configuration

The project requires Node.js 24 and pnpm 10. Install dependencies, build the embedded web-app resources, and start the development processes:

```sh
pnpm install
pnpm --filter @apps/web-app build
pnpm dev
```

The local web application runs at `http://localhost:3000`, and its MCP endpoint is `http://localhost:3000/mcp`. Configure the Supabase connection in a local environment file:

```env
SUPABASE_URL=your_supabase_url
SUPABASE_ANON_KEY=your_supabase_anon_key
```

Both Supabase variables are required, and the Supabase project must contain the S&P 500 data tables used by the tools. `LOGO_DEV_TOKEN` is additionally required for the web app’s `/api/logo/*` proxy. Rebuild `apps/web-app` after changing embedded MCP App pages so the server can load the generated HTML resources.

## Tools and capabilities

- `get_company_info` returns company basics, financial information, leadership, address, and a business summary.
- `get_company_financials` returns annual metrics in trend-oriented and matrix formats.
- `get_company_price_data` returns daily OHLCV rows with date filtering.
- `get_company_news` returns recent company news with sentiment filtering.
- `get_company_officers` returns executive officers and compensation information.
- `get_company_filings` returns SEC filing history with filing-type and date filters.

The repository includes integration tests that connect an MCP client to the local `/mcp` endpoint. The web application also provides a playground with direct OpenAI access and interactive MCP Apps.

## Limitations and notes

Results depend on the contents and schema of the configured Supabase project. The server focuses on S&P 500 company data rather than arbitrary securities or unrestricted financial databases. Ambiguous company selection is reduced to the first match when the connected client cannot handle elicitation. This project is licensed under the GNU Affero General Public License v3.0.

_Full upstream README: https://allmcps.com/mcp/sp500-mcp-server/readme_

