mcpField
C
Create your first own server

Create your first own server

Local
github.com/ma3uDeveloper Tools1Updated 84w ago

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

  1. 01Counts occurrences of “r”
  2. 02Python server setup example
  3. 03Claude Desktop configuration guidance
  4. 04Log inspection example

Use cases

  1. 01Trying a basic MCP server from Claude Desktop
  2. 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.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Create 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

  1. Install Claude Desktop

  2. Open Claude Desktop

  3. Add a new mcp server with Apple Key + , change to tab developer and open alt text

  4. 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
    }
  }
}
  1. Restart Claude Desktop

  2. Test with Claude Desktop and the nice german word: Rindfleischetikettierungsüberwachungsaufgabenübertragungsgesetz

alt text

  1. Accept the new mcp server

alt text

8.Check logs of Claude Desktop:

tail -n 20 -F ~/Library/Logs/Claude/mcp*.log | grep "count-r"

Comments

Markdown supported

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.