audit_export
Audit Export is a powerful auditing and reporting tool for Drupal that helps site administrators and developers gain insights into the structure and usage of their site. From entity audits to automated CSV exports, Audit Export provides visibility and control for maintaining healthy, well-structured Drupal environments, and can optionally expose audit data to AI agents and external systems via the Tool API for use by modules like MCP.
Features
- Run audits on entity structure, user roles, blocks, menus, taxonomy, views, and more
- Automate audit reports via Drupal cron
- Export audit data as CSV for integration with external tools and data pipelines
- Drush support for running and exporting reports from the command line (CI/CD friendly)
- Custom plugin system for building your own audits and tailored reports
- Optional remote posting to external APIs or monitoring systems
- Tool API integration via the
audit_export_toolsubmodule, exposing audits and reports as tools that can be consumed by the Tool API ecosystem (including modules like MCP)
Tool API Integration (for MCP and Other Clients)
For AI-powered and agent-driven workflows, enable the audit_export_tool submodule alongside the
Tool API module. This exposes Audit Export functionality
(listing audits, running audits, retrieving stored reports, exporting CSV data, and more) as Tool API tools
that can be invoked programmatically by external clients.
The MCP module builds on Tool API to make these tools available
to MCP-compatible clients and LLM-based agents, but Audit Export itself integrates specifically with Tool API,
not directly with MCP.
Similar Modules
Post-Installation
After installation, visit /admin/config/system/audit-export to access the admin UI and run audits.
Reports can be exported via the UI or Drush. You can also enable cron to automate reporting, or use Drush commands
such as drush audit-export:run and drush audit-export:export to integrate with your CI/CD
workflow.
To expose audits as tools for external clients, enable the audit_export_tool submodule and configure
your Tool API settings. If you want to use Audit Export tools
from MCP-compatible clients, also install and configure the MCP
module.
Additional Requirements
- Drupal 7-11
- Drush for command-line integration (optional but recommended)
- Optional: Tool API module to expose Audit Export functionality as tools
- Optional: MCP module if you want to access these tools via Model Context Protocol clients
Supporting this Module
Contributions and feedback are welcome. Please help improve it by submitting issues, feature requests,
or pull requests.