strawbery-mcp
An MCP server for counting the number of R's in Strawberry and more.
Install / Use
claude mcp add 3io-w -- npx -y github:3io-w/strawbery-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Skill content
View source on GitHubStrawbery-MCP
An MCP (Model Context Protocol) server that provides a tool to count the correct number of R's in "strawberry".
Features
- Case-insensitive character counting
- Supports Unicode characters, including CJK (Chinese, Japanese, Korean)
- Returns count and 1-indexed positions of matches
- JSON response format
Tool: strawberry-count
Parameters
input(string, required): The string to search incharacter(string, required): The single character to count (must be exactly one Unicode rune)
{
"character": "r",
"input": "strawberry"
}
Response
JSON object with:
count(int): Number of occurrencespositions(array of int): 1-indexed positions where the character appears
{
"count": 3,
"positions": [
3,
8,
9
]
}
Examples
- Input:
{"input": "strawberry", "character": "r"}→{"count": 3, "positions": [3,6,8]} - Input:
{"input": "你好", "character": "你"}→{"count": 1, "positions": [1]}
Running the Server
This server uses SSE for MCP communication.
Local
go run main.go
Container
docker build -t strawbery-mcp . && docker run -p 3001:3001 strawbery-mcp
Add To OpenCode
Add to the $.mcp block of your opencode.jsonc
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"strawbery": {
"type": "remote",
"url": "http://localhost:3001/sse",
"enabled": true
}
}
}
Related Skills
Agent-Reach
84.7kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
73.5kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.1k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
career-ops
72.4kOpen-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)
