
Security News
Re-Enabled GitHub Actions Expose Thousands of Repositories to Mini Shai-Hulud
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.
ai-cost-analyzer
Advanced tools
MCP server that helps developers understand and reduce their AI API costs through usage analysis, savings estimation, prompt optimization, and model comparison.
An MCP (Model Context Protocol) server that helps developers understand and reduce their AI API costs. Stop wasting 30-40% of your token budget on unused tool definitions, redundant context, and cache misses.
| Plan | Price | |
|---|---|---|
| Free trial | $0 | 3 calls total (shared across all tools), no credit card — just run it |
| Indie | $29/mo | Buy → |
| Team | $99/mo | Buy → |
| Enterprise | $299/mo | Buy → |
License keys are emailed instantly after checkout. Activate via the LICENSE_KEY environment variable. More info: aivp-mcp.vercel.app
No install step needed — run straight from npm:
npx -y ai-cost-analyzer
Or install globally:
npm install -g ai-cost-analyzer
Add to your claude_desktop_config.json:
{
"mcpServers": {
"ai-cost-analyzer": {
"command": "npx",
"args": ["-y", "ai-cost-analyzer"],
"env": { "LICENSE_KEY": "<your license key — omit for free trial>" }
}
}
}
claude mcp add ai-cost-analyzer -- npx -y ai-cost-analyzer
# Start the SSE server (default port 3000)
npx -y ai-cost-analyzer --sse
# Or specify a custom port
PORT=8080 npx -y ai-cost-analyzer --sse
analyze_usageAccepts API usage data and returns detailed cost analysis.
Input:
{
"usage_data": [
{
"model": "claude-sonnet",
"input_tokens": 15000,
"output_tokens": 3000,
"cached_tokens": 5000,
"timestamp": "2026-03-15T10:30:00Z",
"tool_definitions": 12,
"system_prompt_tokens": 3500
},
{
"model": "claude-opus",
"input_tokens": 8000,
"output_tokens": 4000,
"timestamp": "2026-03-15T11:00:00Z"
}
]
}
Output includes:
estimate_savingsEstimates monthly savings from optimization strategies.
Input:
{
"usage_data": [
{
"model": "claude-sonnet",
"input_tokens": 12000,
"output_tokens": 2500,
"cached_tokens": 0,
"timestamp": "2026-03-15T10:00:00Z",
"tool_definitions": 15
}
],
"monthly_multiplier": 30
}
Output includes:
optimize_promptAnalyzes and optimizes a system prompt and tool definitions.
Input:
{
"system_prompt": "You are a helpful assistant. Please make sure to always respond in a professional manner. It is important to note that you should be concise. You are a helpful assistant that responds professionally.",
"tool_definitions": [
"{\"name\": \"search\", \"description\": \"Search the web for information\"}",
"{\"name\": \"calculator\", \"description\": \"Perform mathematical calculations\"}"
],
"requests_per_month": 50000,
"model": "claude-sonnet"
}
Output includes:
compare_modelsCompares models for a given task with cost/quality tradeoff analysis.
Input:
{
"task_description": "Classify customer support tickets into categories",
"estimated_input_tokens": 800,
"estimated_output_tokens": 50
}
Output includes:
get_pricingReturns current LLM API pricing. No input required.
Output includes:
| Model | Input/1M | Output/1M | Cached Input/1M |
|---|---|---|---|
| Claude Opus | $15.00 | $75.00 | $1.50 |
| Claude Sonnet | $3.00 | $15.00 | $0.30 |
| Claude Haiku | $0.25 | $1.25 | $0.025 |
| GPT-4o | $2.50 | $10.00 | $1.25 |
| GPT-4o Mini | $0.15 | $0.60 | $0.075 |
| Gemini 2.0 Flash | $0.10 | $0.40 | $0.025 |
| Plan | Price | Includes |
|---|---|---|
| Indie | $29/month | 1 seat, all tools, email support |
| Team | $99/month | 5 seats, all tools, priority support, shared dashboards |
| Enterprise | $299/month | Unlimited seats, all tools, dedicated support, SSO, custom integrations |
All plans include unlimited tool calls and full access to pricing data updates.
# Watch mode for development
npm run dev
# Build for production
npm run build
# Run with stdio transport
npm start
# Run with SSE transport
npm run start:sse
src/
index.ts Main server entry point, tool registration, transport setup
types.ts Shared TypeScript types and interfaces
tools/
analyze.ts analyze_usage: cost breakdown, waste detection, trends
savings.ts estimate_savings: caching, routing, pruning projections
optimize.ts optimize_prompt: prompt analysis and optimization
compare.ts compare_models: cross-model cost/quality comparison
pricing.ts get_pricing: pricing data and cost computation helpers
MIT
FAQs
MCP server that helps developers understand and reduce their AI API costs through usage analysis, savings estimation, prompt optimization, and model comparison.
The npm package ai-cost-analyzer receives a total of 20 weekly downloads. As such, ai-cost-analyzer popularity was classified as not popular.
We found that ai-cost-analyzer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.

Research
/Security News
The compromise affects MemTensor's MemOS, an open source memory framework for large language models (LLMs) and AI agents. Both npm package @memtensor/memos-cloud-openclaw-plugin and the PyPI package MemoryOS are compromised. They drop cross-platform Go binaries that exfiltrate developer secrets.