百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

sp500-mcp-server

免费

S&P 500 MCP 服务器 一个 MCP(模型上下文协议)服务器和 Next.js Web 应用程序,用于从 Supabase 查询 S&P 500 公司数据。它提供了 M…

106 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

S&P 500 MCP 服务器 一个 MCP(模型上下文协议)服务器和 Next.js Web 应用程序,用于从 Supabase 查询 S&P 500 公司数据。它提供了 M…

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
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

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.

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-app and served as tool UI resources
  • MCP: mcp-handler v2 at apps/web/app/mcp/route.ts; /mcp serves modern and legacy Streamable HTTP
  • Database: Supabase client at apps/web/app/[transport]/utils/supabase.ts
  • UI: 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

  1. Install dependencies:
bash
pnpm install
  1. Create a local env file with Supabase credentials:
env
SUPABASE_URL=your_supabase_url
SUPABASE_ANON_KEY=your_supabase_anon_key
LOGO_DEV_TOKEN=your_logo_dev_publishable_key

SUPABASE_URL and SUPABASE_ANON_KEY are required. LOGO_DEV_TOKEN is required for the /api/logo/* proxy.

  1. Build the embedded MCP App HTML resources:
bash
pnpm --filter @apps/web-app build
  1. Start the apps:
bash
pnpm dev

The 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

bash
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 checks

Focused commands:

bash
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 --noEmit

Testing

Tests are integration tests that connect a real MCP client to http://localhost:3000/mcp, so start the dev server first:

bash
pnpm --filter @apps/web-app build
pnpm dev
pnpm test

Run a single tool test:

bash
pnpm vitest run apps/web/tests/tools/get-company-info-tool.test.ts

Generate coverage:

bash
pnpm coverage

Project Layout

…

apps/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 /mcp handler is stateless and does not require Redis
  • Modern 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

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类未分类
定价免费

> 相关工具

S
spacedrive
<p align="center" </p <h1 align="center"Spacedrive</h1 <p align="center" <strongOne file manager for all your devices and clouds.</strong<b…
B
BizSpring-Java-Mall
BizSpring电商平台是一款高度现代化且功能强大的电子商务解决方案,它基于最新的Spring Cloud微服务架构设计而成。这一平台采用了业界领先的前端技术栈——Vue 3.0、Element Plus以及uniapp进行开发,确保了其在移动设备上的优秀表现力与用户体验。 …
B
BizSpring-Applet-Mall
BizSpring商城用户界面(UI)是基于Uniapp和Vue3.0技术栈进行开发。Uniapp是一款非常强大的跨平台应用开发工具,它以流行的前端框架Vue.js为基础构建而成。利用Uniapp开发者编写一套代码库能快速生成适用于iOS、Android智能手机操作系统以及H5…