Skip to main content
Glama
yantrix-ai

@praveen030686/data-apis-mcp

finance_stock_price

Retrieve real-time stock prices with key metrics like day high/low, volume, and 52-week range for US stocks, ETFs, and indices using micropayments.

Instructions

Get real-time stock price with day high/low, volume, 52-week range, and market state. Costs $0.02 USDC per request via x402 on Base. Supports all major US stocks, ETFs, and indices.

Input Schema

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

Implementation Reference

  • The tool 'finance_stock_price' is defined here. It accepts a 'symbol' argument and fetches data from the finance API.
    server.registerTool(
      "finance_stock_price",
      {
        title: "Get Stock Price",
        description: `Get real-time stock price with day high/low, volume, 52-week range, and market state.
    Costs $0.02 USDC per request via x402 on Base.
    Supports all major US stocks, ETFs, and indices.`,
        inputSchema: {
          symbol: z.string().min(1).max(10).describe("Stock ticker (e.g., AAPL, MSFT, GOOGL, TSLA, AMZN)"),
        },
        annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
      },
      async ({ symbol }) => {
        const data = await apiFetch(`${FINANCE_API}/api/v1/stocks/price/${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