Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’° Finance & Fintech
  3. Llm Cost Estimator
L
Health: ActiveRecent health check succeeded.Last checked 9/8/2026, 9:45:55 PM

Llm Cost Estimator

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository1 GitHub StarsTotal stargazers on GitHub for the source repository (1 stars).

Token counting & multi-model LLM cost estimates: GPT-4o, Claude, Gemini, 25+. No API key.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

One-click editor setup isn’t available for this listing yet β€” we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ
No confirmed setup config for this listing yet. We only publish a config block when the install details come from the project itself β€” its README, its docs, or a verified owner. We haven’t found those for llm-cost-estimator, and we’d rather show nothing than a guess you’d paste into your client. Follow the project’s own setup instructions for the current steps.
Install Directory Badge Claim listing AlternativesπŸ’° More in Finance & Fintech

Documentation Overview

LLM Cost & Token Estimator

See how many tokens your prompt uses β€” and what it'll cost on GPT-4o vs. Claude vs. Gemini β€” right inside VS Code. No API key, no billing dashboard, no guessing.

CI Version License: MIT

Why this exists

When you're building an LLM-powered app, two questions come up constantly: how many tokens is this prompt? and what will this call cost? Today you either guess, paste into a web tokenizer, or check the provider's billing console after the fact β€” all of which pull you out of your editor.

This extension answers both questions inline, and it answers them for several models at once, so you can make a real price/quality trade-off ("~$X on GPT-4o, ~$Y on Claude Sonnet, ~$Z on Claude Haiku") without leaving the file you're working in. It's local-first and works with zero configuration β€” no API key required.

Demo

LLM Cost & Token Estimator β€” hover a prompt to compare token count and cost across GPT-4o, Claude, and Gemini

Hover any prompt (or select text) to see its token count and cost across your models, side by side β€” cheapest first. Same comparison powers the CodeLens, the live status bar, and the Comparison Panel. (animated version)

Features

  • πŸ”€ Multi-model cost comparison β€” token count + estimated cost across all your configured models, side by side. This is the whole point.
  • πŸ›ˆ Hover tooltip β€” hover over a selection or a string literal (JS/TS/Python, plus Markdown/JSON/YAML/plaintext) to see the comparison inline.
  • πŸ”Ž CodeLens on prompts β€” a token-count + cost lens appears right above detected prompt strings in your code. Click it for the full breakdown.
  • πŸ“Š Live status bar β€” select any text and its token count + cost appear in the status bar instantly (no command needed); the tooltip shows every model.
  • πŸ—” Comparison Panel β€” a visual dashboard comparing the whole catalog with a live output-token slider (recomputes instantly), sortable columns, and a "configured models only" filter.
  • ⌨️ Commands β€” Estimate Selection, Estimate Clipboard, Open Comparison Panel, and Select Models to Compare.
  • πŸ—‚ 25+ models β€” GPT-4o/4.1/o-series, Claude 4/3.7/3.5, Gemini 2.5/2.0/1.5, DeepSeek, Mistral, Llama, Grok. Pick what you care about.
  • πŸ“ Workspace scan β€” one command finds every prompt in your project and reports the total estimated cost per run, with a clickable per-file breakdown.
  • βž• Custom models β€” add your own models/prices (or a negotiated rate) in settings; no need to edit bundled files.
  • ⚠️ Context-window warnings β€” a ⚠ appears when a prompt exceeds a model's context window.
  • πŸ“‹ Copy as Markdown β€” drop a ready-to-paste comparison table on your clipboard.
  • πŸ”’ Local-first, zero config β€” exact OpenAI tokenization runs entirely on your machine; pricing is bundled. No network calls, no API key.

A note on accuracy

  • OpenAI models use real BPE tokenization (o200k_base for the GPT-4o family, cl100k_base for GPT-4 / GPT-3.5) via js-tiktoken.
  • Anthropic, Google, and everyone else (DeepSeek, Mistral, Llama, Grok, …) do not publish reliable local tokenizers, so their counts are approximated using an OpenAI encoding and are clearly marked with a ~ and a disclaimer in the UI. They're great for ballpark cost comparison, not for exact billing. (An optional API-based accurate mode is a candidate for a future release.)

Also available as an MCP server (use it in Claude / Cursor)

This repo also ships an MCP server that exposes the same tokenizer + pricing engine as tools (estimate_cost, count_tokens, list_models) to Claude Desktop, Claude Code, Cursor, or any MCP client β€” so you can ask "what does this prompt cost on GPT-4o vs Claude vs Gemini?" right in your chat. See mcp-server/README.md for setup. Same local-first, no-API-key core β€” just a different front end.

Install

From the Marketplace (once published):

  1. Open the Extensions view (Ctrl+Shift+X / Cmd+Shift+X).
  2. Search for "LLM Cost & Token Estimator".
  3. Click Install.

From a .vsix:

bash
code --install-extension llm-cost-estimator-0.3.2.vsix

From source (for development): see Contributing.

Usage

  • Hover: hover over a string literal β€” or select text β€” in a supported file. A tooltip shows the per-model token count and cost.
  • CodeLens: open a JS/TS/Python file with prompt strings; a N tokens Β· ~$X Β· compare lens sits above each one. Click it for the full breakdown.
  • Live status bar: select any text β€” the status bar instantly shows its token count and cheapest cost; hover the item for the full comparison. Click it to open the Comparison Panel.
  • Comparison Panel: Command Palette β†’ LLM Cost: Open Comparison Panel (or the editor toolbar icon). Drag the output-token slider to see costs update live, sort by any column, or filter to your configured models.
  • Commands (Command Palette, Ctrl+Shift+P):
    • LLM Cost: Estimate Selection β€” selection, or the whole file if nothing is selected. Also on the editor right-click menu.
    • LLM Cost: Estimate Clipboard β€” estimate whatever you've copied.
    • LLM Cost: Open Comparison Panel β€” the visual dashboard.
    • LLM Cost: Scan Workspace for Prompts β€” project-wide prompt cost report.
    • LLM Cost: Copy Comparison as Markdown β€” table to clipboard.
    • LLM Cost: Select Models to Compare β€” pick models from the catalog.
    • LLM Cost: Refresh Pricing from the Web β€” pull current prices (see below).
    • LLM Cost: Reset Session Total β€” clear the running total.

How "total" is calculated: cost = input tokens + an assumed number of output tokens (output pricing is usually higher than input, so it matters). The assumption is configurable and always shown in the tooltip.

Code
cost = (inputTokens  / 1e6) * inputPer1M
     + (outputTokens / 1e6) * outputPer1M

Settings

All settings live under llmCostEstimator.*:

SettingTypeDefaultDescription
llmCostEstimator.modelsstring[]["gpt-4o", "claude-sonnet", "claude-haiku"]Models to compare. Each entry must be a key in pricing.json.
llmCostEstimator.outputTokenAssumptionnumber500Assumed output (completion) tokens used for the total-cost calculation.
llmCostEstimator.currencystring"USD"Currency label shown next to costs. Display only β€” does not convert (pricing is in USD).
llmCostEstimator.enableHoverbooleantrueShow the hover tooltip.
llmCostEstimator.enableCodeLensbooleantrueShow a CodeLens above detected prompt strings (JS/TS/Python).
llmCostEstimator.enableStatusBarSelectionbooleantrueShow the live token count + cost of the current selection in the status bar.
llmCostEstimator.customModelsobject{}Add or override models without editing pricing.json (see Custom models).
llmCostEstimator.refreshPricingOnStartupbooleanfalseFetch current prices from the web on startup (cached; falls back to bundled prices offline). See Live pricing.
llmCostEstimator.pricingSourceUrlstringLiteLLM dataURL of the live pricing source (LiteLLM-compatible JSON).

Available model keys (out of the box) β€” run LLM Cost: Select Models to Compare to pick from these visually:

  • OpenAI: gpt-4o, gpt-4o-mini, gpt-4.1, gpt-4.1-mini, gpt-4.1-nano, o3, o4-mini, gpt-4-turbo, gpt-4, gpt-3.5-turbo
  • Anthropic: claude-opus, claude-sonnet, claude-haiku, claude-3.7-sonnet, claude-3.5-sonnet, claude-3-opus
  • Google: gemini-2.5-pro, gemini-2.5-flash, gemini-2.0-flash, gemini-1.5-pro, gemini-1.5-flash
  • Others: deepseek-chat, deepseek-reasoner, mistral-large, mistral-small, llama-3.3-70b, llama-3.1-405b, grok-2

Example settings.json:

JSON Config
{
  "llmCostEstimator.models": ["gpt-4o", "gpt-4o-mini", "claude-sonnet", "gemini-1.5-flash"],
  "llmCostEstimator.outputTokenAssumption": 800,
  "llmCostEstimator.currency": "USD"
}

Custom models

Add your own models β€” or override a built-in price with a negotiated rate β€” without touching the bundled files, via llmCostEstimator.customModels:

JSON Config
{
  "llmCostEstimator.customModels": {
    "my-finetune": {
      "label": "My Fine-tune",
      "provider": "openai", // "openai" = exact tokenization; anything else = estimate
      "inputPer1M": 1.0,
      "outputPer1M": 2.0,
      "contextWindow": 128000 // optional, enables the ⚠ over-limit warning
    },
    "gpt-4o": { "label": "GPT-4o (our rate)", "provider": "openai", "inputPer1M": 2.0, "outputPer1M": 8.0 }
  }
}

Then add the key to llmCostEstimator.models (or pick it via Select Models to Compare). Invalid entries are reported and skipped, not silently dropped.

Live pricing

The bundled prices are representative placeholders. Run LLM Cost: Refresh Pricing from the Web (or enable llmCostEstimator.refreshPricingOnStartup) to pull current prices from a maintained source β€” by default LiteLLM's pricing data. The result is cached, so it keeps working offline and falls back to bundled prices on error.

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Finance & Fintech View all alternatives
  • Cost Seg Smart logoCost Seg Smart

    Cost segregation study pricing and Year-1 depreciation/tax-savings estimates for US properties.

    πŸ’° Finance & Fintech2 views
    Compare vs Cost Seg Smart β†’
  • Brazilian Central Bank (BCB) MCP logoBrazilian Central Bank (BCB) MCP
    Verified

    MCP server for the Brazilian Central Bank (Banco Central do Brasil): SGS time series (Selic, IPCA, exchange rates, GDP and 139 curated, source-verified indicators), the Focus market-expectations survey and PTAX official exchange rates. 15 tools, 3 resources and 3 prompts, with provenance metadata on every response. Runs locally via npx (stdio) or through the hosted endpoint at https://bcb.sidneybissoli.com/mcp β€” no API key or signup required.

    πŸ’° Finance & Fintech7 views
    Compare vs Brazilian Central Bank (BCB) MCP β†’
  • Vk Ads MCP logoVk Ads MCP

    MCP server for VK Ads API: campaigns, audiences, budgets, stats. Click.ru, token or OAuth.

    πŸ’° Finance & Fintech2 views
    Compare vs Vk Ads MCP β†’
  • Tokentrust logoTokentrust

    Verifies token/cost savings claimed by AI context-reduction proxies via MCP tools.

    πŸ’° Finance & Fintech2 views
    Compare vs Tokentrust β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars
1
Stargazers on the source repository.
Last commit
2mo ago
Most recent push to the default branch.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Llm Cost Estimator

We don't have a confirmed install command for llm-cost-estimator yet, so we don't publish a generated one β€” a guessed package name would point at the wrong package or none at all. Follow the project's own README or setup instructions (https://github.com/waqarulwahab/llm-cost-estimator) for the current steps.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLlm Cost Estimator AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/llm-cost-estimator?style=directory)](https://allmcps.com/mcp/llm-cost-estimator)
HTML Embed
<a href="https://allmcps.com/mcp/llm-cost-estimator"><img src="https://allmcps.com/api/badge/llm-cost-estimator?style=directory" alt="Llm Cost Estimator on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ’°Finance & Fintech
More technical detailsExpand β–Ύ
Last updatedJun 21, 2026
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars1
GitHub Star CountTotal stargazers on GitHub representing community popularity (1 stars).
Last commit2mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Jun 21, 2026
32Quality signal: Emerging Β· 32/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools11/30
Adoption & activity3/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedAllMCPs Server logo

AllMCPs Server

The official MCP server for AllMCPs.com - submit and manage tools directly from your AI. The open directory for MCP servers. Connect Claude, Cursor, Windsurf, and AI agents to databases, tools, files, and APIs. Explore 10,000+ servers. AllMCPs is the premier, open directory for discovering, evaluating, and installing Model Context Protocol (MCP) servers to equip AI agents and LLMs with real-world superpowers.

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge and attach your website β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’° Finance & Fintech β†’Best MCP servers for Finance & Fintech β†’Alternatives to Llm Cost Estimator β†’Install in Claude DesktopInstall in CursorInstall in VS Code