What is an MCP server for metrics?
An MCP server for metrics gives an AI assistant a defined set of tools for working with your time-series data. You ask a question in plain language, the assistant chooses a tool, and the server returns the data. You don't have to export a CSV or paste in a screenshot of a chart.
What is MCP?
The Model Context Protocol (MCP) is an open standard for connecting AI applications to outside tools and data. An MCP server describes what each tool does and what input it accepts. A compatible client, such as Claude Code, Cursor, or OpenCode, makes those tools available to its AI model. Because the protocol is shared, different clients can use the same server, although their setup varies.
How a metrics question works
Suppose you ask, “Are signups up over the last week?” The assistant might call:
query_metric({
"metric": "signups",
"period": "7d",
"comparePrevious": true,
"includeBuckets": false
})Umlogger checks that the token's owner can access signups, then returns summaries for both periods and the percentage change. The assistant explains the result. The numbers come from your data, but its explanation can still be wrong, so check the chart before making an important decision.
MCP or a REST API?
Use an API when your code knows exactly what to do, such as recording a signup from a webhook. MCP is a better fit for open-ended questions, when an assistant needs to decide which data to look up. Many teams can use both: Umlogger's ingest API to send production data, and MCP to explore it.
MCP or a dashboard?
Dashboards are better for keeping an eye on numbers you already know matter. MCP is useful for follow-up questions, like comparing two periods or checking which deploys were close to a spike. It doesn't replace alerts, because an assistant only looks when you ask it to. For problems that can't wait, set up an alert.
What to look for
- Individual access: people should only reach the metrics they're allowed to see.
- Read-only mode: the server should enforce it, rather than relying on a prompt.
- Easy revocation: you should be able to cancel one person's or device's access.
- Summaries: totals and comparisons should be calculated by the server, not estimated by the model.
- Sensible limits: one broad question shouldn't return an unlimited amount of data.
- Context: notes about deploys and incidents help explain changes.
How Umlogger's MCP server works
Umlogger hosts the server, so there's nothing to install or run. It uses Streamable HTTP and personal access tokens. A token has the same metric access as the person who created it, and read-only tokens have no write tools. With a read & write token, an assistant can create metrics, log samples, and add annotations. It can't delete data or change alerts. OAuth isn't supported yet, so connectors that require it won't work.
To try it, follow the Claude Code, Cursor, and OpenCode setup guide, or read the full MCP documentation.