Monti APM MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Monti APM MCP ServerShow me the 10 most recent application errors"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SDUI MCP Monti APM Server
A Model Context Protocol (MCP) server that integrates with Monti APM to provide AI assistants with access to your Meteor application's performance monitoring data.
Overview
This MCP server exposes Monti APM data through the Model Context Protocol, allowing AI assistants like Claude Desktop to:
Retrieve system metrics (RAM, CPU, network, disk usage)
Query method execution traces for performance analysis
Access application errors and exceptions
Execute custom GraphQL queries against the Monti APM API
Get application information and configuration
Features
🔐 Secure Authentication: JWT-based authentication with Monti APM API
📊 System Metrics: Real-time performance monitoring data
🔍 Method Tracing: Detailed execution traces for performance debugging
🚨 Error Monitoring: Application errors and exceptions tracking
🛠️ Custom Queries: Execute custom GraphQL queries against Monti APM
📝 Comprehensive Logging: Structured logging with Winston
🔄 Resource Caching: Efficient data retrieval with smart caching
Prerequisites
Node.js 18+
Existing Meteor application with Monti APM monitoring configured
Monti APM App ID and App Secret credentials
Installation
1. Clone and Install Dependencies
git clone <repository-url>
cd sdui-mcp-monti-apm
npm install2. Environment Configuration
Copy the example environment file and configure your credentials:
cp .env.example .envEdit .env with your Monti APM credentials:
# Monti APM Configuration
MONTI_APP_ID=your_app_id_here
MONTI_APP_SECRET=your_app_secret_here
MONTI_API_URL=https://api.montiapm.com/core
MONTI_AUTH_URL=https://api.montiapm.com/auth
# Server Configuration
PORT=4002
NODE_ENV=development
# Logging
LOG_LEVEL=info
LOG_FILE=./logs/mcp-monti.log3. Build the Project
npm run build4. Test the Server
npm startUsage
With Claude Desktop
Add the server to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"monti-apm": {
"command": "node",
"args": ["/path/to/sdui-mcp-monti-apm/dist/index.js"],
"env": {
"MONTI_APP_ID": "your_app_id",
"MONTI_APP_SECRET": "your_app_secret"
}
}
}
}Available Tools
1. Get System Metrics
getSystemMetrics(metric: 'RAM_USAGE' | 'CPU_USAGE' | 'NETWORK_IN' | 'NETWORK_OUT' | 'DISK_USAGE')Retrieve system performance metrics with optional filtering by host and time range.
2. Get Method Traces
getMethodTraces(options?: { minDuration, maxDuration, host, userId, limit, since, until })Analyze method execution traces to identify performance bottlenecks.
3. Get Application Errors
getErrors(options?: { limit, since, until, host, resolved })Retrieve application errors and exceptions for debugging.
4. Run Custom Query
runMontiQuery(query: string, variables?: object)Execute custom GraphQL queries against the Monti APM API.
5. Get App Info
getAppInfo()Retrieve basic information about your monitored application.
6. Get Available Hosts
getAvailableHosts()List all monitored hosts to identify development vs production deployments.
Host Filtering for Multi-Environment Monitoring
This MCP server supports filtering data by deployment host, perfect for separating development and production monitoring:
// List available hosts
getAvailableHosts()
// Returns: Development hosts (e.g., "MBPvonJMichael2.pioneers") and Production hosts
// Development environment monitoring
getSystemMetrics({host: "MBPvonJMichael2.pioneers", metric: "RAM_USAGE"})
getMethodTraces({host: "MBPvonJMichael2.pioneers", limit: 20})
getErrors({host: "MBPvonJMichael2.pioneers", limit: 10})
// Production environment monitoring
getSystemMetrics({host: "plaiground01-plAIground", metric: "RAM_USAGE"})
getMethodTraces({host: "plaiground01-plAIground", limit: 20})
getErrors({host: "plaiground01-plAIground", limit: 10})
// Compare CPU usage across environments
getSystemMetrics({host: "MBPvonJMichael2.pioneers", metric: "CPU_USAGE"}) // Dev
getSystemMetrics({host: "plaiground01-plAIground", metric: "CPU_USAGE"}) // ProdAvailable Resources
monti://metric/{metric_type}- Access cached metric datamonti://trace/{trace_id}- Individual method trace detailsmonti://error/{error_id}- Specific error detailsmonti://app- Application information
Development
Scripts
# Development with hot reload
npm run dev
# Build for production
npm run build
# Start production server
npm start
# Lint code
npm run lint
# Format code
npm run formatProject Structure
src/
├── lib/
│ ├── logger.ts # Winston logging configuration
│ ├── montiAuth.ts # JWT authentication with Monti APM
│ └── montiClient.ts # GraphQL client for Monti API
├── mcp/
│ └── schema.ts # MCP tools and resources definitions
├── server.ts # Main MCP server implementation
└── index.ts # Application entry pointSecurity Considerations
Environment Variables: Never commit
.envfiles containing credentialsToken Caching: JWT tokens are cached securely and refreshed automatically
Error Handling: Sensitive information is not exposed in error messages
Logging: Credentials are never logged in plain text
Configuration Options
Variable | Description | Default |
| Your Monti APM App ID | Required |
| Your Monti APM App Secret | Required |
| Monti APM GraphQL API endpoint |
|
| Monti APM authentication endpoint |
|
| Server port (not used in MCP mode) |
|
| Environment mode |
|
| Logging level |
|
| Log file path |
|
| Development host patterns (comma-separated) |
|
| Default host filter for tools | None |
| Default environment mode ( |
|
Troubleshooting
Authentication Issues
If you're getting authentication errors:
Verify your
MONTI_APP_IDandMONTI_APP_SECRETare correctCheck that your Meteor app is properly configured with Monti APM
Ensure the credentials have appropriate permissions
Connection Issues
For API connection problems:
Check your internet connection and firewall settings
Verify the API URLs are accessible
Check the server logs for detailed error messages
MCP Integration Issues
If Claude Desktop isn't recognizing the server:
Verify the configuration file syntax is correct
Check that the path to the built server is correct
Restart Claude Desktop after configuration changes
Contributing
Fork the repository
Create a feature branch
Make your changes with appropriate tests
Submit a pull request
License
MIT License - see LICENSE file for details.
Support
For issues specific to this MCP server, please open a GitHub issue.
For Monti APM support, visit https://docs.montiapm.com.
Related Projects
Model Context Protocol - The protocol specification
Monti APM - Application performance monitoring for Meteor
MCP SDK - TypeScript SDK for MCP
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/coding-pioneers/monti-apm-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server