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.
Related MCP Connectors
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA simple calculator MCP server that provides basic arithmetic functions (add and subtract) through HTTP transport, designed to be cloud-ready and easily deployable.-
- FlicenseNot gradedqualityNot gradedmaintenanceProvides basic arithmetic calculation tools through an HTTP-accessible MCP server. Supports mathematical operations like addition with streamable responses for integration with MCP clients.-
- FlicenseNot gradedqualityDmaintenanceBasic MCP server demonstrating tools for arithmetic operations (add, subtract) and a personalized greeting resource.1-
- FlicenseNot gradedqualityDmaintenanceA stateless MCP server that exposes arithmetic operations (add, subtract, multiply, divide) as tools over HTTP, enabling AI assistants to perform basic calculations conversationally.-