Appearance
Read Wordfence Security Data with AI
Easy MCP AI provides two read-only tools for Wordfence scan results and Live Traffic. You don't need a Wordfence Central connection to use them.
In this article
Before you begin
Install and activate Wordfence Security and connect an AI client to Easy MCP AI. In your WordPress dashboard, open Easy MCP AI > Tools, find wp_wordfence_get_scan_issues and wp_wordfence_get_live_traffic in the Read group, enable them, and click Save changes. Make sure your AI connection also allows these tools.
The WordPress user associated with the connection needs the manage_options capability (permission) on a single site, or manage_network on a multisite network.
Read scan issues
Ask your AI client to use wp_wordfence_get_scan_issues to read the issues found by the last Wordfence scan. You can set status to new for open issues (the default) or ignored for issues an administrator chose to ignore.
The response includes the scan state, issue counts, and the matching issues. Wordfence orders the issues by severity and type, with the newest first within that ordering.
Read Live Traffic
Ask your AI client to use wp_wordfence_get_live_traffic to read Wordfence's Live Traffic log, with the newest requests first. The view filter defaults to all; other choices include failed_logins, locked_out, blocked, and blocked_by_firewall. You can also filter by an ip address, an exact username, or dates or date-times using since and until. If you provide both dates, since must be earlier than until.
Check the logging value in the response. When it is security_only, Wordfence does not record ordinary visits, so the tool cannot retrieve them. Wordfence's own Live Traffic reader may contact Wordfence's servers for IP-location or Googlebot checks.
Continue through results
Both tools accept a limit of 1 to 100 results per page, with a default of 20, and an offset (the number of results to skip), which defaults to 0. To continue, pass the response's next_offset as the next offset. A Live Traffic page may contain fewer results than requested, or even be empty, while still returning a next_offset; continue using it to read the next page. A null value means there is no next page.
Long text fields may be shortened; truncated lists the fields that were cut. Sensitive values are masked. These tools only read existing data: they cannot run scans, change issues, or alter blocking or firewall settings. Manage those actions in Wordfence itself.