> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to the Axiom MCP server

The Axiom MCP connector routes your AI agent's tool calls to Axiom's own MCP server through Scalekit. Each user signs in to Axiom once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 26 tools.

**Authentication:** OAuth2.1/DCR
**Categories:** Analytics, Developer Tools, Monitoring
**Tools:** 26: 15 read, 8 write, 3 destructive
**Users sign in with:** OAuth
**OAuth app:** Scalekit's or your own
**Built by:** Vendor MCP
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=AXIOMMCP)

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the Axiom MCP connection

   In **AgentKit > Connections**, create an Axiom MCP connection. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/connections/).

   Scalekit credentials are available for Axiom MCP server, so you don't need to register an OAuth app.

4. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   import { ScalekitClient } from '@scalekit-sdk/node'
   import 'dotenv/config'
   import { createInterface } from 'node:readline/promises'

   const scalekit = new ScalekitClient(
     process.env.SCALEKIT_ENVIRONMENT_URL,
     process.env.SCALEKIT_CLIENT_ID,
     process.env.SCALEKIT_CLIENT_SECRET,
   )
   const actions = scalekit.actions

   const connector = 'axiommcp'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Axiom MCP:', link)
   const rl = createInterface({ input: process.stdin, output: process.stdout })
   await rl.question('Press Enter after authorizing...')
   rl.close()

   // Make your first call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'axiommcp_check_monitors',
     toolInput: {},
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_dotenv()

   scalekit_client = ScalekitClient(
       env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),
       client_id=os.getenv("SCALEKIT_CLIENT_ID"),
       client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),
   )
   actions = scalekit_client.actions

   connection_name = "axiommcp"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_response = actions.get_authorization_link(
       connection_name=connection_name,
       identifier=identifier,
   )
   print("Authorize Axiom MCP:", link_response.link)
   input("Press Enter after authorizing...")

   # Make your first call
   result = actions.execute_tool(
       tool_input={},
       tool_name="axiommcp_check_monitors",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user signs in once. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'axiommcp_check_monitors',
  toolInput: {},
  connector: 'axiommcp',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="axiommcp_check_monitors",
    tool_input={},
    connection_name="axiommcp",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `axiommcp_check_monitors`

CheckMonitors · Read-only

List all monitors and their current status, showing which are firing or healthy.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `axiommcp_export_dashboard`

ExportDashboard · Read-only

Export a dashboard configuration as JSON for backup or sharing.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `dashboardUid` (`string`, required): The dashboard UID (stable external identifier). You can find UIDs using the `listDashboards()` tool.

Example input: `{"dashboardUid":"<dashboardUid>"}`

### `axiommcp_get_dashboard`

GetDashboard · Read-only

Get details and configuration of a specific dashboard by ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `dashboardId` (`string`, required): The dashboard UID. You can find a list of dashboards using the `listDashboards()` tool.

Example input: `{"dashboardId":"<dashboardId>"}`

### `axiommcp_get_dataset_fields`

GetDatasetFields · Read-only

List all fields in an events or traces dataset. Use this to understand the schema before writing APL queries. Do not use for otel-metrics-v1 datasets — use listMetrics() instead.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `datasetName` (`string`, required): The dataset name.

Example input: `{"datasetName":"<datasetName>"}`

### `axiommcp_get_metric_tag_values`

GetMetricTagValues · Read-only

Get all values for a specific tag within a metrics dataset (kind otel-metrics-v1) over a given time range. Useful for discovering filter values before querying with queryMetrics.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `datasetName` (`string`, required): The dataset name. You can find an list of datasets using the `listDatasets()` tool.
- `tag` (`string`, required): The tag name to list values for.
- `endTime` (`string`, optional): End time for the query range. A fixed (RFC3339) or relative (now, now-5m) time value. Defaults to "now". Default: `now`.
- `startTime` (`string`, optional): Start time for the query range. A fixed (RFC3339) or relative (now, now-5m) time value. Defaults to "now-30m". Default: `now-30m`.

Example input: `{"datasetName":"<datasetName>","tag":"<tag>"}`

### `axiommcp_get_monitor_history`

GetMonitorHistory · Read-only

Get the alert history for a specific monitor, including when it fired and resolved.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `monitorId` (`string`, required): The monitor ID. You can find an list of monitors using the `checkMonitors()` tool.
- `endTime` (`string`, optional): End time for the query range. A fixed (RFC3339) or relative (now, now-5m) time value. Defaults to "now". Default: `now`.
- `startTime` (`string`, optional): Start time for the query range. A fixed (RFC3339) or relative (now, now-5m) time value. Defaults to "now-30m". Default: `now-30m`.

Example input: `{"monitorId":"<monitorId>"}`

### `axiommcp_get_saved_queries`

GetSavedQueries · Read-only

List all saved APL queries in the Axiom workspace.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `axiommcp_list_dashboards`

ListDashboards · Read-only

List all dashboards in the Axiom workspace.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `axiommcp_list_datasets`

ListDatasets · Read-only

List all available datasets. The "kind" column determines which tools to use next:
- events / otel.traces / other: use queryDataset() (APL) and getDatasetFields()
- otel-metrics-v1: start with listMetrics() to inspect metric definitions and choose query strategy, then use queryMetrics(), searchMetrics(), listMetricTags(), and getMetricTagValues() — do NOT use queryDataset() or getDatasetFields() for these

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `axiommcp_list_metric_tags`

ListMetricTags · Read-only

List all tag keys (dimensions) available in a metrics dataset (kind otel-metrics-v1) over a given time range. Tags can be used to filter and group metrics queries.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `datasetName` (`string`, required): The dataset name. You can find an list of datasets using the `listDatasets()` tool.
- `endTime` (`string`, optional): End time for the query range. A fixed (RFC3339) or relative (now, now-5m) time value. Defaults to "now". Default: `now`.
- `startTime` (`string`, optional): Start time for the query range. A fixed (RFC3339) or relative (now, now-5m) time value. Defaults to "now-30m". Default: `now-30m`.

Example input: `{"datasetName":"<datasetName>"}`

### `axiommcp_list_metrics`

ListMetrics · Read-only

List all available metric names with metadata (type, temporality, and unit) in a metrics dataset (kind otel-metrics-v1) over a given time range, defaulting to the last 30 minutes. Start here when query semantics matter.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `datasetName` (`string`, required): The dataset name. You can find an list of datasets using the `listDatasets()` tool.
- `endTime` (`string`, optional): End time for the query range. A fixed (RFC3339) or relative (now, now-5m) time value. Defaults to "now". Default: `now`.
- `startTime` (`string`, optional): Start time for the query range. A fixed (RFC3339) or relative (now, now-5m) time value. Defaults to "now-30m". Default: `now-30m`.

Example input: `{"datasetName":"<datasetName>"}`

### `axiommcp_list_notifiers`

ListNotifiers · Read-only

List all notifiers (notification channels such as email, Slack, PagerDuty) configured in the workspace.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `axiommcp_query_dataset`

QueryDataset · Read-only

Query Axiom datasets using Axiom Processing Language (APL). Use for events, otel.traces, and other non-metrics datasets. Returns query results including matching events.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `apl` (`string`, required): The APL query to execute.
- `endTime` (`string`, optional): End time for the query (ISO 8601 or 'now').
- `startTime` (`string`, optional): Start time for the query (ISO 8601 or relative like '-1h').

Example input: `{"apl":"<apl>"}`

### `axiommcp_query_metrics`

QueryMetrics · Read-only

Query OTel metrics from Axiom using MPL (Metrics Processing Language), not APL, over a given time range (defaults to the last 30 minutes). Use for otel-metrics-v1 datasets.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `datasetName` (`string`, required): The dataset name. You can find an list of datasets using the `listDatasets()` tool.
- `mpl` (`string`, required): The metrics query string. Format: <dataset>:<metric> | <operations>
- `endTime` (`string`, optional): End time for the query range. A fixed (RFC3339) or relative (now, now-5m) time value. Defaults to "now". Default: `now`.
- `startTime` (`string`, optional): Start time for the query range. A fixed (RFC3339) or relative (now, now-5m) time value. Defaults to "now-30m". Default: `now-30m`.

Example input: `{"datasetName":"<datasetName>","mpl":"<mpl>"}`

### `axiommcp_search_metrics`

SearchMetrics · Read-only

Search tag values across all metrics in a dataset (kind otel-metrics-v1) for a specific entity name (a service, host, or region) and return the metric names associated with it, along with type, temporality, and unit metadata. Use a time window of at least 3 hours, since recently-ingested data can take up to 2 hours to become searchable.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `datasetName` (`string`, required): The dataset name. You can find an list of datasets using the `listDatasets()` tool.
- `value` (`string`, required): The entity name to search for across all tag values (e.g. a service name "checkout-service", a host "prod-worker-1", a region "us-east-1"). The search matches this exact string against tag values -- use the canonical name as it appears in your infrastructure.
- `endTime` (`string`, optional): End time for the query range. A fixed (RFC3339) or relative (now, now-5m) time value. Defaults to "now". Default: `now`.
- `startTime` (`string`, optional): Start time for the query range. A fixed (RFC3339) or relative (now, now-5m) time value. Defaults to "now-30m". Default: `now-30m`.

Example input: `{"datasetName":"<datasetName>","value":"<value>"}`

### `axiommcp_create_dashboard`

CreateDashboard · Write

Create a new dashboard in the Axiom workspace from a full dashboard JSON document. The document must include name, owner, charts, layout, refreshTime, schemaVersion, and the dashboard time window; sections are optional.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `dashboardJson` (`string`, required): The full dashboard document as a JSON string. Include name, owner, charts (array), layout (array), refreshTime (15, 60, or 300), schemaVersion (2), timeWindowStart, and timeWindowEnd. Optional: Add sections as an ordered array of {id, title, defaultCollapsed?}. Use a unique UUID for each section id. Assign charts with chart.sectionId. Omit sectionId for ungrouped charts and all SmartFilter charts.
- `message` (`string`, optional): Optional audit/change note for this operation.
- `uid` (`string`, optional): Optional custom UID for the dashboard. If omitted, the server generates one.

Example input: `{"dashboardJson":"<dashboardJson>"}`

### `axiommcp_create_monitor`

CreateMonitor · Write

Create a new Axiom monitor using a JSON payload for Threshold, MatchEvent, or AnomalyDetection. Provide name, type, intervalMinutes, rangeMinutes, notifierIds, and at least one of aplQuery or mplQuery.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `monitorJson` (`string`, required): The full monitor configuration as a JSON string. Must include name, type, intervalMinutes, rangeMinutes, and at least one of aplQuery or mplQuery. Include notifierIds to set notifiers; omit notifierIds during update to keep existing notifiers.

Example input: `{"monitorJson":"<monitorJson>"}`

### `axiommcp_create_notifier`

CreateNotifier · Write

Create a new Axiom notifier using a JSON payload. The payload must include name and properties; configure one notification channel such as email, slack, webhook, customWebhook, pagerduty, opsgenie, discord, discordWebhook, or microsoftTeams. For custom webhooks, use properties.customWebhook with required url and body, plus optional headers and secretHeaders; body supports Go-template variables such as .Action, .MonitorID, .Body, .Title, and .Value.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `notifierJson` (`string`, required): The full notifier configuration as a JSON string. Must include name and properties. Configure one channel inside properties, such as email, slack, webhook, customWebhook, pagerduty, opsgenie, discord, discordWebhook, or microsoftTeams. For customWebhook, include required url and body, plus optional headers and secretHeaders; body supports Go-template variables such as .Action, .MonitorID, .Body, .Title, and .Value.

Example input: `{"notifierJson":"<notifierJson>"}`

### `axiommcp_send_feedback`

SendFeedback · Write

Share feedback about the Axiom MCP server experience, such as a misleading tool description, a confusing result or error message, a missing capability, or praise for something that worked well. Never include sensitive information (log or query contents, dataset values, credentials, tokens, or personal data).

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `category` (`string`, required): The kind of feedback: tool-description (misleading/unclear description), tool-result (confusing or unhelpful output), error-message (error did not help recovery), missing-capability (something you needed does not exist), performance (slow or resource-heavy), praise (something worked well), or other. One of: `tool-description`, `tool-result`, `error-message`, `missing-capability`, `performance`, `praise`, `other`.
- `feedback` (`string`, required): The feedback itself. Keep it generic and actionable. NEVER include sensitive information: no log or query contents, dataset values, credentials, tokens, personal data, or anything from the user's environment.
- `toolName` (`string`, optional): Optional: the name of the MCP tool the feedback is about, e.g. queryDataset.

Example input: `{"category":"tool-description","feedback":"<feedback>"}`

### `axiommcp_update_dashboard`

UpdateDashboard · Write

Update an existing dashboard by UID with a full replacement dashboard JSON document (not just its name or description). Supports optimistic concurrency via the version and overwrite parameters.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `dashboardJson` (`string`, required): The full dashboard document as a JSON string. Include name, owner, charts (array), layout (array), refreshTime (15, 60, or 300), schemaVersion (2), timeWindowStart, and timeWindowEnd. Optional: Add sections as an ordered array of {id, title, defaultCollapsed?}. Use a unique UUID for each section id. Assign charts with chart.sectionId. Omit sectionId for ungrouped charts and all SmartFilter charts.
- `dashboardUid` (`string`, required): The dashboard UID (stable external identifier). You can find UIDs using the `listDashboards()` tool.
- `message` (`string`, optional): Optional audit/change note for this operation.
- `overwrite` (`boolean`, optional): When true (default), bypasses version checks and applies last-write-wins. When false, the version parameter is required. Default: `true`.
- `version` (`number`, optional): The current dashboard version number. Required when overwrite is false. Get this from exportDashboard().

Example input: `{"dashboardJson":"<dashboardJson>","dashboardUid":"<dashboardUid>"}`

### `axiommcp_update_dashboard_chart`

UpdateDashboardChart · Write

Patch a single chart in an existing dashboard by chart ID using a JSON merge-patch document, rather than individual chart fields. Supports optimistic concurrency via the version and overwrite parameters.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `chartId` (`string`, required): The chart ID inside the dashboard charts array.
- `chartPatchJson` (`string`, required): A JSON merge-patch object for a single dashboard chart. Include only fields to change. Set sectionId to an existing section UUID to move the chart into that section, or set sectionId to null to make it ungrouped. Keep SmartFilter charts ungrouped. If id is present, it matches chartId.
- `dashboardUid` (`string`, required): The dashboard UID (stable external identifier). You can find UIDs using the `listDashboards()` tool.
- `message` (`string`, optional): Optional audit/change note for this operation.
- `overwrite` (`boolean`, optional): When true (default), bypasses version checks and applies last-write-wins. When false, the version parameter is required. Default: `true`.
- `version` (`number`, optional): The current dashboard version number. Required when overwrite is false. Get this from exportDashboard().

Example input: `{"chartId":"<chartId>","chartPatchJson":"<chartPatchJson>","dashboardUid":"<dashboardUid>"}`

### `axiommcp_update_monitor`

UpdateMonitor · Write

Update an existing Axiom monitor by ID using a full monitor JSON payload. Omit notifierIds to keep the monitor's existing notifiers, or set notifierIds to [] to remove them. Use checkMonitors() to find monitor IDs before updating.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `monitorId` (`string`, required): The monitor ID. You can find an list of monitors using the `checkMonitors()` tool.
- `monitorJson` (`string`, required): The full monitor configuration as a JSON string. Must include name, type, intervalMinutes, rangeMinutes, and at least one of aplQuery or mplQuery. Include notifierIds to set notifiers; omit notifierIds during update to keep existing notifiers.

Example input: `{"monitorId":"<monitorId>","monitorJson":"<monitorJson>"}`

### `axiommcp_update_notifier`

UpdateNotifier · Write

Update an existing notifier by ID using a full notifier JSON payload. The payload must include name and properties; configure one channel inside properties.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `notifierId` (`string`, required): The notifier ID. You can find notifier IDs using the `listNotifiers()` tool.
- `notifierJson` (`string`, required): The full notifier configuration as a JSON string. Must include name and properties. Configure one channel inside properties, such as email, slack, webhook, customWebhook, pagerduty, opsgenie, discord, discordWebhook, or microsoftTeams. For customWebhook, include required url and body, plus optional headers and secretHeaders; body supports Go-template variables such as .Action, .MonitorID, .Body, .Title, and .Value.

Example input: `{"notifierId":"<notifierId>","notifierJson":"<notifierJson>"}`

### `axiommcp_delete_dashboard`

DeleteDashboard · Destructive

Delete a dashboard by ID.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `dashboardUid` (`string`, required): The dashboard UID (stable external identifier). You can find UIDs using the `listDashboards()` tool.

Example input: `{"dashboardUid":"<dashboardUid>"}`

### `axiommcp_delete_monitor`

DeleteMonitor · Destructive

Delete a monitor by ID.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `monitorId` (`string`, required): The monitor ID. You can find an list of monitors using the `checkMonitors()` tool.

Example input: `{"monitorId":"<monitorId>"}`

### `axiommcp_delete_notifier`

DeleteNotifier · Destructive

Delete a notifier by ID.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `notifierId` (`string`, required): The notifier ID. You can find notifier IDs using the `listNotifiers()` tool.

Example input: `{"notifierId":"<notifierId>"}`

## Related

Other Analytics connectors ([all 126](/agentkit/connectors/?category=analytics)):

- [Microsoft 365](/agentkit/connectors/microsoft365/): Scalekit connector, OAuth, 317 tools
- [HubSpot](/agentkit/connectors/hubspot/): Scalekit connector, OAuth, 457 tools
- [Snowflake](/agentkit/connectors/snowflake/): Scalekit connector, OAuth, 42 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
