Skip to main content
Glama

mcp-server-axiom-js

Axiom 的 MCP 服务器

官方 Axiom MCP 服务器的 JavaScript 端口,使 AI 代理能够使用 Axiom 处理语言 (APL) 查询数据。

此实现提供与原始 Go 版本相同的功能,但打包为 npm 模块,以便更轻松地与 Node.js 环境集成。

安装与使用

MCP 配置

您可以使用 npx 直接运行此 MCP 服务器。将以下配置添加到您的 MCP 配置文件中:

{ "axiom": { "command": "npx", "args": ["-y", "mcp-server-axiom"], "env": { "AXIOM_TOKEN": "<AXIOM_TOKEN_HERE>", "AXIOM_URL": "https://api.axiom.co", "AXIOM_ORG_ID": "<AXIOM_ORG_ID_HERE>" } } }

本地开发和测试

安装
npm install -g mcp-server-axiom
环境变量

可以使用环境变量来配置服务器:

  • AXIOM_TOKEN (必需):您的 Axiom API 令牌
  • AXIOM_ORG_ID (必需):您的 Axiom 组织 ID
  • AXIOM_URL (可选):自定义 Axiom API URL(默认为https://api.axiom.co
  • AXIOM_QUERY_RATE (可选):每秒查询次数限制(默认值:1)
  • AXIOM_QUERY_BURST (可选):查询突发容量(默认值:1)
  • AXIOM_DATASETS_RATE (可选):每秒数据集列表操作数(默认值:1)
  • AXIOM_DATASETS_BURST (可选):数据集列表突发容量(默认值:1)
  • PORT (可选):服务器端口(默认值:3000)
本地运行服务器
  1. 使用环境变量:
export AXIOM_TOKEN=your_token mcp-server-axiom
  1. 使用配置文件:
mcp-server-axiom config.json

config.json 示例:

{ "token": "your_token", "url": "https://custom.axiom.co", "orgId": "your_org_id", "queryRate": 2, "queryBurst": 5, "datasetsRate": 1, "datasetsBurst": 2 }

API 端点

  • GET / :获取服务器实现信息
  • GET /tools :列出可用工具
  • POST /tools/:name/call :调用特定工具
    • 可用工具:
      • queryApl :执行 APL 查询
      • listDatasets :列出可用的数据集

工具调用示例

  1. 查询APL:
curl -X POST http://localhost:3000/tools/queryApl/call \ -H "Content-Type: application/json" \ -d '{ "arguments": { "query": "['logs'] | where ['severity'] == \"error\" | limit 10" } }'
  1. 列出数据集:
curl -X POST http://localhost:3000/tools/listDatasets/call \ -H "Content-Type: application/json" \ -d '{ "arguments": {} }'

执照

麻省理工学院

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

@Axiom 的 mcp-server-axiom 的 npx 兼容端口

  1. 安装与使用
    1. MCP 配置
    2. 本地开发和测试
  2. API 端点
    1. 工具调用示例
  3. 执照

    Related MCP Servers

    • A
      security
      A
      license
      A
      quality
      An MCP server to run commands.
      Last updated -
      2
      265
      150
      TypeScript
      MIT License
      • Apple
    • Axiomofficial

      -
      security
      A
      license
      -
      quality
      A Model Context Protocol server implementation for Axiom that enables AI agents to query your data using Axiom Processing Language (APL).
      Last updated -
      32
      Go
      MIT License
    • -
      security
      F
      license
      -
      quality
      A minimal TypeScript MCP server that provides a 'hello' tool using the fastMCP framework.
      Last updated -
      TypeScript

    View all related MCP servers

    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/ThetaBird/mcp-server-axiom-js'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server