Cloud MCP Calculator
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., "@Cloud MCP Calculatorcalculate (150 * 2.5) / 5"
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.
Cloud MCP Calculator: Student & Instructor Guide
This repository contains a cloud-deployable math tool server using the Model Context Protocol (MCP) via Server-Sent Events (SSE). This architecture allows students to connect their local local LLM agents (via VS Code Continue) to a centralized, instructor-managed tool.
Distributed Architecture
The following diagram shows how the system is distributed between the instructor's cloud infrastructure and the students' local machines.
graph TB
subgraph "Cloud Infrastructure (Instructor)"
VM[Cloud Virtual Machine]
Docker[Docker Container]
Uvicorn[Uvicorn / SSE Server]
CalcTool[Calculator Logic]
VM --> Docker
Docker --> Uvicorn
Uvicorn --> CalcTool
end
subgraph "Student Machine"
VSCode[VS Code + Continue]
LLM[Local LLM / Ollama]
NB[01_math_agent.ipynb]
end
VSCode -- "HTTP-SSE / Port 8080" --> Uvicorn
NB -- "Standard Logic" --> OpenAI[OpenAI / API]Related MCP server: Calculator MCP
Protocol Interaction Flow
When a student asks a math question, the following exchange occurs via the SSE protocol:
sequenceDiagram
participant S as Student (VS Code)
participant C as Cloud server (VM)
participant T as Calculator Tool
S->>C: GET /sse (Connect)
C-->>S: SSE Stream Opened
S->>C: POST /sse?sessionId=... (Initialize)
C-->>S: JSON-RPC (Capabilites & ServerInfo)
S->>C: POST /sse (tools/call: calculate)
C->>T: eval(expression)
T-->>C: Result (e.g., "42")
C-->>S: JSON-RPC Result
S->>S: Display "The answer is 42."Student Setup (config.yaml)
To connect to the cloud tool, update your ~/.continue/config.yaml as follows:
mcpServers:
- name: cloud-calc
type: sse
url: http://<YOUR-VM-PUBLIC-IP>:8080/sse
experimental:
autoExecuteTools: trueInstructor Setup (Makefile)
Use the provided Makefile on your VM to manage the service easily:
Command | Action |
| Builds the |
| Starts the server in background (detached) on port 8080. |
| Follows the live server logs (useful for debugging student connections). |
| Gracefully stops and removes the running container. |
VM Security Note:
Ensure your VM's Cloud Firewall (Security Group) allows Inbound TCP traffic on Port 8080.
Debug:
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 Servers
- AlicenseCqualityFmaintenanceA Model Context Protocol server that enables LLMs to perform precise numerical calculations by evaluating mathematical expressions.Last updated1152MIT
- AlicenseBqualityCmaintenanceA Model Context Protocol server that provides basic calculator functionality for LLMs, enabling them to perform mathematical operations like addition, subtraction, multiplication, division, modulo, and square root.Last updated622816MIT
- Alicense-qualityDmaintenanceA tool server that processes mathematical expressions via Multi-Chain Protocol (MCP), allowing LLMs to solve math problems through tool integration.Last updatedMIT
- -license-quality-maintenanceA calculator server that exposes mathematical functions as tools (add, subtract, multiply, divide, square, power, square root), enabling language models to perform calculations through Model Context Protocol (MCP).Last updated
Related MCP Connectors
Educational MCP server with 17 math/stats tools, visualizations, and persistent workspace
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
Hosted MCP server to manage a restaurant menu from AI agents - 39 tools over the DuckHub API.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/iportilla/calculator'
If you have feedback or need assistance with the MCP directory API, please join our Discord server