MCP.so
ログイン

MCP Analytics Middleware

@Phillip-Kemper

基本情報

カテゴリ

データと分析

ライセンス

MIT

トランスポート

stdio

作者

Phillip-Kemper

MCP Analytics Middleware について

A lightweight TypeScript middleware for MCP SDK servers that delivers analytics. Captures request metrics, performance data, and usage patterns with minimal overhead. Features real-time monitoring, configurable data collection, and detailed reporting - all with full type safety.

MCP Analytics Middleware の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-analytics-middleware": {
      "command": "npx",
      "args": [
        "-p",
        "mcp-analytics-middleware",
        "web-viewer",
        "--db-path",
        "analytics.db"
      ]
    }
  }
}

MCP Analytics Middleware のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

上のボタンで一時的なサンドボックスでこのサーバーを実行し、ツール一覧を取得できます。

概要

What is MCP Analytics Middleware?

MCP Analytics Middleware is a simple way to track and visualize how your MCP server is being used. It records tool calls and resource requests, tracks performance metrics and error rates, and provides a web dashboard for live analytics. It is for developers who want to understand which tools are most popular, catch errors early, and monitor server performance.

How to use MCP Analytics Middleware?

Install via yarn add mcp-analytics-middleware, then import McpAnalytics and wrap your McpServer instance with analytics.enhance(server). You can launch the live web dashboard with npx -p mcp-analytics-middleware web-viewer --db-path analytics.db, or use the MCP Inspector flag --analytics --db-path analytics.db.

Key features of MCP Analytics Middleware

  • Track all tool calls and resource requests
  • See performance metrics and error rates
  • Web dashboard for live analytics
  • SQLite database for persistent storage

Use cases of MCP Analytics Middleware

  • Understand which tools are most popular in your MCP server
  • Catch errors early by monitoring error rates
  • Analyze your server's performance and slowest operations

よくある質問

1

What does the middleware actually do?

It overrides tool and resource function implementations to record usage in an SQLite database.

2

How can I see the analytics live?

Run `npx -p mcp-analytics-middleware web-viewer --db-path analytics.db` and open http://localhost:8080.

3

What data does the dashboard show?

Total tool calls and resource requests, error rates, performance metrics, most used tools, and slowest operations.

コメント

「データと分析」の他のコンテンツ