Skip to main content

AXM MCP Server — Runtime execution for the axm-protocols ecosystem

Project description

AXM Logo

axm-mcp — MCP server for the axm-protocols ecosystem

CI axm-audit Coverage PyPI Python 3.12+ Docs


Features

  • 🔌 Auto-discovery — Finds all axm.tools entry points from installed packages
  • 🛠️ MCP bridge — Exposes discovered tools as Model Context Protocol callables
  • Verify — One-shot project quality check: audit + init check + AST enrichment
  • 🌐 Web fetch — Anti-bot web page fetching via Scrapling (basic / dynamic / stealth)
  • 📋 List tools — Built-in list_tools meta-tool to enumerate all available tools and their descriptions

Installation

Connect the server to your MCP client (Claude Code, IDE…) in one command — no manual install, uvx fetches the latest version on demand:

claude mcp add --scope user axm-mcp -- uvx --python 3.12 --from "axm-mcp[all]@latest" axm-mcp

--scope user installs it globally (available in every session). Drop it to enable AXM per-project instead — the server then loads only in the directory where you run the command.

Prefer editing .mcp.json by hand? Add:

{
  "mcpServers": {
    "axm-mcp": {
      "command": "uvx",
      "args": ["--python", "3.12", "--from", "axm-mcp[all]@latest", "axm-mcp"]
    }
  }
}

The [all] extra is what pulls in the actual tools (audit, ast_*, git_commit, …); the bare axm-mcp package is only the server shell. See the Quick Start for the full walkthrough and why each flag matters.

Server Modes

axm-mcp supports two transport modes. stdio (above) is the simple default — one server process per conversation, works everywhere. HTTP is an advanced option for running a single shared persistent server.

Mode Command Client config Use case
stdio (default) axm-mcp uvx --from "axm-mcp[all]@latest" axm-mcp Simple, one process per conversation
HTTP (advanced) axm-mcp serve {"type": "url", "url": "http://localhost:9427/mcp"} Single shared server, persistent cache

For the HTTP setup, see Migrate to HTTP Transport.

CLI Commands

Command Description
axm-mcp Start in stdio mode (backward-compatible default)
axm-mcp serve [--host HOST] [--port PORT] Start Streamable HTTP server (default port 9427)
axm-mcp status [--host HOST] [--port PORT] Check whether the HTTP server is running
axm-mcp stop Send SIGTERM to the running HTTP server. Verifies the PID file's process is really axm-mcp (via ps cmdline) before signalling; if the PID was reused by another process, it refuses to kill it and cleans up the stale PID file
axm-mcp install [--port PORT] [--binary PATH] Install axm-mcp as a launchd service (macOS)
axm-mcp uninstall Remove the launchd service

The HTTP transport exposes a /health endpoint returning {"status": "ok", "tools_count": N}. Port can also be set via the AXM_MCP_PORT environment variable.

Service Management (macOS)

axm-mcp can run as a persistent background service managed by launchd:

# Install and start the service
axm-mcp install

# Remove the service
axm-mcp uninstall

install locates the axm-mcp binary, generates a launchd plist, and loads it via launchctl. uninstall unloads the service and removes the plist file.

MCP Tools

Tool Package Description
list_tools built-in List all available tools
verify built-in One-shot audit + init check + AST enrichment
web_fetch built-in Fetch web pages with anti-bot bypass (basic / dynamic / stealth)
audit axm-audit Code quality audit (lint, types, complexity, security)
init_check axm-init 39 governance checks against AXM gold standard
init_scaffold axm-init Scaffold a new Python project
bib_search axm-bib Search academic papers by title
bib_doi axm-bib Resolve DOI → BibTeX
bib_pdf axm-bib Download paper PDF
bib_extract axm-bib Extract text from PDF

Development

This package is part of the axm-forge workspace.

git clone https://github.com/axm-protocols/axm-forge.git
cd axm-forge
uv sync --all-groups
uv run --package axm-mcp --directory packages/axm-mcp pytest -x -q

License

Apache-2.0 — © 2026 Gabriel Jarry

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

axm_mcp-0.5.0.tar.gz (86.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

axm_mcp-0.5.0-py3-none-any.whl (43.3 kB view details)

Uploaded Python 3

File details

Details for the file axm_mcp-0.5.0.tar.gz.

File metadata

  • Download URL: axm_mcp-0.5.0.tar.gz
  • Upload date:
  • Size: 86.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for axm_mcp-0.5.0.tar.gz
Algorithm Hash digest
SHA256 510dc12648ff557eee7f98dd2ad1467b6499f96d0767d2a4aa7d016dd426483f
MD5 5e43f11f259740faa68e439cd5ec1c00
BLAKE2b-256 2781d4232b915d93e35c03a70cfd5d30d39c18aa8b04e31a54638bbfd2ff094a

See more details on using hashes here.

Provenance

The following attestation bundles were made for axm_mcp-0.5.0.tar.gz:

Publisher: publish.yml on axm-protocols/axm-forge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file axm_mcp-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: axm_mcp-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 43.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for axm_mcp-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15a421f43f1e737bd2095bfee90bf8e93ac60a46b1284a1430e79bd9987e383e
MD5 57c518546bcca511dd129e4e7d836491
BLAKE2b-256 2b7b7b75be8d3a18cef10730ceb19cf1b28dc871729e907336c08ebf3226d99f

See more details on using hashes here.

Provenance

The following attestation bundles were made for axm_mcp-0.5.0-py3-none-any.whl:

Publisher: publish.yml on axm-protocols/axm-forge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page