Stock Average Calculator

Calculators REST API MCP

Return the average cost per share (dollar cost averaging) across several buys, the total shares, total invested, break-even price, and, when a current price is given, the position value and unrealized profit or loss in money and percent.

This page documents the MCP tool findutils:stock_average_calculator. See the REST reference →

Call it over MCP

Tool name findutils:stock_average_calculator · no API keys · 120 requests/min per IP

Claude Code

claude mcp add findutils --transport http https://mcp.findutils.com/

Claude Desktop — claude_desktop_config.json

{
  "mcpServers": {
    "findutils": {
      "url": "https://mcp.findutils.com/"
    }
  }
}

Raw JSON-RPC (any MCP client) — verified example

curl -X POST https://mcp.findutils.com/ \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "stock_average_calculator",
      "arguments": {
        "transactions": [
          {
            "shares": 10,
            "price": 100
          },
          {
            "shares": 15,
            "price": 85
          }
        ],
        "current_price": 90
      }
    }
  }'

Input schema

Argument Type Required Description
transactions array yes Buys as { shares, price }. 1-500 items; both values must be > 0.
current_price number no Current market price per share. Optional.

Example arguments (verified)

{
  "transactions": [
    {
      "shares": 10,
      "price": 100
    },
    {
      "shares": 15,
      "price": 85
    }
  ],
  "current_price": 90
}

Also a REST endpoint

The same tool answers plain HTTP at POST /api/tools/stock-average-calculator/execute — no key, 60 requests/min.

Open the REST reference for Stock Average Calculator →

More Calculators tools