ezstat-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., "@ezstat-mcp-serverWhat's the error rate for the last 30 minutes?"
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.
EzStat MCP Server
A standalone Model Context Protocol server for EzStat. Let Claude / Cursor / any MCP-compatible agent push and read your metrics natively — no copy-paste, no dashboard hop. This is the product behind the "metrics your agents write and read themselves" positioning: every agent that touches your code can also touch your observability.
The server speaks stdio (the standard transport for local agent runners) and exposes four focused tools. Each tool description is written for an agent audience so the model knows when to call it.
Tools
Tool | What it does |
| Record a metric point your app "produced" — counter (+N, default +1) or gauge (e.g. 42.5 ms). |
| Ask a natural-language question about your metrics (the agent-read path). |
| Structured read of a stat: latest value + series + summary (count/min/max/avg/sum) for a window. |
| List the account's metrics (names + types + description). |
Tool descriptions are tuned for agent reasoning — see src/server.ts.
Related MCP server: Warpmetrics MCP Server
Install (Claude Desktop / Claude Code / Cursor)
One-line install (npm/pnpm)
# pnpm
pnpm add -g ezstat-mcp-server
# npm
npm install -g ezstat-mcp-serverConfigure the MCP client
Claude Desktop (~/.config/Claude/claude_desktop_config.json on macOS/Linux,
%APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"ezstat": {
"command": "ezstat-mcp-server",
"env": {
"EZSTAT_API_KEY": "ezkey_your_api_key_here"
}
}
}
}Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"ezstat": {
"command": "ezstat-mcp-server",
"env": {
"EZSTAT_API_KEY": "ezkey_your_api_key_here"
}
}
}
}Get your API key from https://ezstat.dev (it's the "ezkey").
Smithery
npx -y @smithery/cli install ezstat-mcp-server --client claudeOr visit https://smithery.ai/server/ezstat-mcp-server and click Install.
About EzStat
EzStat is a dead-simple hosted metrics service: one HTTP POST in, a live chart out. No SDK, no collector daemon, no YAML, no dashboard builder. Counters and value/gauge stats auto-create on first POST; charts, share/embed, and CSV/JSON export are built in, and Ask-Your-Data (live) answers plain-English questions from your own metrics, with every number verified against the retrieved data before it reaches you.
Flat monthly pricing by tracked stats — $19 / $49 / $149 — plus a card-gated free tier (no charge; see your data live before paying). Your data is yours: export any time, cancel any time. Features that are not shipped yet (alerts, weekly digest, anomaly detection) are marked coming soon on the site rather than sold — what you see live is what works.
Coming from StatHat?
If your api.stathat.com calls stopped and your dashboards went dark: EzStat speaks
StatHat's wire format — the same /ez, /c, /v endpoints, same params, same
response. The migration is usually one line:
# before
curl -X POST https://api.stathat.com/ez -d "stat=messages sent" -d "ezkey=KEY" -d "count=1"
# after — change the host, use your EzStat key; stats auto-create
curl -X POST https://api.ezstat.dev/ez -d "stat=messages sent" -d "ezkey=EZSTAT_KEY" -d "count=1"Most StatHat client libraries take a base-URL override in one line. Saved a StatHat CSV/JSON export? The importer recreates your stats and backfills history (8 MB / 500k points per file). Full guide: docs/stathat-migration.md · ezstat.dev/migrate/stathat — including the migrator deal: free tier to see it live first, a 12-month price-lock, and white-glove import for the first 25 migrations.
Why agent-native metrics
Your coding agent deploys, tests, and ships — it should also be the one tracking and reading the numbers. That's this server: metrics your agents write and read themselves. The reasoning: docs/agent-native-metrics.md · comparison with StatHat/StatFlow/Datadog: ezstat.dev/vs.
Environment variables
Variable | Required | Default | Notes |
| yes | — | Your EzStat API key (the "ezkey"). Never hardcode. Never log. |
| no |
| Override for staging / self-hosted. |
| no |
| Per-request timeout in milliseconds. |
| no |
| Override if you proxy the EZ endpoint. |
| no |
| Ask-Your-Data path. |
| no |
| Stats list path. |
A starter .env.example is shipped.
How it talks to EzStat
The four tools map to four real EzStat API routes (all auth by EzStat API key):
Tool | Method | Path | Auth |
| POST |
|
|
| POST |
|
|
| GET |
|
|
| GET |
|
|
track_metriccalls the StatHat-compatible EZ ingest ({"ezkey","stat","count"?,"value"?,"t"?}). Counter semantics: omit bothcountandvalueto recordcount=1(counter +1).ask_ezstatcalls Ask-Your-Data ({"query":"..."}→{answer, data, intent, ...}). This is the agent read path — count it as an agent read for usage tracking.read_statreturns the stat's recent series + summary; passfrom/to(Unix seconds) to bound the window.resolutionrolls up tominute/hour/day.list_statsreturns the account's stats; passtypeto filter tocounterorvalue.
Build & run locally
pnpm install
pnpm build # tsc → dist/
pnpm start # node dist/index.js (stdio MCP server)
pnpm test # vitest run — fully mocked network, no real HTTP
pnpm dev # tsx watch src/index.tspnpm start requires EZSTAT_API_KEY to be set; the server exits with a clear error
otherwise (and never logs the key).
Security
The API key is read only from
EZSTAT_API_KEY— never hardcoded, never printed.All error messages are scrubbed: the API key is never included in tool results.
HTTP errors carry a stable machine-readable
code(unauthorized,rate_limited,timeout,not_found,server_error, ...) and a human-readablemessagesafe to relay.Tests mock the network — no real HTTP leaves the test process.
Registry metadata
For Smithery / mcp.so / Glama listings:
Name:
ezstat-mcp-serverDisplay name: EzStat
Description: Push and read metrics with EzStat from any AI agent. Track counters and values, then ask natural-language questions over your production telemetry.
Homepage: https://ezstat.dev
Version:
0.6.0Transport:
stdioLicense: MIT
Repository: this package's source
The mcp block in package.json carries the same metadata so registry crawlers pick it up.
Listing steps (what to submit, where)
Smithery: push the repo to GitHub, then run
npx -y @smithery/cli publish(or submit via the web UI). The shippedsmithery.yamlprovides the install schema.mcp.so: submit at https://mcp.so/submit with the metadata above + the GitHub URL.
Glama: submit at https://glama.ai/mcp/submit.
The package is not published to npm automatically — publish manually after a release review.
License
MIT.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables AI assistants to interact with Uptime Agent monitoring system to check uptime status, manage incidents, create new monitors, and analyze downtime through natural conversation.71
- AlicenseAqualityCmaintenanceConnects AI assistants to Warpmetrics telemetry data to monitor AI agent performance, execution runs, and LLM costs. It allows users to query success rates, latency, and spend metrics directly through natural language interfaces.2037MIT
- Alicense-qualityDmaintenanceEnables AI assistants to interact with Datadog's observability platform via natural language, covering metrics, logs, APM, monitors, dashboards, incidents, and infrastructure.9101MIT
- Alicense-qualityDmaintenanceExposes enterprise KPIs, health scores, forecasting, and anomaly detection as MCP tools, resources, and prompts for use by any MCP-compatible agent.2AGPL 3.0
Related MCP Connectors
AI access to Hitsteps analytics, live visitors, uptime, goals, alerts, and chats.
Provide real-time data querying and visualization by integrating Tako with your agents. Generate o…
23 agent tools + a measured per-call model cost dataset. No key needed to start.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/clira-dev/ezstat-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server