count_words
Count words in a given text.
An example server with 4 tools: greet a name, echo a message back, count the words in a text, and read what the server reports about itself.
LABSCO SUMMARY
The four tools operate on their own arguments and reach nothing else, so what you get is a server that answers — enough to confirm a client's transport, tool discovery and argument passing all work before anything real is connected. get_server_info is the piece you would keep and rewrite; say_hello, echo_message and count_words exist to be replaced.
A minimal example MCP server whose 4 tools — say_hello, echo_message, count_words and get_server_info — each act on the argument they are handed rather than on any outside system.
No account and no key. Each call is self-contained: say_hello needs a name, echo_message a message, count_words a text, and get_server_info nothing at all.
One command — uvx --from git+https://github.com/macsymwang/hello-mcp-server.git hello-mcp-server
USE CASES
Send a message and get the same message back, then read what the server reports about itself — enough to tell a transport problem from a configuration one.
Pass a name and a text through separate parameters and check the responses reflect what you sent, before wiring up anything with real arguments.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
count_wordsCount words in a given text.
echo_messageEcho back a message.
get_server_infoGet information about this MCP server.
Returns: Dictionary containing server information
say_helloSay hello to someone.
BEFORE YOU INSTALL
4 tools when we connected.
CONTEXT COST
Rated by the size of the 4 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"hello-mcp-server.git": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/macsymwang/hello-mcp-server.git",
"hello-mcp-server"
]
}
}
}uvx --from git+https://github.com/macsymwang/hello-mcp-server.git hello-mcp-server