montiapm-rest
Click on "Deploy 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., "@montiapm-restshow avg system.pcpu for the last 6 hours per host"
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.
montiapm-cli
Zero-dependency CLI and MCP server for the Monti APM REST API (https://api.montiapm.com/v1).
Node 18+. MIT licensed.
Install
git clone https://github.com/harryadel/montiapm-cli.git
cd montiapm-cli
npm link # puts the `montiapm` command on your PATH (optional)Everything below works with node montiapm.mjs … too; montiapm … is the linked form.
Related MCP server: Swarmia MCP Server
Auth
The token is read from, in order:
MONTI_API_TOKENenv varthe file named by
MONTI_API_TOKEN_FILE~/.config/montiapm/token(default)
Default app ids come from MONTI_APP_ID (comma separated). --app overrides.
CLI
node montiapm.mjs metrics [--collection system] [--json]
node montiapm.mjs query --metric system.pcpu --agg avg \
--from 6h --to now \ # ISO, epoch ms, or relative (30m, 6h, 7d)
--dim tag:host \ # one series per host/container
--filter 'tag:host~z8qft$' \ # tag:host=value | tag:host!=value | tag:host~regex
--step 5m \ # client-side downsample (API returns 1-minute points)
--json | --csv # default is a readable table
node montiapm.mjs query --metric methods.total --agg avg --type breakdown --dim tag:name --from 1h
node montiapm.mjs query --metric system.sessions --agg max --type summary --from 24h
node montiapm.mjs mcp # stdio MCP serverAPI shape (discovered by probing; Monti has no public docs for this)
GET /v1/metrics returns {collections:[{id, displayName, dimensions, filters, metrics:[{id, aggregations}]}]}.
Collections: system, methods, pubs, http, jobs, errors.
POST /v1/query body:
key | required | notes |
| yes | array of Monti app ids |
| yes |
|
| yes | e.g. |
| no | from the metric's aggregation list |
| no | epoch milliseconds; default last hour; ranges outside the plan's retention are refused |
| breakdown: yes | array, e.g. |
| no | array of |
There is no server-side step/resolution key; timeseries points are 1 minute apart.
Responses are flat parallel arrays: timestamps[], metrics[metric][], tags[dim][], one row per (dimension value, timestamp).
The script regroups these into one series per label and can downsample with --step.
system.pcpu is percent of one core per host, so a 2-CPU container can read up to 200.
MCP
Register it in Claude Code as montiapm-rest (replace the path with your clone):
claude mcp add-json --scope user montiapm-rest \
'{"type":"stdio","command":"node","args":["/path/to/montiapm-cli/montiapm.mjs","mcp"],"env":{"MONTI_APP_ID":"<app id>"}}'Tools: list_metrics, query_metric (same options as the CLI; pass includePoints: false for summaries only).
For Codex, add to ~/.codex/config.toml:
[mcp_servers.montiapm-rest]
command = "node"
args = ["/path/to/montiapm-cli/montiapm.mjs", "mcp"]
[mcp_servers.montiapm-rest.env]
MONTI_APP_ID = "<app id>"This server cannot be deployed
Maintenance
Related MCP Connectors
Access New Relic observability data through MCP - query metrics, logs, traces, entities, and more
Analytics for MCP servers. Query your tool calls, first-call success, retries and schema cost.
Query application logs, traces, and metrics from your AI coding assistant via Foam's MCP server.
- SpanlyOAuthcom.spanly
MCP observability. Query live traffic, errors, duration, and alerts from your AI agent.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceIntegrates Monti APM with the Model Context Protocol to provide AI assistants with access to Meteor application performance monitoring data. It enables users to monitor system metrics, analyze method execution traces, and track application errors through natural language.1-
- AlicenseNot gradedqualityDmaintenanceEnables querying Swarmia's Export API for engineering metrics including pull request analytics, DORA metrics, investment balance, and effort reporting through an MCP interface.8MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to interact with Monti APM for Meteor application performance monitoring.160 npm5MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query FusionReactor Cloud metrics, logs, and alerts via MCP tools.MIT