1. Conduid
  2. Communication
  3. SSE Calculator Server
MCP server · Communication

SSE Calculator Server

Provide real-time, stateful calculator operations with history tracking via Server-Sent Events. Enable seamless integration with AI assistants through the Model Context Protocol for dynamic calculation sessions. Access a web-based interface and manage multiple active sessions efficiently.

Unclaimed last commit a year ago comms
34Low

Scored 6 months ago · breakdown

About SSE Calculator Server

SSE Calculator Server is an MCP server published by phamtienduceng in the Communication category: provide real-time, stateful calculator operations with history tracking via Server-Sent Events. Enable seamless integration with AI assistants through the Model Context Protocol for dynamic calculation sessions. Access a web-based interface and manage multiple active sessions efficiently.

Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/phamtienduceng/calculator-mcp-remote-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about SSE Calculator Server

Powered by Claude · Grounded in docs

I know everything about SSE Calculator Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

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

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

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Start the server:
npm run start:dev
  1. Open the calculator interface in your browser:
http://localhost:3000

API Endpoints

SSE Stream

GET /calculator/stream

Establishes an SSE connection and creates a new calculator session.

Calculate

POST /calculator/calculate/:sessionId

Performs a calculation operation on the specified session.

Request body:

{
  "operation": "add", // add, subtract, multiply, divide, clear
  "a": 5,
  "b": 3
}

History

GET /calculator/history/:sessionId

Retrieves the calculation history for the specified session.

Sessions

GET /calculator/sessions

Retrieves 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:

  1. Docker: A Dockerfile is provided for containerized deployment

    • See Dockerfile and docker-compose.yml for configuration
  2. Smithery.ai: Deploy directly from GitHub

    • See SMITHERY_DEPLOYMENT.md for detailed instructions
    • Configuration provided in smithery.json
  3. Heroku/DigitalOcean: Cloud platform deployment

    • See DEPLOYMENT.md for step-by-step instructions
  4. 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

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About SSE Calculator Server

How do I install SSE Calculator Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is SSE Calculator Server safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is SSE Calculator Server still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.