
dealroot
io.github.vicsorde-sketch/dealroot
Ask which ads, campaigns and pages bring leads and customers to your WordPress site.
Documentation
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 |
|---|---|---|
dealroot-get-report | Visits, leads, won deals, revenue, profit, ad spend and contact clicks by channel, source, campaign, landing page or form, for a period | Free |
dealroot-list-leads | Recent leads with contact details, status, deal value and source, filtered by status, period or a search term | Free |
dealroot-get-lead | 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 |
dealroot-update-lead-status | Change the status and the deal value; a won deal is reported to the ad platforms | Pro |
dealroot-add-lead-note | Add a dated note | Pro |
dealroot-assign-lead | Choose the owner | Pro |
dealroot-schedule-follow-up | Plan the date to get back to a lead | Pro |
dealroot-list-follow-ups | 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.
Connect an assistant
Requirements: WordPress 6.9 or later, HTTPS, Dealroot installed and activated.
- Copy the MCP address from Leads → Settings → AI assistant. It looks like
https://example.com/wp-json/dealroot/v1/mcp. - Create an application password under Users → Profile → Application passwords.
- Build the sign-in header:
printf 'user:xxxx xxxx xxxx xxxx xxxx xxxx' | base64→Authorization: Basic <result>.
Claude Code
claude mcp add --transport http dealroot https://example.com/wp-json/dealroot/v1/mcp --header "Authorization: Basic BASE64"
Claude Desktop
Through the mcp-remote helper (Node.js), in Settings → Developer → Edit Config:
{
"mcpServers": {
"dealroot": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://example.com/wp-json/dealroot/v1/mcp", "--header", "Authorization:${DEALROOT_AUTH}"],
"env": { "DEALROOT_AUTH": "Basic BASE64" }
}
}
}
Cursor
~/.cursor/mcp.json:
{
"mcpServers": {
"dealroot": {
"url": "https://example.com/wp-json/dealroot/v1/mcp",
"headers": { "Authorization": "Basic BASE64" }
}
}
}
VS Code
.vscode/mcp.json:
{
"servers": {
"dealroot": {
"type": "http",
"url": "https://example.com/wp-json/dealroot/v1/mcp",
"headers": { "Authorization": "Basic BASE64" }
}
}
}
The browser connectors of claude.ai and ChatGPT sign in with OAuth, which Dealroot does not offer yet.
Security
The assistant works with the permissions of the WordPress user whose application password it uses: only users who may see leads can read them, only users who may manage leads can change them. Revoke the application password to disconnect at once. 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 free plugin is open source under GPL-2.0-or-later and published on WordPress.org. Browse it on plugins.trac.wordpress.org/browser/dealroot/trunk: the MCP server is in includes/class-mcp.php, the tools in includes/class-abilities.php.
Questions and ideas: open an issue here or write to hello@dealroot.net.
License: GPL-2.0-or-later.
No installation packages available.