mcp-server-cost-estimator
Verified Safeby nik1097
Overview
Estimates the token cost of tool responses from an MCP server, helping developers and clients understand LLM inference expenses.
Installation
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
mcp-sdk-functions-hosting-python
Hosts remote Model Context Protocol (MCP) servers built with Python SDK on Azure Functions as custom handlers for AI agent tools.
diagram-mcp-server
Generates infrastructure diagrams from Python code or Infrastructure-as-Code (IaC) files across various cloud providers and on-premises environments.
lex
Provides a UK legal research API for AI agents, offering capabilities to search legislation, caselaw, amendments, and explanatory notes using semantic and keyword search, and includes a Micro-Copilot (MCP) server for integration with AI assistants.
sample-cfm-tips-mcp
A comprehensive Model Context Protocol (MCP) server for AWS cost analysis and optimization recommendations, designed to integrate with Kiro CLI and other MCP-compatible clients.