SSE 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., "@SSE Calculator MCP Serveradd 15 and 27, then multiply the result by 3"
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.
SSE Calculator MCP Server
A stateful calculator server that uses Server-Sent Events (SSE) for real-time communication. This server implements the Model Context Protocol (MCP) for integration with AI assistants.
Features
Real-time calculator operations using SSE
Stateful sessions for ongoing calculations
History tracking for all calculations
Web-based calculator interface
MCP integration for AI assistants
Related MCP server: MCP Tools
Architecture
The server is built using NestJS and implements the following components:
Session Service: Manages calculator sessions and state
Calculator Service: Performs calculation operations
SSE Controller: Handles client connections and event streaming
Getting Started
Prerequisites
Node.js (v14 or higher)
npm (v6 or higher)
Installation
Clone the repository
Install dependencies:
npm installStart the server:
npm run start:devOpen the calculator interface in your browser:
http://localhost:3000API Endpoints
SSE Stream
GET /calculator/streamEstablishes an SSE connection and creates a new calculator session.
Calculate
POST /calculator/calculate/:sessionIdPerforms a calculation operation on the specified session.
Request body:
{
"operation": "add", // add, subtract, multiply, divide, clear
"a": 5,
"b": 3
}History
GET /calculator/history/:sessionIdRetrieves the calculation history for the specified session.
Sessions
GET /calculator/sessionsRetrieves all active calculator sessions.
MCP Integration
To use this server as an MCP server, add the following configuration to your MCP settings file:
{
"mcpServers": {
"remote-calculator": {
"url": "http://localhost:3000/calculator/stream",
"disabled": false,
"alwaysAllow": [],
"timeout": 60
}
}
}Deployment Options
For production deployment, you can use the following options:
Docker: A Dockerfile is provided for containerized deployment
See
Dockerfileanddocker-compose.ymlfor configuration
Smithery.ai: Deploy directly from GitHub
See
SMITHERY_DEPLOYMENT.mdfor detailed instructionsConfiguration provided in
smithery.json
Heroku/DigitalOcean: Cloud platform deployment
See
DEPLOYMENT.mdfor step-by-step instructions
Self-hosted: Use NGINX or similar for SSL termination and load balancing
Hosting Your Own MCP Server
After deploying your server, update your MCP client configuration to point to your hosted URL:
{
"mcpServers": {
"remote-calculator": {
"url": "https://your-deployed-url.com/calculator/stream",
"disabled": false,
"alwaysAllow": [],
"timeout": 60
}
}
}License
MIT
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
- AlicenseCqualityDmaintenanceA server that provides advanced mathematical and financial calculation capabilities for AI code assistants, enabling them to perform complex calculations like symbolic calculus, numerical methods, and financial analysis without implementing algorithms directly.18148Inno Setup
- Flicense-qualityCmaintenanceAn MCP (Model Context Protocol) server implementation using HTTP SSE (Server-Sent Events) connections with built-in utility tools including echo, time, calculator, and weather query functionality.2
- FlicenseDqualityDmaintenanceProvides basic mathematical operations (addition, subtraction, multiplication, division) through a calculate tool. Supports both stdio and HTTP/SSE transport modes.177
- Alicense-qualityDmaintenanceA cloud-deployable math tool server that provides calculator capabilities to local LLM agents via the Model Context Protocol and Server-Sent Events. It allows instructors to host a centralized calculation engine that students can connect to from their local development environments.MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
16 AI-native tools with dual SSE + streamable-http transport. Free tier available.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
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/phamtienduceng/calculator-mcp-remote-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server