Skip to main content
Glama
jackdark425

Financial Modeling Prep (FMP) MCP Server

by jackdark425

get_technical_indicator_ema

Calculate Exponential Moving Average (EMA) for stock analysis by providing symbol, timeframe, and period to identify trends and inform trading decisions.

Instructions

Get Exponential Moving Average (EMA) technical indicator

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesStock ticker symbol
timeframeYesTimeframe for technical analysis
periodNoPeriod length

Implementation Reference

  • The tool handler for 'get_technical_indicator_ema', which calls the FMP API to retrieve EMA data.
    server.registerTool(
      'get_technical_indicator_ema',
      {
        description: 'Get Exponential Moving Average (EMA) technical indicator',
        inputSchema: TechnicalIndicatorSchema,
      },
      async (args: z.infer<typeof TechnicalIndicatorSchema>) => {
        try {
          const period = args.period || 10;
          const data = await fetchFMP<TechnicalIndicator[]>(
            `/technical-indicators/ema?symbol=${args.symbol.toUpperCase()}&timeframe=${args.timeframe}&periodLength=${period}`
          );
          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