What does the middleware actually do?
It overrides tool and resource function implementations to record usage in an SQLite database.
@Phillip-Kemper
Basic information
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.
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-analytics-middleware": {
"command": "npx",
"args": [
"-p",
"mcp-analytics-middleware",
"web-viewer",
"--db-path",
"analytics.db"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
Fetch the live tool list by running this server in a temporary sandbox using the button above.
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.
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.
It overrides tool and resource function implementations to record usage in an SQLite database.
Run `npx -p mcp-analytics-middleware web-viewer --db-path analytics.db` and open http://localhost:8080.
Total tool calls and resource requests, error rates, performance metrics, most used tools, and slowest operations.

AOI is a commercial environmental-intelligence gateway that gives AI agents programmatic access to 38 real-world intelligence capabilities — climate risk, satellite monitoring, methane detection, water & soil, vegetation

Football club Power Ratings for AI assistants: weekly 442ball ratings, league strength, the 442 League Index, unbeaten and winning runs, and the greatest sides in a league's history. Every answer links to its 442ball.com
Hosted TikTok MCP server for AI agents: read public profiles, account videos, comments and replies, or search videos and creators. Structured JSON for creator research and content analysis.

Localith MCP connects Claude and ChatGPT to your Google Business Profile data. Retrieve connected locations, listing details, customer reviews, and performance metrics to analyze review trends, compare locations, audit l

The agentic growth engine, in your terminal. AfterLaunch watches how customers find your product across AI search and traditional search, then hands your agent the next growth move, already drafted.
Comments