🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

mcp-server-agent-analytics

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mcp-server-agent-analytics

MCP server for AI agent fleet analytics — track performance, costs, anomalies, and trends across agents.

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

mcp-server-agent-analytics

MCP server for MetalTorque Agent Analytics — gives AI agents the ability to monitor fleet performance, track costs, detect anomalies, and compare agents.

Works with Claude Desktop, Claude Code, Cursor, and any MCP-compatible client.

Setup

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "agent-analytics": {
      "command": "npx",
      "args": ["-y", "mcp-server-agent-analytics"],
      "env": {
        "MT_ANALYTICS_API_KEY": "your-api-key-here"
      }
    }
  }
}

Claude Code

claude mcp add agent-analytics -- npx -y mcp-server-agent-analytics

Set the API key in your environment:

export MT_ANALYTICS_API_KEY=your-api-key-here

Tools

ToolDescriptionRequired Params
analytics_dashboardFleet-wide dashboard — total events, unique agents, success rate, token usage, cost estimates, per-agent breakdowns, trending topics, daily volumedays (optional, default: 30)
agent_insightsDeep insights for a specific agent — top queries, unhandled intents, latency stats (avg + P95), token usage, cost, daily volume, feedbackagent_id
list_agentsList all registered agents with total events, success rate, and last seen timestamp
detect_anomaliesCheck for anomalies — error rate spikes, latency degradation, unusual patterns vs baseline
query_eventsQuery stored events with optional filters for analysisagent_id, event_type, days, limit, success (all optional)
track_eventIngest a new agent interaction event (queries, completions, errors, feedback)agent_id, plus optional event_type, query, latency_ms, prompt_tokens, response_tokens, success, error
compare_agentsCompare two agents side by side on volume, success rate, latency, tokens, and costagent1, agent2

Usage Examples

Once configured, just ask your AI assistant:

  • "Show me the agent fleet dashboard"
  • "How is my-agent performing this week?"
  • "Are there any anomalies in my agents?"
  • "Compare agent-a and agent-b"
  • "Track a query event for my-agent with 2300ms latency"
  • "List all my agents"
  • "Show me events for my-agent from the last 7 days"

Environment Variables

VariableDescription
MT_ANALYTICS_API_KEYAPI key (required for authenticated endpoints)
MT_ANALYTICS_URLServer URL (default: https://analytics.metaltorque.dev)

Keywords

mcp

FAQs

Package last updated on 01 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts