A
securityF
licenseA
qualityA simple Model Context Protocol server that provides basic arithmetic operations (addition, subtraction, multiplication, division) as tools that can be called by Large Language Models.
Last updated -
4
JavaScript
This is a basic example of a Model Context Protocol (MCP) server implementation that demonstrates core functionality including tools and resources.
or
The server implements the following features:
add(a: int, b: int)
: Adds two numberssubtract(a: int, b: int)
: Subtracts second number from firstgreeting://{name}
: Returns a personalized greetingTo run the server with the MCP Inspector for development:
To run the server normally:
To install the server in Claude desktop app:
main.py
: Main server implementation with tools and resourcespyproject.toml
: Project configuration and dependenciesThis server cannot be installed
A demonstration implementation of a Model Context Protocol server that provides simple mathematical tools (add, subtract) and personalized greeting resources.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/harishivam1411/mcp-tutorial'
If you have feedback or need assistance with the MCP directory API, please join our Discord server