what is learn-mcp-server?
learn-mcp-server is a simple implementation of a Model Context Protocol (MCP) server designed for educational purposes, focusing on basic arithmetic operations such as addition, subtraction, multiplication, and division.
how to use learn-mcp-server?
To use learn-mcp-server, follow these steps:
- Build the source code from the repository using the command
go build ./
. - Configure the Claude for Desktop App by adding the MCP server details in the configuration file.
- Restart the Claude for Desktop application.
- Ask arithmetic questions in the app, such as
What is the answer to the following formula? 1234 x 56789?
key features of learn-mcp-server?
- Supports basic arithmetic operations: addition, subtraction, multiplication, and division.
- Easy integration with the Claude for Desktop application.
- Outputs logs for tracking operations and results.
use cases of learn-mcp-server?
- Educational tool for learning basic arithmetic operations.
- Integration with applications that require arithmetic calculations.
- Testing and development of MCP server implementations.
FAQ from learn-mcp-server?
- What operations does learn-mcp-server support?
It supports basic arithmetic operations: addition, subtraction, multiplication, and division.
- How do I integrate it with Claude for Desktop?
Follow the steps outlined in the README to build the server and configure it in the Claude app.
- Is there any logging available?
Yes, logs are output to the specified directory for tracking messages and results.
learn-mcp-server
This repository provides a simple MCP (Model Context Protocol) server implementation for educational purposes. The server supports basic arithmetic operations (addition, subtraction, multiplication, division), and this README describes how to use it from Claude Desktop.
step 1
Build source code from this repository.
$ go build ./
step 2
In the Claude for Desktop App configuration file, include the following:
{
"mcpServers": {
"calculator": {
"command": "/path/to/github.com/demouth/learn-mcp-server/learn-mcp-server",
"args": []
}
}
}
see https://modelcontextprotocol.io/quickstart/server
step 3
Restart Claude for Desktop.
step 4
Ask the following question in Claude for Desktop:
What is the answer to the following formula?
1234 x 56789
Logs are output to the following directory:
~/Library/Logs/Claude/
The following log will be output:
2025-04-08T15:08:36.443Z [calculator] [info] Message from client: {"method":"tools/call","params":{"name":"calculate","arguments":{"operation":"multiply","x":1234,"y":56789}},"jsonrpc":"2.0","id":35}
2025-04-08T15:08:36.443Z [calculator] [info] Message from server: {"jsonrpc":"2.0","id":35,"result":{"content":[{"type":"text","text":"70077626.00"}]}}
Examples
In this example, the browser is on autopilot to search confluence, and the AI answers based on the content.