motivate-mcp
This server provides motivational quotes semantically matched to your current task, with no API key or network calls required. You can:
Get a motivational quote (
motivate): Provide a short task description to receive a relevant quote and author, with optional repeat avoidance within a session.List all topics (
list_topics): See every topic in the quote database and how many quotes each contains.Explain topic matching (
explain_match): Analyze how a task description matches topics and why, without returning a quote—useful for tuning matching logic.Optional hook integration: Automatically inject a matched quote into context on every prompt submission.
Customization: Add new quotes and adjust keyword matching logic, with tests to validate integrity.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@motivate-mcp I'm stuck debugging this error, give me a motivational quote"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
motivate-mcp
An MCP server that returns a motivational quote matched to the task you are actually working on.
essentially you getting cool motivational quotes with their authors which are semantically chosen to your task that your agent is currently working on ! Have fun , learn and use it for good things. Also i suggest go outside more , laugh and give love to others as much as you can. Go and see your parents as much as possible. They won't always be here -- but they would love you to be here for long , and live the life you deserve. Love you.
``
"When you have eliminated the impossible, whatever remains, however improbable, must be the truth." — Arthur Conan Doyle
72 quotes across 57 topics. No API key, no network calls, no telemetry.
## Install
```bash
git clone https://github.com/lazyturtle22/motivate-mcp.git
cd motivate-mcp
npm installUse it as an MCP server
Add it to your MCP client config. For Claude Code, ~/.claude.json:
{
"mcpServers": {
"motivate": {
"command": "node",
"args": ["/absolute/path/to/motivate-mcp/src/index.js"]
}
}
}Restart the client and three tools appear.
Tools
Tool | What it does |
| Returns a quote matched to a task description. Takes |
| Lists every topic and how many quotes sit under it |
| Shows which topics a description matches, without returning a quote. Useful when tuning the keyword map |
Repeats are tracked per session, so a long session will not serve you the same line twice until it runs out of relevant ones.
Related MCP server: Phrases MCP Server
Getting a quote on every message
An MCP tool only fires when the model decides to call it, so it will not reliably hit every message. If you want one every time, use the included hook instead. It runs on every prompt you submit, reads what you typed, and prints a matched quote into the context.
Add to ~/.claude/settings.json:
{
"hooks": {
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "node /absolute/path/to/motivate-mcp/hook/motivate-hook.js"
}
]
}
]
}
}Set MOTIVATE_QUIET=1 to silence it without unwiring it. The hook fails silently by
design: a broken quote generator should never be able to break your prompt.
The two can run together. The hook gives you the every-message drip, the MCP tool lets the model ask for one deliberately when it thinks you need it.
How the matching works
src/match.js holds a map of topic to signal words. A task description is scanned for
those words, topics are scored (multi-word phrases count double, since they are stronger
evidence), and quotes are ranked by how well their topics overlap the top matches.
Signals match at a word start, not anywhere in the string. This matters if you add
your own. A plain substring check looks fine until you notice ui fires on "built"
and "guide", try fires on "country", and lead fires on "misleading" — so
you ask about building something and get a quote about design.
There is deliberately no boundary on the end of a signal, so stems still work:
optimis matches "optimising", frustrat matches "frustrated". When adding a short
signal (three characters or fewer), check it against a few real sentences first.
The final pick is randomised across everything within 70% of the best score, so the same input does not always produce the same line.
If nothing matches, it falls back to the whole database rather than returning nothing.
Check what a description matches before adding new signal words:
node -e "import('./src/match.js').then(m => console.log(m.scoreTopics('your text here')))"Adding quotes
Edit src/quotes.js. Each entry is:
{
text: "The quote itself.",
by: "Who said it",
topics: ["debugging", "persistence"],
}Attribution rules, please keep to them:
Where a line is widely repeated but the original wording or source is disputed,
bystarts withattributed to. Do not strip that prefix to make it look tidier.Proverbs and genuinely anonymous lines are credited as
ProverborAnonymous.
Use topics that already exist where you can, so quotes cluster rather than scatter. Run
npm test afterwards, which checks for duplicates, missing authors and orphan topics.
Tests
npm testNine tests using the built-in node:test runner. No framework, no build step.
Licence
MIT. See LICENSE.
Available Tools
3 toolsexplain_matchA
Show which topics a task description matches and why, without returning a quote. Useful for tuning the keyword map.
Inputs: task (required).
list_topicsA
List every topic in the quote database, with how many quotes sit under each.
Inputs: no named parameters.
motivateA
Return a motivational quote matched to the task currently being worked on. Call this at the start of a reply, passing a short description of what the user is doing, and include the returned line in your response.
Inputs: task (required), avoid_repeats.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a distinctly separate purpose: explaining matches, returning a quote, and listing topics. The descriptions explicitly differentiate them, such as explain_match clarifying it does not return a quote, leaving no ambiguity.
Two tools follow a clear verb_noun pattern (explain_match, list_topics), while 'motivate' is a single verb. This minor deviation is still intuitive and readable, so the set is mostly consistent.
With only 3 tools, the server is well-scoped for its niche purpose of delivering motivational quotes. Each tool serves a distinct function without unnecessary bloat, fitting comfortably in the typical 3-15 tool range.
The server covers retrieving quotes and explaining matches, but gaps exist: there is no tool to modify the keyword map despite explain_match being for tuning, nor any management for quotes or topics. These missing operations hinder a tuning-focused workflow.
Maintenance
Related MCP Connectors
MCP server for generating rough-draft project plans from natural-language prompts.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for trivia: 1.4M+ questions (EN+PL), 24 categories, 12 tools + 4 prompts, OAuth 2.1.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- FlicenseCqualityDmaintenanceThis is an MCP server that facilitates building tools for interacting with various APIs and workflows, supporting Python-based development with potential for customizable prompts and user configurations.1-
- AlicenseAqualityDmaintenanceAn elegant MCP server that lets users manage inspirational phrases directly through Claude for Desktop, offering complete CRUD operations for phrases with author attribution.62ISC
- FlicenseNot gradedqualityDmaintenanceA sample MCP server that fetches random inspirational quotes, programming jokes, and advice from public APIs. Provides three simple tools for testing and demonstration purposes.-
- FlicenseCqualityDmaintenanceA simple MCP server demonstrating resources, tools, and prompts using a local task list. It enables reading, creating, and analyzing tasks through MCP.1-