Skip to main content
Glama
jackdark425

Financial Modeling Prep (FMP) MCP Server

by jackdark425

get_stock_news

Retrieve news articles for a specific stock ticker symbol to analyze market sentiment and stay informed about company developments.

Instructions

Get latest news articles for a stock symbol

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesStock ticker symbol
limitNoNumber of articles to return (default: 10)

Implementation Reference

  • Implementation of the get_stock_news tool handler in src/tools/financials.ts.
    server.registerTool(
      'get_stock_news',
      {
        description: 'Get latest news articles for a stock symbol',
        inputSchema: StockNewsSchema,
      },
      async (args: z.infer<typeof StockNewsSchema>) => {
        try {
          const limit = args.limit || 10;
          const data = await fetchFMP(`/news/stock?symbols=${args.symbol.toUpperCase()}&limit=${limit}`);
          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