agent-cost-lens-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-cost-lens-mcpPreview my upload metadata before sending to server."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
name: agent-cost-lens-mcp description: See where your agent token money goes — and the caching fixes that recover it. Local sweep, local scrub, metadata-only upload — audit it yourself with preview_upload before anything is sent. capabilities: [cost-analysis, cache-waste-detection, caching-advice, spend-reporting]
Agent Cost Lens — MCP client
Two tools:
preview_upload — shows exactly what would be sent (scrubbed usage metadata: token counts, model IDs, dates, pseudonymous tags). Sends nothing. Works with zero configuration.
analyze_costs — sends that metadata to your Agent Cost Lens server and returns your spend, cache-hit rate, and what proper caching recovers (figures are simulated upper bounds, labeled as such).
Related MCP server: Azure FinOps MCP Server
It names the fix
On API-log runs the report goes past measurement: a pattern catalog names your
specific cache-waste — uncached history (missing cache_control on a stable
prefix), cache churn (write premium with little read-back), volatile prefixes
(something early in the prompt changing per request) — with what fixing each
recovers, computed from your own usage and labeled (simulated). When your
caching is already good, it says so: "caching can't help this workload" is a
first-class result, not a failure state.
Privacy
Prompt text and code never leave your machine — the wire format has no field
for them. Repo and session names are HMAC-pseudonymized with a salt that
never leaves ~/.config/agent-cost-lens/salt. Run preview_upload and read
the payload yourself; that output is the whole story.
Setup
{
"mcpServers": {
"agent-cost-lens": {
"command": "acl-mcp",
"env": {
"LENS_SERVER_URL": "https://your-analyzer.example",
"LENS_API_KEY": "acl_..."
}
}
}
}Install: pip install <tarball> (or uvx --from <dir> acl-mcp). Get a key
from the operator. preview_upload needs neither.
Reviewed 5 August 2026.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceMCP server that analyzes AI agent session logs to find token waste and optimization opportunities.6MIT
- Alicense-qualityDmaintenanceAnalyzes Azure cloud costs, audits for waste, and provides budget insights via natural language through a secure local MCP server.2MIT
- AlicenseAqualityDmaintenanceTracks AI agent token usage and spending in real time, with budget alerts, per-task cost breakdown, and a visual dashboard.61MIT
- Flicense-qualityBmaintenanceLocal LLM cost & token forensics proxy with anomaly detection, enabling security teams to scan for cost anomalies and abuse patterns, and expose results via MCP for autonomous agents.
Related MCP Connectors
Track, analyze, and act on your streaming and SaaS subscriptions from any AI agent.
See, price, and control every tool call your AI agents make: policy checks, cost, and audit tools.
Agent Cost Allocator MCP — multi-tenant LLM cost attribution for chargeback billing. Companion to
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/r-lattice/agent-cost-lens-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server