Token Lens

MCP server · npm · graded 2026-10-24Source linked

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

No outside reports on file

Token Lens requires API keys or tokens; restrict its folder reach, network access, and credentials before installing.

Based on public adoption and transparency signals as of Oct 24, 2026. Our opinion, not a code audit or security guarantee.

Was this verdict for Token Lens helpful?

What it can access

  • Local filesNo local folder access notedLOW
  • Command executionNo shell command runner notedLOW
  • Network reachLocal or standard API callsLOW
  • CredentialsRequires API key or tokenREVIEW
  • Package sourcenpm (@kunal_dutt/token-lens)PUBLIC

Inferred from this listing’s public package details and description. Check the project’s source before installing.

Install

npx -y @kunal_dutt/token-lens

All setup options ↓

About Token Lens

Token Lens is an MCP server focused on Data & databases and Communication: Count and cut tokens in prompts, chats and agents for any model. Runs locally, collects no data.

It is published on npm as @kunal_dutt/token-lens. Based on its public metadata, its operational scope includes: requires api key or token.

Setup

These use the package this listing points to. Check the project’s own instructions before running anything.

npm command

npx -y @kunal_dutt/token-lens

MCP client config

For Claude Desktop (claude_desktop_config.json) or Cursor (.cursor/mcp.json).

json
{
  "mcpServers": {
    "token-lens": {
      "command": "npx",
      "args": [
        "-y",
        "@kunal_dutt/token-lens"
      ]
    }
  }
}

Why this grade

FF — Many risk signals

Signal-based grade (0/7 points): no public source code found. This reflects adoption and transparency, not a code review.

Popularity and upkeep

4/100
Listing last refreshed
2026-10-29

These are public popularity signals, not a maintenance check. Look at the repository’s commit history and open issues.

Security reports

No reports found for this package in our research (last checked 2026-10-29).

Check a specific version →

Risks to watch for

  • Credential & token exposure: Requires API keys or secrets in configuration. Store credentials in environment variables with read-only or minimum required scopes and rotate them regularly.
  • Dependency & version pinning: Distributed via npm (@kunal_dutt/token-lens). Pin an exact release version or commit SHA rather than floating tags so upstream updates are reviewed first.

How to lower the risk

Least-privilege permissions

  • Give it access only to the specific folders, accounts or projects it needs, never your whole drive or admin account.
  • Use a separate, limited API key or login just for this tool so you can switch it off without affecting anything else.

Network isolation

  • Run it on a work computer or sandbox account, not one holding personal or company-sensitive data.
  • If your IT team can, limit which websites and services it is allowed to contact.

Monitoring

  • Check its activity history or logs weekly at first, and look at what it changed or sent.
  • Turn on alerts for new logins or unusual usage on any account it connects to.

Red flags to watch for

  • It asks for more access than its job requires, or prompts you to paste passwords.
  • It suddenly updates with new owners, or starts contacting unfamiliar websites.

Questions

How do I install Token Lens?

Run npx -y @kunal_dutt/token-lens in your terminal, or add the server entry to your claude_desktop_config.json or .cursor/mcp.json as shown in the Setup section on this page.

Are there security reports about Token Lens?

No reports found for this package in our research (last checked 2026-10-29). Token Lens currently holds Grade F (Many risk signals) based on public adoption and transparency signals. Review the permissions and source repository before granting access to local files, shell commands, or API keys.

Is Token Lens actively maintained?

We do not have star or download counts on file for Token Lens yet (listing refreshed 2026-10-29). Check the commit history and open issues before relying on it.

What are alternatives to Token Lens?

Compare Token Lens side by side with similar MCP servers in the Related tools section on this page, or browse all MCP servers on AgentArmorHQ.

README badge and team notes

Maintain or use Token Lens? Show its live grade in your GitHub README, docs site, or run a check from the terminal before you install.

AgentArmorHQ Risk Grade F for Token Lens

GitHub README Markdown:

markdown
[![AgentArmorHQ Risk Grade for Token Lens](https://agentarmorhq.com/api/badge/token-lens)](https://agentarmorhq.com/skills/token-lens)

HTML embed:

html
<a href="https://agentarmorhq.com/skills/token-lens"><img src="https://agentarmorhq.com/api/badge/token-lens" alt="AgentArmorHQ Risk Grade for Token Lens" height="20" /></a>

Terminal check:

terminal
curl -fsSL https://agentarmorhq.com/api/cli | node --input-type=module - check "token-lens"

Share with your security lead

Need sign-off to use Token Lens? Copy this note for Slack, a ticket or a pull request.

### AgentArmorHQ Security Review Memo: Token Lens
- **Listing URL:** https://agentarmorhq.com/skills/token-lens
- **Type:** App connector
- **Risk Grade:** Grade F (Many risk signals)
- **Outside Security Advisories on File:** 0

#### Permission & Blast-Radius Signals
- **Local files:** No local folder access noted
- **Command execution:** No shell command runner noted
- **Network reach:** Local or standard API calls
- **Credentials:** Requires API key or token
- **Package source:** npm (@kunal_dutt/token-lens)

#### Recommended Hardened Setup
- **Command:** `npx -y --ignore-scripts @kunal_dutt/token-lens`
- **Controls:** Pin an exact version in `.mcp.json`, scope access to a single workspace folder, and use a least-privilege read-only token where supported.

_Based on public adoption and transparency signals as of Oct 24, 2026. Our opinion, not a code audit or security guarantee._

Key facts

Type
App connector
Install command
npm install @kunal_dutt/token-lens
Est. context load
~850 tokens / turn (~5 tool schemas, 0.43% of 200k context)
Last updated
2026-10-29
Last graded
2026-10-24

Community

Discussions for Token Lens

Ask questions or share configuration tips. Governed by our Community Rules & Terms.

No posts match this filter yet.

Be the first to ask a question or share a working tip.

Was this listing for Token Lens helpful?

Check before you install, in Claude

Your assistant answers Block, Review or No known issues for any package before it installs it.

Get this check inside Claude