mcp-server-count-letters MCP server
LocalAbout mcp-server-count-letters MCP server
A small MCP server that counts occurrences of a specified letter in a word. It also includes a custom `mcp://` resource scheme and serves as the code sample for a blog post about building an MCP server.
Key features
- 01Count occurrences of a letter
- 02Accept word and letter arguments
- 03Return an integer count
- 04Provide a custom `mcp://` resource
Use cases
- 01Count a letter in a word
- 02Explore a basic MCP tool
- 03Use a letter-counting code sample
MCP support
The MCP server exposes a `count_letter` tool that accepts a word and letter, plus a custom `mcp://` resource scheme for r's in strawberry and raspberry.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEmcp-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
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.