Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"metrx": {
"args": [
"@metrxbot/mcp-server"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Your AI agents are wasting money. Metrx finds out how much, and fixes it.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y '@metrxbot/mcp-server' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked @metrxbot/mcp-server against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in analytics
MCP Server for GCP environment for interacting with various Observability APIs.
⚡ A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.
MCP server for InsightSentry financial data API - market data, options, screeners, and more
MCP server for Google Lighthouse performance metrics
MCP Security Weekly
Get CVE alerts and security updates for io.github.metrxbots/mcp-server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Your AI agents are wasting money. Metrx finds out how much, and fixes it.
The official MCP server for Metrx — the AI Agent Cost Intelligence Platform. Give any MCP-compatible agent (Claude, GPT, Gemini, Cursor, Windsurf) the ability to track its own costs, detect waste, optimize model selection, and prove ROI.
| Problem | What Metrx Does |
|---|---|
| No visibility into agent spend | Real-time cost dashboards per agent, model, and provider |
| Overpaying for LLM calls | Provider arbitrage finds cheaper models for the same task |
| Runaway costs | Budget enforcement with auto-pause when limits are hit |
| Wasted tokens | Cost leak scanner detects retry storms, context bloat, model mismatch |
| Can't prove AI ROI | Revenue attribution links agent actions to business outcomes |
npx @metrxbot/mcp-server --demo
This starts the server with sample data so you can explore all 23 tools instantly.
Option A — Interactive login (recommended):
npx @metrxbot/mcp-server --auth
Opens your browser to get an API key, validates it, and saves it to ~/.metrxrc so you never need to set env vars.
Option B — Environment variable:
METRX_API_KEY=sk_live_your_key_here npx @metrxbot/mcp-server --test
Get your free API key at app.metrxbot.com/sign-up.
If you used --auth, no env block is needed — the key is read from ~/.metrxrc automatically:
{
"mcpServers": {
"metrx": {
"command": "npx",
"args": ["@metrxbot/mcp-server"]
}
}
}
Or pass the key explicitly via environment:
{
"mcpServers": {
"metrx": {
"command": "npx",
"args": ["@metrxbot/mcp-server"],
"env": {
"METRX_API_KEY": "sk_live_your_key_here"
}
}
}
}
For remote agents (no local install needed):
POST https://metrxbot.com/api/mcp
Authorization: Bearer sk_live_your_key_here
Content-Type: application/json
npm install @metrxbot/mcp-server
| Tool | Description |
|---|---|
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 |
| Tool | Description |
|---|---|
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 |