Skip to main content
Glama
praveen030686

@praveen030686/data-apis-mcp

finance_stock_news

Retrieve recent news articles for any stock ticker with titles, publishers, links, and thumbnails to monitor market developments and company updates.

Instructions

Get latest 10 news articles for any stock including title, publisher, link, and thumbnail. Costs $0.05 USDC per request via x402 on Base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesStock ticker (e.g., AAPL, MSFT, GOOGL)

Implementation Reference

  • The handler function for 'finance_stock_news' that fetches news data for a given stock symbol.
    async ({ symbol }) => {
      const data = await apiFetch(`${FINANCE_API}/api/v1/stocks/news/${symbol.toUpperCase()}`);
      return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
    }
  • src/index.ts:178-193 (registration)
    Registration of the 'finance_stock_news' tool including title, description, and input schema.
    server.registerTool(
      "finance_stock_news",
      {
        title: "Get Stock News",
        description: `Get latest 10 news articles for any stock including title, publisher, link, and thumbnail.
    Costs $0.05 USDC per request via x402 on Base.`,
        inputSchema: {
          symbol: z.string().min(1).max(10).describe("Stock ticker (e.g., AAPL, MSFT, GOOGL)"),
        },
        annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
      },
      async ({ symbol }) => {
        const data = await apiFetch(`${FINANCE_API}/api/v1/stocks/news/${symbol.toUpperCase()}`);
        return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
      }
    );

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/praveen030686/x402-apis-mcp-server'

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