@coppica/persuasion-mcp 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +108 -0
  3. package/data/LICENSE.md +8 -0
  4. package/data/catalog.json +1 -0
  5. package/data/categories.json +1 -0
  6. package/data/trait-evidence.json +187 -0
  7. package/dist/data.d.ts +81 -0
  8. package/dist/data.js +207 -0
  9. package/dist/format.d.ts +28 -0
  10. package/dist/format.js +50 -0
  11. package/dist/hookcheck/index.d.ts +98 -0
  12. package/dist/hookcheck/index.js +294 -0
  13. package/dist/http.d.ts +12 -0
  14. package/dist/http.js +62 -0
  15. package/dist/index.d.ts +2 -0
  16. package/dist/index.js +5 -0
  17. package/dist/roles.d.ts +68 -0
  18. package/dist/roles.js +188 -0
  19. package/dist/schemas.d.ts +7 -0
  20. package/dist/schemas.js +13 -0
  21. package/dist/scorers/claim-framework.d.ts +52 -0
  22. package/dist/scorers/claim-framework.js +363 -0
  23. package/dist/scorers/flow-framework.d.ts +69 -0
  24. package/dist/scorers/flow-framework.js +708 -0
  25. package/dist/scorers/hook-framework.d.ts +58 -0
  26. package/dist/scorers/hook-framework.js +447 -0
  27. package/dist/scorers/string-utils.d.ts +1 -0
  28. package/dist/scorers/string-utils.js +10 -0
  29. package/dist/server.d.ts +7 -0
  30. package/dist/server.js +71 -0
  31. package/dist/stats.d.ts +22 -0
  32. package/dist/stats.js +112 -0
  33. package/dist/tools/catalog.d.ts +2 -0
  34. package/dist/tools/catalog.js +84 -0
  35. package/dist/tools/craft.d.ts +2 -0
  36. package/dist/tools/craft.js +129 -0
  37. package/dist/tools/diagnose.d.ts +5 -0
  38. package/dist/tools/diagnose.js +269 -0
  39. package/dist/tools/plan.d.ts +4 -0
  40. package/dist/tools/plan.js +99 -0
  41. package/dist/tools/testing.d.ts +2 -0
  42. package/dist/tools/testing.js +145 -0
  43. package/dist/tools/why.d.ts +2 -0
  44. package/dist/tools/why.js +63 -0
  45. package/dist/voice.d.ts +33 -0
  46. package/dist/voice.js +139 -0
  47. package/package.json +73 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Coppica LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,108 @@
1
+ # Persuasion Taxonomy MCP
2
+
3
+ Most AI-written marketing copy fails for the same reason. The model answers every question the reader has with the most expected move, and the most expected move is exactly what readers have learned to skim past.
4
+
5
+ This server gives your AI a better model of the reader. Everyone who reads an ad, a page or an email is silently asking nine questions:
6
+
7
+ 1. Why am I even reading this?
8
+ 2. Is this written for me?
9
+ 3. How bad is my problem, really?
10
+ 4. Am I thinking about this correctly?
11
+ 5. Can I trust the claim?
12
+ 6. What does my life look like after?
13
+ 7. What's stopping me from saying yes?
14
+ 8. Why should I act right now?
15
+ 9. Do I like and trust who's speaking?
16
+
17
+ Copy persuades when it answers the questions its goal needs, answers them truthfully, and the answers fit together. The server helps your AI plan copy around those questions, check a draft against them before anyone sees it, and reach past the obvious move for one of 766 persuasion techniques documented from real advertising. It also does the math behind A/B tests.
18
+
19
+ It's free and needs no API key. It makes no AI calls of its own, either: your model does the thinking, and the server only serves the catalog and runs plain code.
20
+
21
+ ## Connect it
22
+
23
+ The hosted server lives at `https://taxonomy.coppica.com/mcp`. Any client that accepts a remote MCP server (Streamable HTTP) can use that URL as it is.
24
+
25
+ **Claude Code**
26
+
27
+ ```bash
28
+ claude mcp add --transport http persuasion-taxonomy https://taxonomy.coppica.com/mcp
29
+ ```
30
+
31
+ **Claude Code plugin.** This adds the server along with a short skill that tells Claude when to reach for it.
32
+
33
+ ```
34
+ /plugin marketplace add Otha-Labs/persuasion-mcp
35
+ /plugin install persuasion-taxonomy@persuasion-taxonomy
36
+ ```
37
+
38
+ **Claude, ChatGPT and other apps with custom connectors.** Add a custom connector and paste in the URL above. There's nothing to sign in to.
39
+
40
+ **Cursor** (`.cursor/mcp.json`)
41
+
42
+ ```json
43
+ { "mcpServers": { "persuasion-taxonomy": { "url": "https://taxonomy.coppica.com/mcp" } } }
44
+ ```
45
+
46
+ **VS Code** (`.vscode/mcp.json`)
47
+
48
+ ```json
49
+ { "servers": { "persuasion-taxonomy": { "type": "http", "url": "https://taxonomy.coppica.com/mcp" } } }
50
+ ```
51
+
52
+ **Run it on your own machine** (any client that launches local servers)
53
+
54
+ ```json
55
+ { "mcpServers": { "persuasion-taxonomy": { "command": "npx", "args": ["-y", "@coppica/persuasion-mcp"] } } }
56
+ ```
57
+
58
+ ## What your AI can do with it
59
+
60
+ You don't need to name the tools. Ask for what you want and a capable model reaches for the right one, and in testing it did so in all 16 realistic requests we tried, without being told the server existed.
61
+
62
+ | When someone asks... | The tool that answers |
63
+ |---|---|
64
+ | "Write me a landing page / ad / email / sales letter" | `plan_marketing_copy` plans it around the nine questions before a word is written |
65
+ | "Is this good?", "Roast this", "What's wrong with this copy?" | `diagnose_marketing_copy` shows which questions the copy answers, which it skips, and what reads as machine-written |
66
+ | "My ad gets clicks but no sales" | `explain_why_not_converting` works back from the symptom to the question going unanswered |
67
+ | "Give me other ways to build trust", "Make this less generic" | `find_persuasion_techniques` searches the catalog for a less expected move |
68
+ | "What is this technique called?", "How does it work?" | `get_persuasion_technique` returns the full entry, with real examples and when it backfires |
69
+ | "Which of these headlines is best?" | `check_headlines` says what each line is betting on and which two to test |
70
+ | "Is this claim believable?", "Is this button any good?" | `check_marketing_claims` catches vague superlatives, unproven promises and stock buttons |
71
+ | "How long should I run this test?" | `plan_ab_test` sizes the test and frames it so the result teaches you something |
72
+ | "Did my test win?" | `read_ab_test_result` reads the result and warns you when it might be lying |
73
+
74
+ It also offers four ready-made prompts (`/roast`, `/brief`, `/why-not-converting` and `/next-test`) and the nine questions as a resource you can read in full.
75
+
76
+ ## What it keeps
77
+
78
+ Nothing you send it. Your copy, your brief and your test numbers are used to answer that one request and then dropped. The hosted server logs which tool was called and when, and like any website, its host keeps ordinary request logs for a short time. The full policy is at [taxonomy.coppica.com/privacy](https://taxonomy.coppica.com/privacy).
79
+
80
+ ## Where the techniques come from
81
+
82
+ Every technique is an entry in [The Persuasion Taxonomy](https://taxonomy.coppica.com), a catalog of persuasion techniques documented from real ads, sales letters, emails and pages, with examples from the 1920s to now. The catalog is free under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). When your AI uses a technique, it names the technique and links to its page, so your reader can see the real examples behind the advice.
83
+
84
+ ## Develop
85
+
86
+ ```bash
87
+ npm install
88
+ npm run build
89
+ npm run smoke # connects as a client over stdio and calls every tool
90
+ npm run smoke -- --http # the same, over Streamable HTTP
91
+ npm run voice # checks every model-facing string for machine tells
92
+ ```
93
+
94
+ The catalog in `data/` is a snapshot. `npm run export-data` refreshes it, and it needs read access to Coppica's database, so outside contributors can work against the snapshot as it is.
95
+
96
+ The `src/http.ts` module exports `handleMcpRequest(request)`, which takes a web-standard `Request` and returns a `Response`. That makes it easy to host anywhere that speaks fetch: a Next.js route, a Vercel or Cloudflare function, or plain Node 18 and up.
97
+
98
+ ## Voice
99
+
100
+ Every word the server shows a model reads the way a good direct-response writer would write it: plain words, full sentences that lead into each other, no em dashes, no shouted labels and no "it's not X, it's Y". That goes for the instructions, the tool descriptions, every line of output and every error message. A model picks up the voice of whatever it reads and passes it on to whoever it's writing for, so the tool has to model the writing it asks for. `src/voice.ts` turns the scorers' findings into plain sentences, and `npm run voice` keeps it honest.
101
+
102
+ ## License
103
+
104
+ The code is [MIT](LICENSE). The catalog data in `data/` is [CC BY 4.0](data/LICENSE.md) and belongs to The Persuasion Taxonomy by Coppica.
105
+
106
+ ## About
107
+
108
+ Built by [Coppica](https://coppica.com). This server knows how readers think. Coppica connects that same model of the reader to your live conversion data, so over time it learns which answers actually sell to your buyers.
@@ -0,0 +1,8 @@
1
+ # License for the catalog data
2
+
3
+ The files in this folder are not covered by the MIT license that covers the code. They come from
4
+ The Persuasion Taxonomy by Coppica (https://taxonomy.coppica.com) and are licensed under Creative
5
+ Commons Attribution 4.0 International (CC BY 4.0, https://creativecommons.org/licenses/by/4.0/).
6
+
7
+ You're free to share and adapt them for any purpose, commercial ones included, as long as you give
8
+ credit. When you use a technique, name it and link to its page on taxonomy.coppica.com.