# bf16.ai LLM Catalog, Cost Estimator & ZDR Inference

> bf16.ai LLM Catalog, Cost Estimator & ZDR Inference is an open-source MCP server for ai models and llm tooling. MCP server for live LLM pricing, coding-agent cost estimates and zero-retention inference. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Web
- **Website:** https://bf16.ai
- **Repository:** https://github.com/bf16-ai/bf16-mcp-server
- **MCP Registry name:** io.github.BF16-AI/bf16-mcp-server
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-27

## About

This server gives AI clients a way to look up current per-token prices for the uncensored models hosted on bf16.ai, including context window size and capabilities. It can estimate the dollar cost of a planned request, factoring in prompt-cache hit rates, which helps when budgeting a long coding-agent session.

It also outputs ready-to-paste configuration snippets for Claude Code, Codex CLI, OpenCode, Cursor, Cline and Roo Code, so a developer can point those tools at the bf16.ai endpoint without writing the setup by hand. Catalog, estimation and setup tools run without any credentials.

A separate completion tool sends a prompt through bf16.ai under its zero data retention policy, which needs a bf16.ai API key set in the environment. The server is aimed at developers who run agents on a per-token budget and want pricing and setup handled from inside their MCP client.

## Features

- **Live model catalog:** Lists available models with context length, capabilities and per-million-token USD pricing pulled from the bf16.ai API.
- **Cost estimator:** Calculates the exact USD cost of a request, including prompt-cache hit rates.
- **Client setup generator:** Produces copy-paste configs for several popular coding agents and editors.
- **Zero retention completions:** Runs completions under a zero data retention policy when an API key is provided.
- **No-key core tools:** Catalog, estimation and setup tools work without any account or key.

## Good for

- Compare per-token prices for long-context models before starting an agent run
- Estimate the cost of a coding session that relies on prompt caching
- Generate config files for Claude Code, Codex CLI or Cursor pointed at bf16.ai
- Send sensitive prompts through a zero retention completion tool from an MCP client

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add bf16-mcp-server --env BF16_API_KEY='<BF16_API_KEY>' -- npx -y bf16-mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "bf16-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "bf16-mcp-server"
      ],
      "env": {
        "BF16_API_KEY": "<BF16_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "bf16-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "bf16-mcp-server"
      ],
      "env": {
        "BF16_API_KEY": "<BF16_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "bf16-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "bf16-mcp-server"
      ],
      "env": {
        "BF16_API_KEY": "<BF16_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "bf16-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "bf16-mcp-server"
      ],
      "env": {
        "BF16_API_KEY": "<BF16_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add bf16-mcp-server --env BF16_API_KEY='<BF16_API_KEY>' -- npx -y bf16-mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.bf16-mcp-server]
command = "npx"
args = ["-y", "bf16-mcp-server"]
env = { BF16_API_KEY = "<BF16_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "bf16-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "bf16-mcp-server"
      ],
      "env": {
        "BF16_API_KEY": "<BF16_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e BF16_API_KEY='<BF16_API_KEY>' bf16-mcp-server npx -- -y bf16-mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "bf16-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "bf16-mcp-server"
      ],
      "env": {
        "BF16_API_KEY": "<BF16_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "bf16-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "bf16-mcp-server"
      ],
      "env": {
        "BF16_API_KEY": "<BF16_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "bf16-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "bf16-mcp-server"
      ],
      "env": {
        "BF16_API_KEY": "<BF16_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "bf16-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "bf16-mcp-server"
      ],
      "env": {
        "BF16_API_KEY": "<BF16_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "bf16-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "bf16-mcp-server"
      ],
      "env": {
        "BF16_API_KEY": "<BF16_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "bf16-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "bf16-mcp-server"
      ],
      "env": {
        "BF16_API_KEY": "<BF16_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "bf16-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "bf16-mcp-server"
      ],
      "env": {
        "BF16_API_KEY": "<BF16_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "bf16-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "bf16-mcp-server"
      ],
      "env": {
        "BF16_API_KEY": "<BF16_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 4 tools read data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `bf16_list_models` (name suggests: reads): Fetches live 1M-context models, capabilities, and per-1M USD pricing.
- `bf16_estimate_cost`: Calculates exact USD cost including prompt-cache hit rates using live pricing.
- `bf16_get_client_setup` (name suggests: reads): Outputs copy-paste configs for Claude Code, Codex CLI, OpenCode, Cursor, Cline, and Roo Code.
- `bf16_complete`: Runs a strict Zero Data Retention completion on bf16.ai.

## FAQ

### Do I need an API key to use the server?

No. The catalog, cost estimation and client setup tools work without a key. Only the completion tool requires a BF16_API_KEY.

### How is the server installed?

It runs as a stdio server through npx using the package bf16-mcp-server, with the key passed as an environment variable if you use completions.

### Where does the model pricing come from?

The catalog and cost tools read live model data from the bf16.ai models endpoint.

### How do I add bf16.ai LLM Catalog, Cost Estimator & ZDR Inference to Claude Code?

Run this command in your terminal: claude mcp add bf16-mcp-server --env BF16_API_KEY='<BF16_API_KEY>' -- npx -y bf16-mcp-server

### What are the best alternatives to bf16.ai LLM Catalog, Cost Estimator & ZDR Inference?

The closest alternatives to bf16.ai LLM Catalog, Cost Estimator & ZDR Inference are Llm Advisor, Ai Economics, uplinkswitch, Tokencost Dev and CrowLLM.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Llm Advisor](https://ai-powered.com/mcp/llm-advisor): Llm Advisor is an open-source MCP server for ai models and llm tooling.
- [Ai Economics](https://ai-powered.com/mcp/ai-economics): Ai Economics is an open-source MCP server for ai models and llm tooling.
- [uplinkswitch](https://ai-powered.com/mcp/uplinkswitch-2): uplinkswitch is a paid MCP server for design and media.
- [Tokencost Dev](https://ai-powered.com/mcp/tokencost-dev): Tokencost Dev is an open-source MCP server for ai models and llm tooling.
- [CrowLLM](https://ai-powered.com/mcp/crowllm-2): CrowLLM is a freemium MCP server for ai models and llm tooling.
- [Llm Cost Estimator](https://ai-powered.com/mcp/llm-cost-estimator): Llm Cost Estimator is an open-source MCP server for ai models and llm tooling.
- [InferIndex](https://ai-powered.com/mcp/inferindex): InferIndex is a free MCP server for ai models and llm tooling.
- [Inferenceindexer MCP](https://ai-powered.com/mcp/inferenceindexer-mcp): Inferenceindexer MCP is a free MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/bf16-ai-llm-catalog-cost-estimator-and-zdr-inference
