npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-server-agent-analytics

v1.1.1

Published

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

Downloads

183

Readme

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

| Tool | Description | Required Params | |------|-------------|-----------------| | analytics_dashboard | Fleet-wide dashboard — total events, unique agents, success rate, token usage, cost estimates, per-agent breakdowns, trending topics, daily volume | days (optional, default: 30) | | agent_insights | Deep insights for a specific agent — top queries, unhandled intents, latency stats (avg + P95), token usage, cost, daily volume, feedback | agent_id | | list_agents | List all registered agents with total events, success rate, and last seen timestamp | — | | detect_anomalies | Check for anomalies — error rate spikes, latency degradation, unusual patterns vs baseline | — | | query_events | Query stored events with optional filters for analysis | agent_id, event_type, days, limit, success (all optional) | | track_event | Ingest 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_agents | Compare two agents side by side on volume, success rate, latency, tokens, and cost | agent1, 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

| Variable | Description | |----------|-------------| | MT_ANALYTICS_API_KEY | API key (required for authenticated endpoints) | | MT_ANALYTICS_URL | Server URL (default: https://analytics.metaltorque.dev) |