# Tokencost Dev

> Tokencost Dev is an open-source MCP server. LLM pricing oracle — model lookup, cost estimation, and comparison via LiteLLM. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/atriumn/tokencost-dev
- **MCP Registry name:** io.github.jeff-atriumn/tokencost-dev
- **Listing updated:** 2026-11-13

## About

LLM pricing oracle — model lookup, cost estimation, and comparison via LiteLLM

## Install

### Claude Code (Terminal)

```sh
claude mcp add tokencost-dev -- npx -y tokencost-dev
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "tokencost-dev": {
      "command": "npx",
      "args": [
        "-y",
        "tokencost-dev"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "tokencost-dev": {
      "command": "npx",
      "args": [
        "-y",
        "tokencost-dev"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "tokencost-dev": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "tokencost-dev"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "tokencost-dev": {
      "command": "npx",
      "args": [
        "-y",
        "tokencost-dev"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "tokencost-dev": {
      "command": "npx",
      "args": [
        "-y",
        "tokencost-dev"
      ]
    }
  }
}
```

## FAQ

### Is Tokencost Dev free?

Yes. Tokencost Dev is open source, so you can use and self-host it for free.

### How do I add Tokencost Dev to Claude Code?

Run this command in your terminal: claude mcp add tokencost-dev -- npx -y tokencost-dev

---
Source: https://ai-powered.com/mcp/tokencost-dev
