JUHE API Marketplace
bahfahh avatar
MCP Server

Basic Math MCP Server

A simple server that provides basic mathematical operations (sum and subtraction) through the Model Context Protocol.

1
GitHub Stars
3/10/2026
Last Updated
MCP Server Configuration
1{
2 "name": "basic-math-server",
3 "command": "node",
4 "args": [
5 "/path/to/your/project/build/index.js"
6 ],
7 "cwd": "/path/to/your/project",
8 "description": "A basic math server providing sum and subtraction operations"
9}
JSON9 lines
  1. Home
  2. MCP Servers
  3. mcptest

README Documentation

Basic Math MCP Server

A simple Model Context Protocol (MCP) server that provides basic mathematical operations.

Features

This MCP server provides two tools:

  • sum: Add two numbers together
  • subtraction: Subtract the second number from the first number

Installation

  1. Install dependencies:
npm install
  1. Build the TypeScript code:
npm run build

Usage

Testing the server directly

npm start

Connecting to AI clients (Claude Desktop, etc.)

  1. Copy the mcp.json configuration to your AI client's MCP configuration directory
  2. Update the path in mcp.json to point to your server's location
  3. Restart your AI client

Configuration for Claude Desktop

Add this to your Claude Desktop MCP configuration file:

{
  "mcpServers": {
    "basic-math-server": {
      "command": "node",
      "args": ["/path/to/your/project/build/index.js"],
      "cwd": "/path/to/your/project",
      "description": "A basic math server providing sum and subtraction operations"
    }
  }
}

Available Tools

sum

  • Description: Add two numbers together
  • Parameters:
    • a (number): First number
    • b (number): Second number
  • Returns: The sum of the two numbers

subtraction

  • Description: Subtract the second number from the first number
  • Parameters:
    • a (number): First number (minuend)
    • b (number): Second number (subtrahend)
  • Returns: The result of a - b

Development

  • Build: npm run build
  • Start: npm start
  • Development: npm run dev (builds and starts)

Project Structure

├── src/
│   └── index.ts          # Main server implementation
├── build/                # Compiled JavaScript output
├── package.json          # Node.js dependencies and scripts
├── tsconfig.json         # TypeScript configuration
├── mcp.json              # MCP server configuration
└── README.md             # This file

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.aiFeatured on ShowMeBestAI
Copyright © 2026 JUHEDATA HK LIMITED - All rights reserved