sun-tzu-mcp
Click on "Install 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., "@sun-tzu-mcpFind a Sun Tzu quote for dealing with a micromanaging boss"
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.
sun-tzu-mcp
An MCP server that finds the Sun Tzu quote for a situation. Built for workplace use: describe what is happening ("the PM keeps adding scope two days before release") and get back verses from The Art of War with their chapter citation, so the quote you paste is the quote Sun Tzu actually wrote.
Tools
Tool | What it does |
| Matches a plain-language situation to verses, best first |
| The theme vocabulary, with a gloss and verse count for each |
| One verse at random from the annotated set |
| Renders a verse as a PNG card, 1200x630, and copies it to the clipboard |
There is also a sun-tzu://corpus resource holding all 383 verses.
The card is written to a temp file and put on the clipboard. Clipboard copying is macOS only; on other platforms the PNG is still written and the tool says so instead of failing.
caption sets one italic line above the verse, for framing the quote (On being told "good job"). It is
taken verbatim, shrunk to fit, then clipped with an ellipsis. Omit it for a bare card.
Related MCP server: Hilanet MCP
Install
Needs Node 20 or newer. Nothing else: no API key, no network, no database.
claude mcp add sun-tzu -- npx -y sun-tzu-mcpOr, for any MCP client that takes a JSON config:
{
"mcpServers": {
"sun-tzu": {
"command": "npx",
"args": ["-y", "sun-tzu-mcp"]
}
}
}The server runs locally as a subprocess of the client and talks stdio. Nothing is hosted, nothing phones home.
From a clone
pnpm install
pnpm build
claude mcp add sun-tzu -- node /absolute/path/to/sun-tzu-mcp/dist/index.jsHow matching works
No embeddings, no network, no API key. The corpus ships with the server and matching is deterministic:
The situation is normalized, tokenized and stemmed.
A lexicon maps working-life vocabulary onto the theme vocabulary, so
reorgreaches verses taggedadaptabilityandmicromanagereachesdelegationwithout sharing a word with the text.Verses score on three fields: matched themes (weight 3), curated situation hints (2), and verse text (1). A theme that several query terms agree on counts for more, which keeps an incidental word from steering the result.
The tradeoff: paraphrase far outside the lexicon matches less well than embeddings would. In exchange it is instant, free, offline and debuggable, and the calling model is already good at rewriting a situation into words the lexicon knows.
Data
data/source/pg132.txt— the Giles 1910 translation, Project Gutenberg #132, public domain.data/verses.json— generated. 383 verses parsed out of the source bypnpm corpus. Do not edit by hand.data/tags.json— hand-curated. Themes and situation hints for the verses that carry over to working life. Kept separate fromverses.jsonso re-parsing never wipes it.data/themes.json— the theme vocabulary.tags.jsonis validated against it at server startup, so an unknown theme fails loudly instead of silently never matching.
Parsing notes
The Gutenberg plain text interleaves Giles' commentary with the verses and its brackets are not
reliable: blocks are missing opening brackets, missing closing brackets, and one verse (V.9) is missing
the period after its number. Character-level bracket counting silently swallows whole chapters. The
parser therefore works paragraph by paragraph, uses verse numbers as hard boundaries, and falls back on
markers of Giles' voice (commentator names, dates, "says:") where the brackets fail. pnpm corpus
prints verse coverage per chapter and flags any gap in the numbering, so a regression is visible.
Tests
pnpm build && pnpm testCovers the corpus (verse count, citation format, no commentary leakage) and the matcher (a table of
situations that must each reach a specific verse in the top 3). Add a row to EXPECTED in
test/match.test.mjs when you extend the lexicon.
Licence
The translation is public domain. The code and the curation are MIT.
Available Tools
4 toolsfind_quoteFind a Sun Tzu quote for a situationA
Finds the Art of War verses that fit a described situation. Describe the situation in plain words, including how it feels ("the PM keeps adding scope two days before release", "manager set an impossible deadline", "team is burnt out after a long migration"). Returns verses with their chapter citation, best match first. Use list_themes first if you want to browse the vocabulary instead of describing a situation.
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many quotes to return (default 3). | |
| theme | No | Restrict results to one theme. See list_themes. | |
| situation | Yes | The situation to match, in plain language. More detail matches better. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must carry the behavioral disclosure itself. It states that results are verses with chapter citation, ordered best match first, and gives input-pattern examples. It doesn't address no-match behavior or side effects, but the disclosed behavior and return ordering provide solid transparency for a simple search tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three sentences carry purpose, usage examples, output format, and an alternative-tool pointer without repetition. The examples are substantive rather than padding, and the most important verb/resource phrase is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a search tool with no annotations or output schema, the description covers the essential user journey: what it returns, how to phrase input, and where to go for an alternative workflow. It wisely leaves parameter detail to the schema; the only omission is explicit error/no-result handling, but that is not core to selecting the tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema already fully documents all three parameters (count, theme, situation) at 100% coverage, so the baseline is 3. The description adds value by instructing users to describe the situation 'in plain words, including how it feels' and offering concrete example phrases, which clarifies the intended input format beyond the schema's generic 'plain language' note.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The opening sentence is specific: 'Finds the Art of War verses that fit a described situation,' naming both the resource (Art of War verses) and the action (semantic matching). It explicitly distinguishes from the list_themes sibling with the caveat about browsing vocabulary, and the 'fit a described situation' phrasing clearly separates it from random_quote.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives concrete when-to-use guidance through examples of situations ('PM keeps adding scope...') and advises using list_themes first if the user wants to browse vocabulary instead of describing a situation. This is an explicit alternative, satisfying the when/when-not requirement even though random_quote and quote_card are not named.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_themesList the themes verses are tagged withA
Lists the theme vocabulary used to tag the corpus, with a one-line gloss and how many verses carry each theme. Useful for browsing, or to pick the theme argument for find_quote.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It discloses the output format (one-line gloss and verse counts) and implies a read-only operation via 'lists'. However, it doesn't explicitly state safety, auth requirements, or any edge-case behavior, so it's not fully transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences, front-loaded with the main action, and every word adds value. It avoids repetition and is well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has no parameters, no output schema, and no annotations, the description provides sufficient context: what it returns, how it's structured, and why to use it. It is complete for its complexity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has zero parameters, so there are no parameter semantics to explain. The description doesn't need to add parameter context, hence baseline 4 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb 'Lists' and resource 'theme vocabulary used to tag the corpus', clearly distinguishing it from sibling tools that return quotes, not themes. It also specifies the output includes glosses and verse counts.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It explicitly mentions the tool is useful for browsing or for picking a theme argument for find_quote, giving clear context on when to use it. However, it doesn't explicitly exclude other scenarios or name alternatives with usage comparisons.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
quote_cardRender a quote as a shareable imageA
Renders one verse as a PNG quote card on a Sun Tzu themed background, writes it to a temp file and puts it on the clipboard (macOS), ready to paste into Slack or a doc. Pass either a situation to match, or verse with a citation ref like "X.14" or "10.14" to card a verse you already picked. Returns the file path as text, never the image itself.
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Pixel density. 1 is 1200x630, default 2 for a sharp paste. | |
| verse | No | Citation ref of a specific verse, e.g. "X.14" or "10.14". | |
| caption | No | Short framing line set in italics above the verse, e.g. 'On being told "good job"'. Written for a reader, not the raw `situation` query. One line, shrunk then clipped to fit. Omit for a bare quote card. | |
| situation | No | Situation to match. The best-matching verse gets carded. Ignored if `verse` is set. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full behavioral disclosure. It clearly states the output is a PNG file, it is written to a temp file, copied to the macOS clipboard, and returns only the file path as text (never the image itself). This gives the agent a complete picture of side effects and return behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is three sentences long and packs in the core purpose, the parameter relationship, and the return behavior. It is front-loaded and every sentence contributes, though slightly more verbose than strictly necessary.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given 4 optional parameters, no output schema, and no annotations, the description is highly complete. It explains what the tool returns (file path text), the macOS clipboard side effect, and how the mode selection works, so an agent can invoke it confidently without additional documentation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The description adds minimal new meaning beyond the schema; it reiterates the situation/verse relationship already in the schema. It does add some context about caption formatting (italic, one line, shrunk/clipped) but this is marginal.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description explicitly states the tool renders one verse as a PNG quote card, writes it to a temp file, and puts it on the clipboard. This is a specific verb+resource (render verse) that clearly distinguishes it from siblings like find_quote, random_quote, and list_themes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explains two usage modes (situation or verse) and the intended use case (pasting into Slack or a doc). It does not explicitly name alternatives or when not to use, but the context is clear enough for an agent to select this over siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
random_quoteGet a random Sun Tzu quoteA
Returns one verse at random from the annotated set, optionally restricted to a theme. For when you want a line rather than an answer to a specific situation.
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | Restrict to one theme. See list_themes. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must carry the burden. It discloses the key behavioral trait: randomness ('at random'). It also mentions that the verse comes from 'the annotated set,' implying a curated collection. While it does not explicitly state that the operation is read-only, the verb 'returns' and the nature of the tool make this obvious. It adds useful behavioral context beyond the schema.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and front-loaded: two sentences that immediately state what the tool does and when to use it. There is no wasted text, and every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (one optional parameter) and no output schema, the description is largely complete. It explains the random selection and optional theme filter, and points to list_themes for theme enumeration. It does not describe the return format, but for a quote tool this is acceptable and not a significant gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the baseline is 3. The description says 'optionally restricted to a theme,' which essentially restates the schema property. It adds no new semantics about the parameter, such as behavior when omitted or the meaning of specific theme values. The schema itself already provides the enum and a description, so the description contributes little beyond redundancy.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: 'Returns one verse at random from the annotated set, optionally restricted to a theme.' This is a specific verb and resource, and the phrase 'For when you want a line rather than an answer to a specific situation' distinguishes it from sibling tools like find_quote, which target specific queries.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit when-to-use guidance: 'For when you want a line rather than an answer to a specific situation.' This implies that find_quote is the alternative for specific questions, though it does not name it directly. It also mentions optional theme restriction and refers to list_themes, giving context on how to use the theme parameter.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
4 tool updates
v0.2.0- First observed
find_quote - First observed
list_themes - First observed
quote_card - First observed
random_quote
TDQS
Each tool has a clearly distinct role: list_themes for vocabulary browsing, find_quote for situation-based search, random_quote for random selection, and quote_card for rendering. There is no functional overlap between them.
list_themes and find_quote follow a verb_noun pattern, but random_quote and quote_card are noun phrases, mixing conventions. The names are still readable and consistently lowercase with underscores.
With only 4 tools, the server is tightly scoped for its purpose of delivering Art of War quotes. Each tool earns its place and the count is appropriate.
The core workflow of finding, randomizing, and sharing quotes is covered, but there is no way to list all quotes for a given theme or fetch a quote's text by citation. These are notable gaps for a quote-focused server.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for generating rough-draft project plans from natural-language prompts.
An MCP server that provides congressional transcripts
MCP server exposing Kettle Logic insight articles & industry guidance as tools + resources.
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- AlicenseAqualityDmaintenanceAn elegant MCP server that lets users manage inspirational phrases directly through Claude for Desktop, offering complete CRUD operations for phrases with author attribution.62,4372MIT
- FlicenseNot gradedqualityDmaintenanceA satirical MCP server providing HR-related tools that simulate actions in a corporate dystopia, such as increasing salaries, scheduling mandatory fun events, and generating corporate jargon.37-
- 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.-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables searching Discord messages using Discord's native search API. Designed for use with Claude Code to find project decisions and communications in Discord.-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sandbye/sun-tzu-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server