# Stock Average Calculator — MCP tool `findutils:stock_average_calculator`

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.

- Category: calculators
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/stock-average-calculator/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/mcp/stock-average-calculator/
- Same tool on the other surface: https://findutils.com/api/stock-average-calculator/

## Connect

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

Claude Desktop (`claude_desktop_config.json`):

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

## Call the tool (verified example)

```bash
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):

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

## Also a REST endpoint

```bash
curl -X POST https://api.findutils.com/api/tools/stock-average-calculator/execute \
  -H "Content-Type: application/json" \
  -d '{
    "transactions": [
      {
        "shares": 10,
        "price": 100
      },
      {
        "shares": 15,
        "price": 85
      }
    ],
    "current_price": 90
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/stock-average-calculator
```

Full REST reference: https://findutils.com/api/stock-average-calculator/ · OpenAPI 3.1 spec: https://findutils.com/api/openapi.json

---
Full catalog: POST https://mcp.findutils.com/ with method `tools/list` · https://findutils.com/mcp/ · https://findutils.com/llms.txt
