Dealroot
Reports leads, revenue and ad spend by campaign, and sends won-deal statuses as offline conversions to Google Ads (Pro).
Includes Meta campaign performance in reports and sends won deals as offline conversions to Meta (Pro).
Uses paid Stripe invoices to mark deals as won and include their value in lead and revenue reports (Pro).
Includes TikTok campaign performance in reports and sends won deals as offline conversions to TikTok (Pro).
Dealroot — lead source tracking and an MCP server for WordPress
Dealroot is a WordPress plugin that saves every form enquiry with where it came from — the ad, campaign and keyword, the search engine, an AI assistant, a social network or another website, and every visit before the enquiry — and follows it to the sale.
It also runs its own MCP server (Model Context Protocol), so Claude, Cursor, VS Code and other AI assistants can answer questions about your leads from your own data:
Which campaigns brought customers in the last 30 days? What did the people who came from Google Ads this week ask for? Which landing page brings the most enquiries per visit?
Website: dealroot.net
Plugin on WordPress.org: wordpress.org/plugins/dealroot
Documentation: dealroot.net/docs/ai-assistants
MCP tools
Tool | What it does | Plan |
| Visits, leads, won deals, revenue, profit, ad spend and contact clicks by channel, source, campaign, landing page or form, for a period | Free |
| Recent leads with contact details, status, deal value and source, filtered by status, period or a search term | Free |
| One lead with all its fields, its first and latest visit, the pages viewed before the enquiry and earlier enquiries from the same person | Free |
| Change the status and the deal value; a won deal is reported to the ad platforms | Pro |
| Add a dated note | Pro |
| Choose the owner | Pro |
| Plan the date to get back to a lead | Pro |
| Leads with a follow-up due | Pro |
The server speaks JSON-RPC over HTTP (the streamable HTTP transport, protocol versions 2024-11-05 to 2025-11-25). The same tools are registered as abilities of the WordPress Abilities API.
Related MCP server: wp-mcp
Connect an assistant
Requirements: WordPress 6.9 or later, HTTPS, pretty permalinks, Dealroot 1.2.0 or later.
Copy the MCP address from Leads → Settings → AI assistant. It looks like https://example.com/wp-json/dealroot/v1/mcp. Assistants sign in with OAuth: you sign in to WordPress and click Allow, the assistant gets a token for the MCP address only.
claude.ai and Claude Desktop
Customize → Connectors (claude.ai/customize/connectors) → + → Add custom connector, paste the address, keep the detected sign-in settings, click Add, then Connect and allow Claude.
ChatGPT
With developer mode on (Settings → Apps & Connectors → Advanced), create a connector with the address and OAuth.
Claude Code
claude mcp add --transport http dealroot https://example.com/wp-json/dealroot/v1/mcpThen /mcp → dealroot → sign in.
Cursor
~/.cursor/mcp.json, then Connect in the MCP settings:
{
"mcpServers": {
"dealroot": { "url": "https://example.com/wp-json/dealroot/v1/mcp" }
}
}VS Code
.vscode/mcp.json:
{
"servers": {
"dealroot": { "type": "http", "url": "https://example.com/wp-json/dealroot/v1/mcp" }
}
}Over stdio, through WP-CLI
For clients that start a command, and for sites you reach by SSH: docker/stdio.php reads one JSON-RPC message per line and answers through the same endpoint, as the WordPress user you name. No application password is needed.
scp docker/stdio.php example.com:dealroot-stdio.php
claude mcp add dealroot -- ssh example.com wp --path=/var/www/html eval-file dealroot-stdio.php --user=adminTry it in Docker
The Dockerfile builds a throwaway WordPress on SQLite with the plugin from this repository and starts the server over stdio. It has no leads, so it is for trying the tools, not for your data.
docker build -t dealroot-mcp https://github.com/vicsorde-sketch/dealroot.git
claude mcp add dealroot -- docker run -i --rm dealroot-mcpApplication password
For scripts and clients without OAuth: create an application password under Users → Profile → Application passwords and send Authorization: Basic <base64 of user:application-password>.
How the sign-in works
Dealroot is its own OAuth 2.1 authorization server, as the MCP authorization spec asks:
Protected resource metadata (RFC 9728) at
/wp-json/dealroot/v1/oauth-protected-resourceand/.well-known/oauth-protected-resource; a 401 from the MCP address points to it inWWW-Authenticate.Authorization server metadata (RFC 8414 and OpenID discovery paths).
Client ID metadata documents and dynamic client registration (RFC 7591).
Authorization code with PKCE (S256 only),
issin the response, resource indicators (RFC 8707).Access tokens for one hour, refresh tokens that change with every use, revocation (RFC 7009). Only hashes of tokens are stored.
Security
The assistant works with the permissions of the WordPress user who allowed it: only users who may see leads can connect and read them, only users who may manage leads can change them. Connected assistants are listed in the AI assistant settings with a Disconnect button. Dealroot sends nothing anywhere by itself; it only answers when the assistant asks.
What else Dealroot does
Lead source on every enquiry from 25 form plugins and page builders (Contact Form 7, WPForms, Gravity Forms, Elementor, Fluent Forms, Ninja Forms, Formidable, WooCommerce and more), no hidden fields, works on cached pages
Reports by channel and campaign, first and latest visit
AI assistant that reads every enquiry, filters spam and drafts replies
Dealroot Pro: offline conversions to Google Ads, Microsoft Advertising, Meta, TikTok and LinkedIn, ad spend and return on ad spend, CRM sync, won deals from paid invoices in Stripe, Lexware Office and sevDesk
Source code
The whole plugin, MCP server included, is in plugin/, the same code as on WordPress.org (GPL-2.0-or-later):
plugin/includes/class-mcp.php: the MCP server — JSON-RPC over streamable HTTP,initialize,tools/list,tools/callplugin/includes/class-abilities.php: the tools, registered as abilities of the WordPress Abilities APIplugin/includes/class-oauth.php: the OAuth sign-in for assistantsdocker/stdio.php: the stdio transport through WP-CLI
Questions and ideas: open an issue here or write to hello@dealroot.net.
License: GPL-2.0-or-later.
Available Tools
3 toolsdealroot-get-leadGet leadBRead-onlyIdempotent
Returns one lead with all submitted fields, its first and most recent visit, the pages viewed before the enquiry and earlier enquiries from the same person.
Inputs: id (required).
dealroot-get-reportGet lead reportARead-onlyIdempotent
Returns visits, leads, won deals, revenue, gross profit (when margins are set), ad spend (when imported) and contact clicks grouped by marketing channel, source, campaign, landing page or form. Use it to answer which channels or campaigns bring enquiries and customers, and which ones pay off.
Inputs: model, period, dimension.
dealroot-list-leadsList leadsARead-onlyIdempotent
Lists recent leads with contact details, status, deal value and marketing source. Filter by status, period or a search term.
Inputs: limit, period, search, status.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools target clearly separate shapes of data: an aggregated analytics report, a filtered collection of leads, and a single lead's full detail. An agent can easily decide between 'aggregate metrics' (get-report), 'find/list leads' (list-leads), and 'drill into one lead' (get-lead) with no overlap.
All tools follow the same `dealroot-verb-noun` pattern (get-report, list-leads, get-lead), using a consistent kebab-case namespace prefix and standard verbs. There are no mixed conventions or vague verbs.
Three tools is thin for a domain that spans leads, visits, deals, revenue, ad spend, campaigns and contacts. The surface is coherent but borderline minimal — a single reporting tool plus two lead-read tools leaves little room for adjacent operations.
Read-side coverage is reasonable (aggregate reporting, lead listing, lead detail), but there are notable gaps: no way to create or update a lead/status, no deal or campaign operations, and ad spend is only referenced as 'when imported' with no import tool. Agents can answer analysis questions but cannot act on the data.
Maintenance
Related MCP Connectors
AI WordPress management with ChatGPT and Claude via MCP. GPL WordPress Connector; hosted service.
Hosted WordPress MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
WordPress MCP server: generate SEO posts, AI images, autoblog & WooCommerce on your self-hosted site
Related MCP Servers
- AlicenseAqualityAmaintenanceOpen-source WordPress plugin that turns any site into a Streamable HTTP MCP server. Manage posts, WooCommerce, and more from Claude Code, Codex, or Cursor — no Node.js222GPL 2.0
- AlicenseNot gradedqualityCmaintenanceMCP server for WordPress content management via REST API, supporting posts, pages, media, comments, and terms through natural language interfaces like Cursor, ChatGPT, Codex, and Claude.MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients like Claude Code and Cursor to control a WordPress site via 58 abilities over stdio (WP-CLI) or HTTP, self-contained and cloud-free.33GPL 2.0
- AlicenseNot gradedqualityBmaintenanceWordPress plugin that runs an MCP server on your own site: search and read published posts and pages, look up WooCommerce products, describe the site as schema.org types and query site figures, with drafts only when the site enables them. Signed-in access by default; anonymous access and OAuth are optional and off.1GPL 2.0