# Numeratica MCP server

> Enables AI clients to perform deterministic US financial planning calculations including retirement Monte Carlo, taxes, RMDs, and Social Security.

- Repository: https://github.com/numeratica/mcp
- Page: https://hostedmcp.org/servers/numeratica/mcp
- Transport: stdio, remote
- Stars: 0
- License: MIT
- Latest version: 0.1.5

## Install

### Claude Code

```sh
claude mcp add --env 'NUMERATICA_API_KEY=<YOUR_NUMERATICA_API_KEY>' mcp -- npx -y @numeratica/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@numeratica/mcp"
      ],
      "env": {
        "NUMERATICA_API_KEY": "<YOUR_NUMERATICA_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@numeratica/mcp"
      ],
      "env": {
        "NUMERATICA_API_KEY": "<YOUR_NUMERATICA_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp","type":"stdio","command":"npx","args":["-y","@numeratica/mcp"],"env":{"NUMERATICA_API_KEY":"<YOUR_NUMERATICA_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@numeratica/mcp"
      ],
      "env": {
        "NUMERATICA_API_KEY": "<YOUR_NUMERATICA_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add mcp --env 'NUMERATICA_API_KEY=<YOUR_NUMERATICA_API_KEY>' -- npx -y @numeratica/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@numeratica/mcp"]

[mcp_servers.mcp.env]
NUMERATICA_API_KEY = "<YOUR_NUMERATICA_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'NUMERATICA_API_KEY=<YOUR_NUMERATICA_API_KEY>' mcp npx -- -y @numeratica/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@numeratica/mcp"
      ],
      "env": {
        "NUMERATICA_API_KEY": "<YOUR_NUMERATICA_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `NUMERATICA_API_KEY` | yes | yes | Numeratica API key (nmr_sk_...). Free self-serve key at https://docs.numeratica.com/get-key |
| `NUMERATICA_BASE_URL` | no | no | Override the API base URL. Defaults to https://api.numeratica.com; only needed for a staging or self-hosted deployment. |
| `NUMERATICA_TIMEOUT_MS` | no | no | Per-request timeout in milliseconds (default 120000, minimum 1000). Raise it for long-horizon Monte Carlo runs. |

## FAQ

### Is my API key secure?

Yes, the key is sent only in the Authorization header and is never logged by the bridge.
