Back to Home
nik1097 icon

mcp-server-token-cost-estimator

Verified Safe

by nik1097

Overview

Estimates the token cost of individual tool responses from an MCP server to help clients understand LLM inference expenses.

Installation

Run Command
uv run mcp-tok https://mcp.morningstar.com/mcp --tools-config tools.json --token YOUR_TOKEN

Security Notes

The project functions as a client to an external MCP server, with the server URL and authentication token provided by the user. It uses standard JSON parsing (`json.loads`) which is generally safe. No 'eval' or similar dangerous functions were found. The primary security consideration is operational: ensuring the user points the client to a trusted MCP server, as the tool will interact with whatever URL it is given.

Similar Servers

Stats

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

Tags

LLM cost estimationMCP server analysisAPI costDeveloper toolToken counting