MCP Toolbox - Analytics & Monitoring Dashboard
Overview
MCP Toolbox is a web-based analytics and monitoring dashboard for Model Context Protocol servers, powered by agnost.ai. It provides real-time visualization of MCP server performance, usage patterns, and debugging capabilities. Dashboard URL:http://localhost:8080 (default)
Table of Contents
- Features
- Quick Start
- Configuration
- Dashboard Overview
- Analytics & Metrics
- Debugging
- Troubleshooting
- Security
Features
Real-time Monitoring
- Live Tool Invocations: Watch MCP tools being called in real-time
- Performance Metrics: Track execution times, success rates, and error rates
- Resource Utilization: Monitor memory, CPU, and network usage
- Active Connections: See which clients are connected to the server
Analytics
- Usage Patterns: Identify most/least used tools and resources
- Performance Trends: Historical data with time-series graphs
- Error Analysis: Track error types, frequencies, and patterns
- Client Statistics: Per-client usage and performance metrics
Debugging
- Request/Response Inspection: View full request and response payloads
- Stack Traces: Detailed error stack traces with context
- Parameter Validation: See parameter validation errors
- Execution Timeline: Step-by-step execution flow visualization
Alerting (Optional)
- Performance Alerts: Get notified when response times exceed thresholds
- Error Rate Alerts: Alert on high error rates
- Custom Alerts: Define custom alerting rules
Quick Start
Prerequisites
- Docker and Docker Compose installed
- UniFi API key from unifi.ui.com
- Agnost Organization ID from app.agnost.ai
Setup Steps
Stopping Services
Configuration
Environment Variables
Basic Configuration
*Required if AGNOST_ENABLED=true
Toolbox Configuration
Privacy Controls
Port Configuration
By default, the Toolbox dashboard runs on port 8080. To change this:http://localhost:9090.
Authentication
To enable dashboard authentication:Dashboard Overview
Home Page
The home page provides an at-a-glance view of your MCP server:- Server Status: Uptime, version, configuration
- Tool Statistics: Total tools, most used, success rate
- Resource Statistics: Resource types, access counts
- Recent Activity: Last 10 tool invocations with timing
Tools Tab
View and analyze MCP tool usage:- Tool List: All available tools with descriptions
- Usage Statistics: Call count, avg response time, error rate
- Performance Graphs: Response time distribution, success/failure trends
- Tool Details: Click any tool to see detailed analytics
Resources Tab
Monitor MCP resource access:- Resource URIs: All available resource endpoints
- Access Patterns: Most accessed resources, access frequency
- Performance: Response times, cache hit rates
- Resource Details: Click to see access history and performance
Errors Tab
Track and debug errors:- Error List: Recent errors with timestamps
- Error Types: Group by error type or tool
- Stack Traces: Full stack traces with code context
- Error Trends: Error frequency over time
- Quick Filters: Filter by tool, error type, or time range
Analytics Tab
Deep dive into performance and usage:-
Performance Metrics:
- Average response time by tool
- P50, P95, P99 percentiles
- Throughput (requests per second)
- Error rates and types
-
Usage Metrics:
- Tool popularity (most/least used)
- Peak usage times
- Client distribution
- Request patterns
-
Time-series Graphs:
- Response time trends
- Request volume over time
- Error rate trends
- Resource utilization
Analytics & Metrics
Key Performance Indicators (KPIs)
Response Time Metrics
- Average Response Time: Mean execution time across all tools
- Median (P50): 50th percentile response time
- P95: 95th percentile - 95% of requests faster than this
- P99: 99th percentile - 99% of requests faster than this
- < 100ms: Excellent
- 100-500ms: Good
- 500ms-1s: Acceptable
- > 1s: Needs optimization
Success Rate
- Overall Success Rate: Percentage of successful tool invocations
- Per-Tool Success Rate: Success rate for individual tools
- > 99%: Excellent
- 95-99%: Good
- 90-95%: Needs attention
- < 90%: Critical
Throughput
- Requests Per Second (RPS): Number of tool invocations per second
- Requests Per Minute (RPM): Number of tool invocations per minute
Tool-Specific Metrics
For each MCP tool, the dashboard tracks:- Invocation Count: Total number of times called
- Avg Response Time: Average execution time
- Success Rate: Percentage of successful calls
- Error Count: Number of failed calls
- Last Used: Timestamp of most recent invocation
Resource Metrics
For each MCP resource:- Access Count: Number of times accessed
- Cache Hit Rate: Percentage of cached responses
- Avg Response Size: Average size of responses
- Response Time: Average time to fetch resource
Debugging
Request/Response Inspection
Click any tool invocation in the dashboard to see: Request Details:- Tool name
- Input parameters (if tracking enabled)
- Timestamp
- Client information
- Headers (if available)
- Output data (if tracking enabled)
- Response time
- Success/failure status
- Error message (if failed)
- Stack trace (if error occurred)
Error Analysis
The Errors tab provides powerful debugging capabilities:- Error Grouping: Errors grouped by type or tool
- Stack Traces: Full Python stack traces with line numbers
- Context: Request parameters that caused the error
- Frequency: How often each error occurs
- Recent Occurrences: Timeline of when errors happened
Performance Profiling
Identify slow operations:- Slowest Tools: List of tools with highest avg response time
- Performance Timeline: Visual timeline of execution
- Bottleneck Identification: Pinpoint slow operations
- Comparison: Compare performance across time ranges
Live Monitoring
Watch your MCP server in real-time:- Live Feed: Stream of tool invocations as they happen
- Active Requests: Currently executing tools
- Connection Status: Connected clients and their status
- Resource Usage: Live CPU, memory, and network stats
Troubleshooting
Toolbox Dashboard Not Accessible
Problem: Cannot accesshttp://localhost:8080
Solutions:
-
Check if Toolbox container is running:
-
Check Toolbox logs:
-
Verify port is not in use:
-
Try a different port:
No Data Showing in Dashboard
Problem: Dashboard loads but shows no data Solutions:-
Verify agnost tracking is enabled:
-
Check MCP server logs for tracking errors:
-
Verify MCP server is making tool calls:
- Check Organization ID is correct in agnost.ai dashboard
Authentication Issues
Problem: Can’t log in to dashboard Solutions:-
Verify credentials in
.env: -
Restart Toolbox container:
-
Disable authentication temporarily for testing:
High Memory Usage
Problem: Toolbox container using too much memory Solutions:- Reduce data retention period (configure in agnost.ai dashboard)
-
Enable input/output tracking controls:
-
Add memory limits to docker-compose.yml:
Security
Best Practices
-
Enable Authentication
-
Use Strong Passwords
- Minimum 16 characters
- Mix of uppercase, lowercase, numbers, and symbols
- Use a password manager
-
Restrict Network Access
-
Enable HTTPS (for production)
- Use a reverse proxy (nginx, Caddy, Traefik)
- Configure SSL certificates
- Redirect HTTP to HTTPS
-
Control Data Tracking
Data Privacy
What Gets Tracked:- Tool names and execution times (always)
- Input parameters (if
AGNOST_DISABLE_INPUT=false) - Output results (if
AGNOST_DISABLE_OUTPUT=false) - Error messages and stack traces (always)
- UniFi API keys (always masked)
- Passwords (always masked)
- Authentication tokens (always masked)
- Personal data (unless explicitly in parameters)
- Default: 30 days
- Configurable in agnost.ai dashboard
- Can be deleted manually at any time
Network Security
Recommended Firewall Rules:- Use VPN for remote access
- Deploy behind a firewall
- Use reverse proxy with SSL
- Enable rate limiting
- Monitor access logs
Advanced Configuration
Custom Agnost Endpoint
For self-hosted agnost deployments:Docker Compose Overrides
Createdocker-compose.override.yml for custom configuration:
Health Checks
Monitor service health:Support
Resources
- Agnost.ai Documentation: docs.agnost.ai
- MCP Toolbox GitHub: googleapis/genai-toolbox
- UniFi MCP Server: enuno/unifi-mcp-server
Getting Help
- GitHub Issues: Report bugs or request features
- GitHub Discussions: Ask questions and share ideas
- Agnost Support: support@agnost.ai
FAQ
Q: Do I need agnost.ai to use the UniFi MCP server? A: No, agnost.ai and MCP Toolbox are completely optional. The UniFi MCP server works without them. Q: Is MCP Toolbox free? A: Check agnost.ai pricing at agnost.ai/pricing Q: Can I run Toolbox without Docker? A: Yes, but Docker is recommended. See agnost.ai documentation for alternative deployment methods. Q: How much data does Toolbox collect? A: You control data collection withAGNOST_DISABLE_INPUT and AGNOST_DISABLE_OUTPUT flags. With both disabled, only metadata is collected (tool names, timing, errors).
Q: Can I use Toolbox with other MCP servers?
A: Yes! MCP Toolbox works with any MCP server that implements agnost tracking.
Q: How do I update Toolbox to the latest version?
Last Updated: 2025-11-01 Version: 1.0.0 Maintainer: Elvis (@enuno)
