Skip to main content
Glama
jackdark425

Financial Modeling Prep (FMP) MCP Server

by jackdark425

get_sp500_constituents

Retrieve the current list of S&P 500 companies for financial analysis and market tracking.

Instructions

Get list of S&P 500 index constituents

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The get_sp500_constituents tool is registered and implemented within the registerMarketTools function in src/tools/market.ts. It fetches data from the '/sp500-constituent' endpoint.
    server.registerTool(
      'get_sp500_constituents',
      {
        description: 'Get list of S&P 500 index constituents',
        inputSchema: z.object({}),
      },
      async () => {
        try {
          const data = await fetchFMP('/sp500-constituent');
          return jsonResponse(data);
        } catch (error) {
          return errorResponse(error);
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jackdark425/aigroup-fmp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server