Axiom MCP Server
Connect AI agents to Axiom with the Model Context Protocol (MCP) Server.
Axiom MCP Server is a Model Context Protocol server implementation that enables AI agents to query logs, traces, and events using Axiom Processing Language (APL) and metrics using Metrics Processing Language (MPL).
For guidance on when to use Axiom MCP Server and Axiom Skills, see AI agents.
For the full list of tools and prompts with example queries, see MCP tools reference.
If your agent doesn’t have an Axiom organization to work in yet, it can provision a temporary one itself and hand you a claim link later. For more information, see Agent-created organizations.
Current capabilities
Tools and prompts
Axiom MCP Server works with AI agents that support MCP. It exposes tools for querying data, exploring datasets and metrics, and managing dashboards, monitors, and notifiers, plus prebuilt prompts for common investigations. For the full list with example queries, see MCP tools reference.
Prerequisites
- Create an Axiom account.
- Create a dataset in Axiom where you send your data.
Setup
Remote MCP with OAuth is the recommended setup for most use cases.
Choose a region
Axiom hosts the MCP Server in the US and in the EU:
| Region | Remote MCP URL |
|---|---|
| US | https://mcp.axiom.co/mcp |
| EU | https://mcp.eu.axiom.co/mcp |
Both MCP Servers work with every Axiom organization and use the same sign-in. Wherever your agent connects, each query runs in the edge deployment that holds the dataset. The region determines where the MCP Server handles query results on their way to your agent:
- The US MCP Server handles query results in data centers worldwide.
- The EU MCP Server handles query results only in data centers in the EU.
If your datasets are in the EU Central 1 (AWS) edge deployment and query results must stay in the EU, use the EU MCP Server.
Both MCP Servers send sign-in and other requests that aren’t queries, such as listing datasets, fields, dashboards, and monitors, to Axiom’s US API.
The setup steps on this page use the US MCP Server. To use the EU MCP Server, replace mcp.axiom.co with mcp.eu.axiom.co.
Install with add-mcp
Use the add-mcp CLI to add Axiom MCP Server to your coding agents:
For the EU MCP Server:
Authenticate in your browser when the agent prompts you.
Optional flags:
- Omit
-gto install for the current project only. - Add
-yto skip confirmation prompts. - Target specific agents with
-a, for example-a cursor -a claude-code.
Quick setup
Choose your client to get its fastest setup path, or copy a setup prompt for your AI agent. You can also click Copy setup prompt in the Axiom Console help menu to copy an agent-ready prompt for Claude Code, Codex, OpenCode, Devin, and Copilot.
Using an AI coding agent? Copy a prompt that sets up Axiom MCP Server for you.
In Claude Code, run /mcp and select axiom to sign in in your browser.
Claude Code documentationChecked Oct 2026
Header-based authentication
If your AI agent doesn’t support browser-based OAuth (for example, Agent Builder from OpenAI), authenticate with headers:
-
Create a personal access token (
xapt-...) or an organization API token (xaat-...). -
Configure your AI agent to use the remote MCP URL for your region, for example
https://mcp.axiom.co/mcp. -
Send these headers with each request:
- Authorization:
Bearer API_OR_PERSONAL_ACCESS_TOKEN - x-axiom-org-id:
ORGANIZATION_ID
If your agent only supports the
Authorizationheader, pass the organization ID as a URL parameter:https://mcp.axiom.co/mcp?org-id=ORGANIZATION_ID - Authorization:
Optional URL parameters
Header-based authentication connections accept the following kebab-case query parameters on the MCP URL:
| Parameter | Value | Description |
|---|---|---|
org-id | Organization ID | Sets the default organization when your client can’t send the x-axiom-org-id header. |
with-otel | 1 or true | Enables the OpenTelemetry and GenAI tool family (10 otel-* tools, 8 genai-* tools, and 5 OpenTelemetry prompts). OAuth sessions are always pinned to an organization without opting in, so these tools and prompts are available only on header-auth connections with with-otel=1. |
with-stitch | 1 or true | Asserts service-map entitlement for header-auth sessions that authenticate with an organization API token, because API tokens can’t read the license endpoint. |
max-age | Positive integer | Sets the maximum number of table cells (maxCells) returned in formatted query results. Defaults to 1000. |
For example:
Token hygiene
The remote MCP Server uses OAuth for authentication which handles credential isolation automatically. Agents never see your tokens. You can revoke access at any time.
When you use Axiom Skills, you configure API tokens directly. For detailed guidance on secure token configuration, see Token hygiene for AI agents.
Limit query costs
Query cost limits let you cap the hourly and daily query costs of an AI agent so it can query your data autonomously without creating unexpected costs. With MCP Server, the agent acts as your user account through OAuth, so set query cost limits on your roles.
For more information, see Set query cost limits for AI agents.
Use MCP Server
After setup, ask your agent about your data. For example:
- “List datasets.”
- “List the fields in the dataset
logs.” - “Get the most common status codes in the last 30 minutes in the dataset
logs.”
Optional: use the prebuilt prompts in clients that support MCP prompts.
For more examples and the full tool list, see MCP tools reference.
Revoke access
To revoke access:
- In Axiom, go to Settings > Profile.
- In Connected apps, find the AI client, click on the right, and then click Revoke access.
Access ends across all devices within 5 minutes.
If you connected with the mcp-remote library, clear the .mcp-auth folder. On a Mac, the default path is ~/.mcp-auth.