mcp-server-count-letters MCP server
About
mcp-server-count-letters is a lightweight MCP server that counts how many times a given letter appears in a word. It implements a custom mcp:// URI scheme (demonstrated for the letter 'r' in "strawberry" and "raspberry") and exposes a single tool, countletter, designed primarily…
Details
- Author
- higherpass
- Downloads
- 181
- Categories
- Other
Jump to
- Counts occurrences of a specified letter in a word
- Custom mcp:// URI scheme for counting 'r' in "strawberry" and "raspberry"
- Single count_letter tool with string parameters
- Returns a simple integer result
Invoke the count_letter tool via any MCP client, providing two required string arguments: word (the word to search in) and letter (the character to count). The server returns an integer representing the number of occurrences.
mcp-server-count-letters MCP server
A MCP letter counter
Components
Resources
The server implements a simple note storage system with:
- Custom mcp:// URI scheme for r's in strawberry and raspberry
Tools
The server implements two tools:
- count_letter: counts the occurrences of a specified letter
- Takes "word" and "letter" as required string arguments
- Returns an integer of the occurences
This MCP server is the working code sample of the blog post Building a MCP Server so LLMs Can Count Letters
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



