MCP Analytics Middleware
@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 客户端。
{
"mcpServers": {
"mcp-analytics-middleware": {
"command": "npx",
"args": [
"-p",
"mcp-analytics-middleware",
"web-viewer",
"--db-path",
"analytics.db"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
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
FAQ from MCP Analytics Middleware
What does the middleware actually do?
It overrides tool and resource function implementations to record usage in an SQLite database.
How can I see the analytics live?
Run npx -p mcp-analytics-middleware web-viewer --db-path analytics.db and open http://localhost:8080.
What data does the dashboard show?
Total tool calls and resource requests, error rates, performance metrics, most used tools, and slowest operations.
数据与分析 分类下的更多 MCP 服务器
🎓 Semantic Scholar MCP Server
JackKuo666🔍 This project implements a Model Context Protocol (MCP) server for interacting with the Semantic Scholar API. It provides tools for searching papers, retrieving paper and author details, and fetching citations and references.
PubMed Analysis MCP Server
DarkroasterA PubMed MCP server.
Bright Data MCP
luminati-ioA powerful Model Context Protocol (MCP) server that provides an all-in-one solution for public web access.
ArXiv MCP Server
blazickjpA Model Context Protocol server for searching and analyzing arXiv papers
评论