AI-Cost-CLI & MCP
v1.3.0AI API cost calculator, budget estimator & MCP server.
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add aicost-cli -- npx -y aicost-mcp@1.3.0Add to
claude_desktop_config.json{
"mcpServers": {
"aicost-cli": {
"args": [
"-y",
"aicost-mcp@1.3.0"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"aicost-cli": {
"args": [
"-y",
"aicost-mcp@1.3.0"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"aicost-cli": {
"args": [
"-y",
"aicost-mcp@1.3.0"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.aicost-cli]
command = "npx"
args = ["-y", "aicost-mcp@1.3.0"]PyPI (uvx)
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add aicost-cli -- uvx aicost-cli==1.3.0 mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"aicost-cli": {
"args": [
"aicost-cli==1.3.0",
"mcp"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"aicost-cli": {
"args": [
"aicost-cli==1.3.0",
"mcp"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"aicost-cli": {
"args": [
"aicost-cli==1.3.0",
"mcp"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.aicost-cli]
command = "uvx"
args = ["aicost-cli==1.3.0", "mcp"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_ai_models, calculate_ai_cost, get_ai_cost, compare_ai_models, recommend_ai_model, estimate_monthly_cost, get_pricing_metadata, sync_pricing_data.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json