Prerequisites
- A CostHawk account (join the waitlist if you don’t have one)
- Claude Code or Claude Desktop installed
Step 1: Get Your Access Token
- Log into your CostHawk dashboard
- Navigate to Settings → Developer
- Click Create Token
- Copy the token (you’ll only see it once)
Step 2: Add to Claude Code
The fastest way to get started is with the one-liner command:YOUR_TOKEN_HERE with your access token from Step 1.
Step 3: Restart Claude Code
After adding the MCP server, restart Claude Code to load the new tools.Step 4: Start Using CostHawk
You can now ask Claude about your API costs:Usage Queries
Usage Queries
- “What’s my AI API usage this month?”
- “Show me costs broken down by provider”
- “How many tokens have I used today?”
Savings Analysis
Savings Analysis
- “Am I saving money with Claude Max?”
- “Show my savings vs retail pricing”
- “Break down my savings by model”
Alerts & Monitoring
Alerts & Monitoring
- “Are there any cost anomalies I should know about?”
- “List my unread alerts”
- “Create a Slack webhook for budget alerts”
Alternative: Manual Configuration
If you prefer to configure manually, add this to your MCP config file:- Claude Code
- Claude Desktop (macOS)
- Claude Desktop (Windows)
Edit
~/.claude/.mcp.json: