Skip to main content
Glama
Letter Counter MCP Server

Letter Counter MCP Server

by tdrcavallini
README.md
# Letter Counter - MCP Server

A simple letter counting tool that works as both a web interface and MCP (Model Context Protocol) server for AI assistants like Claude Desktop.

## 🚀 Quick Start

### Prerequisites
Make sure you have **Docker** installed on your computer:
- Download from: https://www.docker.com/get-started

### Run the Application
```bash
git clone https://github.com/tdrcavallini/count_letter_mcp.git
cd mcp_server
docker-compose up --build
```

This starts:
- **Web Interface**: http://localhost:7861
- **MCP Server**: http://localhost:7861/gradio_api/mcp/sse

## 🔧 Connect to VS Code with MCP

1. **Configure MCP in VS Code:**
   - Use the `mcp_config_example.json` file as reference
   - Add the MCP server configuration to your VS Code settings

2. **Example configuration:**
```json
{
  "mcpServers": {
    "letter-counter": {
      "url": "http://localhost:7861/gradio_api/mcp/sse",
      "transport": "http"
    }
  }
}
```

3. **Test it:** Use the letter counting functionality in your VS Code environment!

## 📝 What it does

The `count_letter` tool counts how many times a specific letter appears in text.

**Example:**
- Text: "Hello World Programming"  
- Letter: "o"
- Result: 3 occurrences (Hell**o** W**o**rld Pr**o**gramming)

## 🔧 Requirements

- Docker (see Prerequisites above)

## 🔗 Links

- [Model Context Protocol](https://modelcontextprotocol.io/)
- [Gradio MCP Guide](https://www.gradio.app/guides/building-mcp-server-with-gradio)