Skip to main content
Glama
rekog-labs

Counting MCP Server

by rekog-labs
README.md
## Remote MCP Tools

Install the dependencies:

```bash
npm install
```

Start your MCP server with:

```bash
npm run start
```

Your server will be running at `http://localhost:3000/mcp`.

You can quickly try it out with the command below:

```bash
bunx @modelcontextprotocol/inspector@0.16.2 \
  --cli http://localhost:3000/mcp \
  --transport http \
  --method tools/list
```

Or try it out interactively using the inspector:

```bash
bunx @modelcontextprotocol/inspector@0.16.2
```

## Connecting to Claude Desktop

To connect your tool to Claude Desktop:

1. Open Claude Desktop.
2. Go to Settings > Developer > Edit Config.
3. Add your MCP server to the configuration using `mcp-proxy`:

```json
{
  "mcpServers": {
    "counting": {
      "command": "mcp-proxy",
      "args": [
        "http://localhost:3000/sse"
      ]
    }
  }
}
```

> **NOTE:** `mcp-proxy` ([repo](https://github.com/sparfenyuk/mcp-proxy)) enables Claude Desktop (which currently supports only the `stdio` transport of the MCP spec) to connect to your MCP Server via `HTTP+SSE` protocol by translating between the two. Ensure `mcp-proxy` is installed and accessible in your system's PATH.

Restart Claude Desktop, and your tool will be available.

### Testing It Out

Now you can ask Claude: "How many 'R's are in 'strawberry'?"

Claude should use your counting tool to provide the correct answer.

![Strawberry response with Tools](./imgs/strawberry-with-tools.png)

TDQS

A3.7/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of confusing it with another tool. The tool's purpose is clearly defined as counting occurrences of a specific character in text.

Naming Consistency5/5

The single tool name 'count-characters' follows a clear verb_noun pattern. Since there is only one tool, naming consistency is trivially maintained.

Tool Count4/5

One tool is slightly below the typical 3-15 range, but it is reasonable for a server dedicated to a single specific function. The narrow scope justifies having just one tool.

Completeness5/5

For the domain of counting character occurrences, the tool fully covers the intended operation with no dead ends. The server does exactly what its name and description indicate.

Maintenance

ActivityInactive
ResponsivenessNo issues