Claude Code (Recommended)
Quick Install
Run this command to add CostHawk to Claude Code:YOUR_TOKEN_HERE with your access token from Settings → Developer in your CostHawk dashboard.
Manual Configuration
Add to~/.claude/.mcp.json:
Claude Desktop
macOS
Edit~/Library/Application Support/Claude/claude_desktop_config.json:
Windows
Edit%APPDATA%\Claude\claude_desktop_config.json:
Verify Installation
After restarting, ask Claude:“What CostHawk tools are available?”Claude should list the available tools like
costhawk_get_usage_summary, costhawk_get_savings, etc.
Updating
The MCP server usesnpx -y costhawk which automatically fetches the latest version. To force an update, clear the npx cache:
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
COSTHAWK_API_KEY | Yes | - | Your CostHawk access token |
COSTHAWK_API_URL | No | https://costhawk.ai | API base URL |
