Back to Home
nik1097 icon

mcp-server-cost-estimator

Verified Safe

by nik1097

Overview

Estimates the token cost of tool responses from an MCP server, helping developers and clients understand LLM inference expenses.

Installation

Run Command
uv run mcp-tok https://<YOUR_MCP_SERVER_URL> --tools-config tools.json --token <YOUR_BEARER_TOKEN>

Security Notes

The tool is a client that makes HTTP requests to a user-provided MCP server URL. There are no 'eval' or similar dangerous functions, no obfuscation, and no hardcoded secrets. Authentication tokens are passed via command-line arguments. Any security implications would primarily arise from the server it connects to, or from the user exposing their token, not from vulnerabilities within the tool's code itself. It handles JSON parsing and network interactions robustly.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens1000
Stars0
Forks1
Last Update2025-12-11

Tags

Token Cost EstimationMCP ServerLLM Cost AnalysisAPI ClientPerformance Monitoring