Skip to main content
Glama
jackdark425

Financial Modeling Prep (FMP) MCP Server

by jackdark425

get_economic_calendar

Retrieve upcoming economic data release schedules to track market-moving events and plan financial analysis.

Instructions

Get upcoming economic data releases calendar

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromNoStart date in YYYY-MM-DD format (optional)
toNoEnd date in YYYY-MM-DD format (optional)

Implementation Reference

  • The handler implementation and registration for 'get_economic_calendar'.
    server.registerTool(
      'get_economic_calendar',
      {
        description: 'Get upcoming economic data releases calendar',
        inputSchema: DateRangeSchema,
      },
      async (args: z.infer<typeof DateRangeSchema>) => {
        try {
          const params: string[] = [];
          if (args.from) params.push(`from=${args.from}`);
          if (args.to) params.push(`to=${args.to}`);
          const endpoint = '/economic-calendar' + (params.length ? `?${params.join('&')}` : '');
          const data = await fetchFMP<EconomicCalendar[]>(endpoint);
          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