MCPSpend
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCPSPEND_API_KEY | No | MCPSpend API key. Optional — try_demo tool works without it. | |
| MCPSPEND_ENDPOINT | No | Optional. Defaults to https://api.mcpspend.com. | https://api.mcpspend.com |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_today_costA | Get total tool-call cost and call count for the current day (UTC). Returns a human-readable summary plus structured data. |
| get_usage_this_monthA | Returns calls used this month, plan limit, percentage used, and a projection for the rest of the month based on the current daily average. Use this to spot when an org is about to hit the cap. |
| list_top_toolsA | Top tools by total cost over the past N days. Optionally limit how many entries to return. Useful for finding "what is the most expensive thing my agents do". |
| list_recent_sessionsA | Recent agent sessions (each MCP-client process start = one session) with model, total cost, tool call count, and duration. |
| get_session_detailsA | Drill into a single session by ID: returns the session summary plus every tool call (up to 500) with timing, cost, and success. |
| estimate_costA | Estimate the USD cost of an MCP tool call BEFORE invoking it. Returns expected cost based on the historical average for this (server, tool, model) combo in this org over the last 30 days. Use this to make spend-aware decisions — e.g. confirm with the user before calling tools that would cost more than $0.10. Returns 0 + isUnknown=true when no history exists yet. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
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/andreisirbu91-lab/MCPSpend'
If you have feedback or need assistance with the MCP directory API, please join our Discord server