Calculator MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Calculator MCP Serverwhat is 12 divided by 4?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Calculator MCP Server
MCP сервер с 4 математическими тулами, работающий по HTTP (Streamable HTTP).
Тулы
Тул | Описание | Параметры | Пример |
| Сложение двух чисел |
| 2 + 3 = 5 |
| Вычитание второго из первого |
| 10 - 4 = 6 |
| Умножение двух чисел |
| 6 × 7 = 42 |
| Деление первого на второе |
| 20 ÷ 5 = 4 |
Related MCP server: MCP Calculator Streamable HTTP
Запуск
python C:\Users\A\Desktop\test_mcp\server.pyСервер запустится на http://127.0.0.1:8000.
Проверка через MCP Inspector
Запусти сервер в первом PowerShell:
python C:\Users\A\Desktop\test_mcp\server.pyОткрой второй PowerShell (не закрывая сервер) и запусти Inspector:
npx -y @modelcontextprotocol/inspectorВ браузере (http://localhost:6274) выбери:
Transport: Streamable HTTP
URL:
http://localhost:8000/mcpНажми Connect
В разделе Tools увидишь 4 тула. Выбери любой, заполни параметры, нажми Run Tool.
Подключение через opencode
В opencode.json уже прописано:
{
"mcp": {
"calculator": {
"type": "remote",
"url": "http://localhost:8000/mcp",
"enabled": true
}
}
}Запусти сервер (python server.py), затем запусти opencode — он сам подключится.
Проверка через curl
Invoke-RestMethod -Uri "http://localhost:8000/mcp" -Method Post -Body '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' -ContentType "application/json"Invoke-RestMethod -Uri "http://localhost:8000/mcp" -Method Post -Body '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' -ContentType "application/json"Invoke-RestMethod -Uri "http://localhost:8000/mcp" -Method Post -Body '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"add","arguments":{"первое_число":5,"второе_число":3}}}' -ContentType "application/json"This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Victor200525/test_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server