Execute APL queries against Axiom datasets
List available Axiom datasets
Axiom Query is a Model Context Protocol server implementation that enables AI agents to interact with your Axiom data. It allows you to execute APL (Axiom Processing Language) queries against your datasets and retrieve information directly within AI assistants like Claude. With this integration, you can analyze logs, metrics, and other data stored in Axiom without leaving your AI assistant interface. The MCP server provides rate-limited access to your Axiom datasets, ensuring controlled and secure data retrieval.
Axiom Query is a Model Context Protocol (MCP) server that connects AI assistants to your Axiom data. It enables you to query and analyze data stored in Axiom using APL (Axiom Processing Language) directly from within AI assistants like Claude.
You can install Axiom Query in one of the following ways:
Download the latest binary from the releases page.
go install github.com/axiomhq/axiom-mcp@latest
Axiom Query requires authentication to access your Axiom data. You can configure it using one of these methods:
Create a configuration file (e.g., config.txt
) with the following content:
token xaat-your-token
url https://api.axiom.co
query-rate 1
query-burst 1
datasets-rate 1
datasets-burst 1
axiom-mcp \
-token xaat-your-token \
-url https://api.axiom.co \
-query-rate 1 \
-query-burst 1 \
-datasets-rate 1 \
-datasets-burst 1
export AXIOM_TOKEN=xaat-your-token
export AXIOM_URL=https://api.axiom.co
export AXIOM_ORG_ID=your-org-id
export AXIOM_QUERY_RATE=1
export AXIOM_QUERY_BURST=1
export AXIOM_DATASETS_RATE=1
export AXIOM_DATASETS_BURST=1
To use Axiom Query with Claude:
Create a configuration file as described above.
Configure the Claude app to use the MCP server by editing the Claude desktop configuration file:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"axiom": {
"command": "/path/to/your/axiom-mcp-binary",
"args": ["--config", "/path/to/your/config.txt"]
}
}
}
Alternatively, you can set environment variables directly in the configuration:
{
"mcpServers": {
"axiom": {
"command": "/path/to/your/axiom-mcp-binary",
"env": {
"AXIOM_TOKEN": "xaat-your-token",
"AXIOM_URL": "https://api.axiom.co",
"AXIOM_ORG_ID": "your-org-id"
}
}
}
}
Once configured, you can use the following tools in your AI assistant:
queryApl
: Execute APL queries against your Axiom datasetslistDatasets
: List all available Axiom datasetsExample usage in Claude:
The server includes rate limiting to prevent excessive API usage. You can configure the rate limits using the parameters described in the configuration section:
query-rate
and query-burst
: Control the rate of APL queriesdatasets-rate
and datasets-burst
: Control the rate of dataset listing operations