Token Lens

io.github.duttkunal101-labPublished by GitHub account duttkunal101-labv0.2.37Updated Oct 24, 2026

Count and cut tokens in prompts, chats and agents for any model. Runs locally, collects no data.

VerifiedSTDIODesktop onlyAI & ML

Overview

AI-generated overview

Token Lens is a local MCP server that counts and trims tokens in prompts, chats and agent contexts for any model.

What you can do
Token Lens provides token counting and token cutting for prompts, chat histories and agent contexts, described as working for any model. It runs as a local process on the user's machine over stdio and, according to its description, collects no data. No individual tools are listed in the manifest.
When to use it
Worth adding when you want an assistant to measure how many tokens a prompt or conversation uses, or to shorten context before sending it to a model, without relying on a hosted service.
Requirements
A local runtime for the npm package @kunal_dutt/token-lens, launched over stdio. The manifest declares no authentication, no environment variables and no headers. Desktop only; not available as a web executable.
Before you install
The description states it runs locally and collects no data, but no tool list or README is available, so the exact operations and any file access cannot be verified before installing.

Installation

In SourceWeft

  1. Open Token Lens in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

6
  1. v0.2.37LatestOct 17, 2026
  2. v0.2.33Oct 17, 2026
  3. v0.2.31Oct 16, 2026
  4. v0.2.25Oct 15, 2026
  5. v0.2.23Oct 15, 2026
  6. v0.2.21Oct 14, 2026

Score

25% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts

    Declare a GitHub repository with a README, or serve resource_documentation in the OAuth protected-resource metadata.

  • License10 pts

    Declare a license in the repository or the registry entry.