Metrxbots MCP MCP Server

Metrx MCP Server — AI agent cost intelligence tools for LLM agents. Track spend, optimize models, manage budgets, detect waste, and prove ROI.

Local serverstdio

What is the Metrxbots MCP MCP server?

Metrx MCP Server — AI agent cost intelligence tools for LLM agents. Track spend, optimize models, manage budgets, detect waste, and prove ROI. That is what the metrxbots mcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

This starts the server with sample data so you can explore all 23 tools instantly.

The tools it exposes

The server publishes 14 tools. What each one is for:

  • metrx_get_cost_summary — Comprehensive cost summary — total spend, call counts, error rates, and optimization opportunities
  • metrx_list_agents — List all agents with status, category, cost metrics, and health indicators
  • metrx_get_agent_detail — Detailed agent info including model, framework, cost breakdown, and performance history
  • metrx_get_optimization_recommendations — AI-powered cost optimization recommendations per agent or fleet-wide
  • metrx_apply_optimization — One-click apply an optimization recommendation to an agent
  • metrx_route_model — Model routing recommendation for a specific task based on complexity
  • metrx_compare_models — Compare LLM model pricing and capabilities across providers
  • metrx_get_budget_status — Current status of all budget configurations with spend vs. limits
  • metrx_set_budget — Create or update a budget with hard, soft, or monitor enforcement
  • metrx_update_budget_mode — Change enforcement mode of an existing budget or pause/resume it
  • metrx_get_alerts — Active alerts and notifications for your agent fleet
  • metrx_acknowledge_alert — Mark one or more alerts as read/acknowledged

Getting it running

Installation goes through your MCP client rather than a global install: point it at @metrxbot/mcp-server on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What it needs from you

Configuration is passed through the environment: METRX_API_KEY, METRX_API_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

How it compares

Plenty of AI and media services servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Metrxbots MCP's toolset — metrx_get_cost_summary, metrx_list_agents, metrx_get_agent_detail and 11 more — is a fair guide to whether it matches your workflow. It is maintained by metrxbots; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Metrxbots MCP.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
metrx_get_cost_summaryComprehensive cost summary — total spend, call counts, error rates, and optimization opportunities
metrx_list_agentsList all agents with status, category, cost metrics, and health indicators
metrx_get_agent_detailDetailed agent info including model, framework, cost breakdown, and performance history
metrx_get_optimization_recommendationsAI-powered cost optimization recommendations per agent or fleet-wide
metrx_apply_optimizationOne-click apply an optimization recommendation to an agent
metrx_route_modelModel routing recommendation for a specific task based on complexity
metrx_compare_modelsCompare LLM model pricing and capabilities across providers
metrx_get_budget_statusCurrent status of all budget configurations with spend vs. limits
metrx_set_budgetCreate or update a budget with hard, soft, or monitor enforcement
metrx_update_budget_modeChange enforcement mode of an existing budget or pause/resume it
metrx_get_alertsActive alerts and notifications for your agent fleet
metrx_acknowledge_alertMark one or more alerts as read/acknowledged
metrx_get_failure_predictionsPredictive failure analysis — identify agents likely to fail before it happens
metrx_create_model_experimentStart an A/B test comparing two LLM models with traffic splitting

How to install the Metrxbots MCP MCP server

{
  "mcpServers": {
    "metrxbots": {
      "command": "npx",
      "args": ["-y", "@metrxbot/mcp-server"],
      "env": {
        "METRX_API_KEY": "your-value",
        "METRX_API_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
METRX_API_KEYCredential the server authenticates with.Yes
METRX_API_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Metrxbots MCP to metrx get cost summary.
  • Use Metrxbots MCP to metrx list agents.
  • Use Metrxbots MCP to metrx get agent detail.

Frequently asked questions

It connects Metrxbots MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (metrx_get_cost_summary, metrx_list_agents, metrx_get_agent_detail, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Metrxbots MCP directly.