Usage and attribution
Ask for API spend, token volume, provider mix, model mix, and project or team breakdowns.
costhawk_get_usage_summarycosthawk_get_usage_by_tagCostHawk's MCP server gives authorized AI assistants 22 tools for usage reporting, local telemetry, savings analysis, anomaly detection, alert routing, live pricing, proxy setup, and executive ROI reporting. CTOs get answers in plain English; technical evaluators can inspect the exact tool surface.
Install
npm exec --yes costhawk@latest -- --login
Tool surface
22
Registered tools across reporting, sync, alerts, pricing, and ROI.
Access model
Scoped
MCP read/write tokens keep reporting and action tools governed.
Tool surface
The MCP server is useful before, during, and after rollout: local discovery, dashboard sync, executive reporting, pricing checks, alert routing, and governance checks all sit behind one assistant-accessible interface.
Ask for API spend, token volume, provider mix, model mix, and project or team breakdowns.
costhawk_get_usage_summarycosthawk_get_usage_by_tagCompare retail token cost against flat-rate subscriptions and turn local activity into an executive ROI report.
costhawk_get_savingscosthawk_list_subscriptionscosthawk_get_savings_breakdowncosthawk_get_local_roi_reportFind spikes, review recent budget alerts, and create Slack, Teams, PagerDuty, Discord, or custom webhook routes.
costhawk_detect_anomaliescosthawk_list_alertscosthawk_list_webhookscosthawk_create_webhookRead Claude Code, Codex, and Cursor usage locally; preview what would sync before uploading metadata to CostHawk.
costhawk_get_local_claude_code_usagecosthawk_sync_claude_code_usagecosthawk_get_local_codex_usagecosthawk_sync_codex_usagecosthawk_get_local_cursor_usagecosthawk_sync_cursor_usageLook up current model pricing, inspect wrapped proxy-key setup, and check provider integration status.
costhawk_get_model_pricingcosthawk_get_proxy_guidecosthawk_list_integrationsExpose workspace and project-memory policy so assistants know when shared Company Brain writes are allowed.
costhawk_get_company_brain_onboardingNatural language workflows
The assistant calls CostHawk's tools behind the scenes and returns structured, table-ready answers. Operators can move from question to action without switching between provider billing portals, spreadsheets, and dashboards.
Example prompts
Local-first telemetry
CostHawk can report from local AI-tool usage without asking for provider admin keys. For supported local sources, the MCP server reads usage metadata, estimates retail cost from current pricing, and can preview exactly what would be uploaded before a sync.
Parses local transcript metadata from the user's machine.
Reads local session logs and estimates retail token cost.
Reads local SQLite usage data with self-test and transparency modes.
Uses CostHawk through MCP as an assistant/reporting surface.
Control points
Most tools answer questions. Write-capable tools are explicit: syncing usage metadata or creating alert webhooks requires an MCP token with the right scope.
Usage, pricing, savings, anomalies, alerts, integrations.
Claude Code, Codex, and Cursor upload tools require write scope.
Webhook creation supports Slack, Teams, PagerDuty, Discord, and HTTP.
MCP tokens are scoped for read, write, or hybrid MCP plus OTel use.
MCP Server
Start with local telemetry, then let authorized leaders and operators ask CostHawk for usage, savings, anomalies, alerts, pricing, and ROI from the same assistant workflow.