About Create your first own server
A small Python MCP server example that counts the letter “r” in text. It is intended for people learning to set up a server and connect it to Claude Desktop.
Key features
- 01Counts occurrences of “r”
- 02Python server setup example
- 03Claude Desktop configuration guidance
- 04Log inspection example
Use cases
- 01Trying a basic MCP server from Claude Desktop
- 02Learning Python MCP server setup
MCP support
It is an MCP server that provides a character-counting capability to MCP clients.
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 READMECreate your first own server
Linux
python3 -m venv .venv
source .venv/bin/activate
pip install mcp
touch server.py
More MCP servers and clients
Setup of Claude Desktop
-
Install Claude Desktop
-
Open Claude Desktop
-
Add a new mcp server with Apple Key + , change to tab developer and open

-
Add a new mcp server to claude_desktop_config.json
{
"mcpServers": {
"count-r": {
"command": "/Users/ma3u/projects/mcp-server-count-r-/.venv/bin/python",
"args": [
"/Users/ma3u/projects/mcp-server-count-r-/server.py"
],
"host": "127.0.0.1",
"port": 5000,
"timeout": 10000
}
}
}
-
Restart Claude Desktop
-
Test with Claude Desktop and the nice german word: Rindfleischetikettierungsüberwachungsaufgabenübertragungsgesetz

- Accept the new mcp server

8.Check logs of Claude Desktop:
tail -n 20 -F ~/Library/Logs/Claude/mcp*.log | grep "count-r"
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.