Skip to main content
Glama
yantrix-ai

@praveen030686/data-apis-mcp

finance_stock_financials

Retrieve financial statements including income statements, balance sheets, and cash flow data for stock analysis. Powered by x402 USDC micropayments on Base.

Instructions

Get financial statements: income statement, balance sheet, and cash flow data. Costs $0.10 USDC per request via x402 on Base.

Input Schema

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

Implementation Reference

  • Registration and implementation of the 'finance_stock_financials' tool. The handler calls the finance API endpoint /api/v1/stocks/financials/{symbol} and returns the data as text.
    server.registerTool(
      "finance_stock_financials",
      {
        title: "Get Stock Financials",
        description: `Get financial statements: income statement, balance sheet, and cash flow data.
    Costs $0.10 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/financials/${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/yantrix-ai/x402-apis-mcp-server'

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