MCP (Model Context Protocol) for UTMGrabber Reports

Overview

The MCP feature allows you to connect your WordPress site to AI assistants like Claude Desktop, Cursor, and Codex using the Model Context Protocol. Once connected, you can query your UTMGrabber reports using natural language directly from any MCP-compatible client.

Disclaimer: AI-generated results may be inaccurate or incomplete. Always review before acting on them.

For example, you can ask questions like:

Requirements

Setup

Step 1: Navigate to the MCP Tab

  1. Go to WordPress Admin > UTM > MCP

You will see the MCP setup screen:

mcp-setup-screen.png

Step 2: Connect to MCP

  1. Click the Connect to MCP button
  2. The plugin will automatically register your site using your license key
  3. Once connected, you will see your unique MCP URL

mcp-connected.png

Step 3: Copy Your MCP URL

  1. Your unique MCP URL will be displayed on screen (partially truncated for security)
  2. Click the copy icon next to the URL to copy the full URL to your clipboard
  3. You will see a confirmation toast when the URL is copied

Important: This URL contains your secret access code. Treat it like a password. Do not share it publicly or commit it to version control.

Step 4: Add to Your MCP Client

Use the copied URL in your preferred MCP-compatible client:

Claude Desktop

Add to your Claude Desktop configuration file (claude_desktop_config.json):

{
  "mcpServers": {
    "utmgrabber": {
      "url": "YOUR_MCP_URL_HERE"
    }
  }
}

Cursor

Add to your Cursor MCP settings (.cursor/mcp.json):

{
  "mcpServers": {
    "utmgrabber": {
      "url": "YOUR_MCP_URL_HERE"
    }
  }
}

Features

Query UTM Reports with Natural Language

Once connected, you can ask your AI assistant questions about your UTMGrabber data. The MCP server exposes the following capabilities:

Secure Communication

All communication between the MCP server and your WordPress site is secured using HMAC-SHA256 signed requests. Your site secret is never transmitted after the initial setup. Only the MCP server and your WordPress plugin know the shared secret.

Managing Your Connection

Reconnecting

If you need to regenerate your MCP credentials (e.g. you suspect the URL was compromised):

  1. Click the Reconnect button
  2. A confirmation dialog will appear warning that this will invalidate your current URL

mcp-reconnect-confirm.png

  1. Click Reconnect to confirm
  2. A new MCP URL will be generated
  3. Update all your MCP clients with the new URL

Disconnecting

To completely revoke MCP access for your site:

  1. Click the Disconnect button (shown in red)
  2. A confirmation dialog will appear

mcp-disconnect-confirm.png

  1. Click Disconnect to confirm
  2. Your MCP credentials will be revoked immediately
  3. Any MCP clients using the old URL will stop working
  4. You can reconnect later, but a new URL will be generated

Troubleshooting

"Failed to connect to MCP server"

MCP client can't connect after setup

Data is not showing in AI responses

Connection was working but stopped

Best Practices


Revision #3
Created 16 March 2026 22:21:48 by Maruf
Updated 23 March 2026 20:29:57 by Maruf