Skip to content

Commit b37885a

Browse files
authored
Docs about metric-hub MCP server (#891)
1 parent 1a78e4a commit b37885a

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

.spelling

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ MAU
220220
MacOS
221221
MaxMind
222222
McCrosky
223+
MCP
223224
mdbook
224225
mdbook-dtmo
225226
mdbook-open-on-gh

src/concepts/metric_hub.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,31 @@ These statistics allow to determine the total number of crashes, total number of
452452

453453
The [Metric Definitions Clients Daily explore in Looker](https://mozilla.cloud.looker.com/explore/firefox_desktop/metric_definitions_clients_daily?qid=KxzAcgpqBQEzaCcVxrUA3w&toggle=fil,vis) now exposes the defined metrics in statistics which are ready to be used in dashboards or ad-hoc analyses.
454454

455+
## Metric Hub MCP Server
456+
457+
The [Metric Hub MCP Server](https://github.com/mozilla/metric-hub/tree/main/lib/mcp-server) lets AI assistants (such as Claude) access Metric Hub definitions directly. It exposes tools for searching metrics, browsing data sources and segments, retrieving metric SQL, and querying live experiments from Experimenter.
458+
459+
### Connecting to the MCP Server
460+
461+
The server is hosted remotely — no local installation is needed. In Claude Code, run:
462+
463+
```bash
464+
claude mcp add --transport sse metric-hub https://metric-hub-mcp-744009727678.us-west1.run.app/sse
465+
```
466+
467+
Or add it manually to `~/.claude/mcp-servers.json`:
468+
469+
```json
470+
{
471+
"metric-hub": {
472+
"type": "sse",
473+
"url": "https://metric-hub-mcp-744009727678.us-west1.run.app/sse"
474+
}
475+
}
476+
```
477+
478+
Once connected, you can ask the assistant to create or search for metrics, look up data source definitions, generate metric SQL, or browse experiment configurations.
479+
455480
## FAQ
456481

457482
### Should metrics be defined in the metric definition, data source definition or source table?

0 commit comments

Comments
 (0)