Skip to main content
Glama
Counting MCP Server

Counting MCP Server

by rekog-labs

Remote MCP Tools

Install the dependencies:

npm install

Start your MCP server with:

npm run start

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

You can quickly try it out with the command below:

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

Or try it out interactively using the inspector:

bunx @modelcontextprotocol/inspector@0.16.2

Related MCP server: Toy MCP Server

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:

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

NOTE: mcp-proxy (repo) 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

Available Tools

1 tool
count-charactersB

Counts occurrences of a specific character in text

Inputs: text (required), character (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    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
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers