npm @skillfm/claude-code-token-usage-mcpstdioMITupdated 3mo ago
Claude Code token usage and cost visibility for MCP-capable agents.
¿Qué puedes hacer con SkillFM Claude Code Token Usage?
SkillFM Claude Code Token Usage MCP
Claude Code token usage and cost visibility for MCP-capable agents.
This repository is a transparent SkillFM gateway package. It exists to match a specific marketplace/search intent, then delegates execution to the canonical SkillFM Beacon MCP and local runtime.
Powered by SkillFM Beacon.
Quick Start
Use this gateway as an MCP stdio server:
npx -y @skillfm/claude-code-token-usage-mcp@latest
Equivalent explicit SkillFM entrypoint:
npx -y @skillfm/mcp@latest
For MCP clients that accept JSON config:
{
"mcpServers": {
"claude-code-token-usage": {
"command": "npx",
"args": ["-y", "@skillfm/claude-code-token-usage-mcp@latest"]
}
}
}
What This Gateway Helps With
- Inspect Claude Code token usage and estimated cost signals.
- Connect usage visibility to SkillFM Beacon AI health checks.
- Find repeated context, stale sessions, and cost-saving opportunities.
- Route users toward local-first SkillFM activation without asking for provider keys first.
This gateway is for users who ask:
- "How many Claude Code tokens did I use today?"
- "Why did my Claude Code usage spike?"
- "Which sessions or projects are wasting context?"
- "Can my agent show me token usage before I connect provider keys?"
How It Works
The public package is intentionally thin. It sets SKILLFM_GATEWAY_SOURCE=claude-code-token-usage and forwards execution to @skillfm/mcp@latest, which then delegates to the canonical @skillfm/local runtime.
No private SkillFM platform logic, customer data, provider credentials, or backend modules live in this repository.
Activation Path
Start the local sidecar when the user wants to connect SkillFM:
npx -y @skillfm/claude-code-token-usage-mcp@latest start
Agent-driven activation flow:
- Read the sidecar URL from stdout or
~/.skillfm/local.json. - Call
POST <sidecar_url>/activate/start. - Show the returned verification URL and real device code to the user.
- Poll
POST <sidecar_url>/activate/polluntil it returnsactivated: true. - Use SkillFM Beacon MCP tools for checkups, usage visibility, BYOK guidance, and cleanup audits.
Do not fabricate a placeholder code. The device code must come from POST /activate/start.
Security Model
- Transparent gateway: This package is a public search/distribution gateway, not a separate hidden product.
- Local-first runtime: Runtime execution goes through SkillFM's local package.
- BYOK boundary: Provider keys are introduced only after user value is established, and key values are not read back by agents.
- No private core: This repository contains distribution metadata, docs, and a thin launcher only.
- Read-only first: Cleanup and usage inspection begin with read-only audits.
See PRIVACY.md and SECURITY.md.
Marketplace Keywords
Claude Code token usage, Claude usage, token cost, LLM cost, AI health checkup, agent monitoring, context cleanup, SkillFM Beacon, MCP server.
Expected Official MCP Registry single-token hits:
claude-codetokenusagecostskillfm
License
MIT
Instalación
Añade SkillFM Claude Code Token Usage a tu cliente. Elige el que uses.
claude mcp add claude-code-token-usage-mcp -- npx -y @skillfm/claude-code-token-usage-mcpcodex mcp add claude-code-token-usage-mcp -- npx -y @skillfm/claude-code-token-usage-mcpamp mcp add claude-code-token-usage-mcp -- npx -y @skillfm/claude-code-token-usage-mcp{
"mcpServers": {
"claude-code-token-usage-mcp": {
"command": "npx",
"args": [
"-y",
"@skillfm/claude-code-token-usage-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"claude-code-token-usage-mcp": {
"command": "npx",
"args": [
"-y",
"@skillfm/claude-code-token-usage-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"claude-code-token-usage-mcp","command":"npx","args":["-y","@skillfm/claude-code-token-usage-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"claude-code-token-usage-mcp": {
"command": "npx",
"args": [
"-y",
"@skillfm/claude-code-token-usage-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"claude-code-token-usage-mcp": {
"command": "npx",
"args": [
"-y",
"@skillfm/claude-code-token-usage-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"claude-code-token-usage-mcp": {
"command": "npx",
"args": [
"-y",
"@skillfm/claude-code-token-usage-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"claude-code-token-usage-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@skillfm/claude-code-token-usage-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"claude-code-token-usage-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"@skillfm/claude-code-token-usage-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @skillfm/claude-code-token-usage-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
Puntuación
39 / 100
Incompleta
- Documentación22/25
- Mantenimiento13/25
- Confianza13/20
- Capacidad0/15
- Instalación12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 104 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Historial de versiones
| Versiones | Publicada |
|---|---|
| 0.1.0Última | 20 may 2026 |