Basic Math 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., "@Basic Math MCP Serversum 15 and 27"
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.
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
Related MCP server: MCP Add Server
Installation
Install dependencies:
npm installBuild the TypeScript code:
npm run buildUsage
Testing the server directly
npm startConnecting to AI clients (Claude Desktop, etc.)
Copy the
mcp.jsonconfiguration to your AI client's MCP configuration directoryUpdate the path in
mcp.jsonto point to your server's locationRestart 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 numberb(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 buildStart:
npm startDevelopment:
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 fileMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- Alicense-qualityDmaintenanceA simple implementation of a Model Context Protocol server that demonstrates core functionality including mathematical tools (add, subtract) and personalized greeting resources.Last updated92GPL 3.0
- AlicenseDqualityDmaintenanceA minimal Model Context Protocol server that provides a simple add(a, b) tool for computing the sum of two numbers.Last updated127MIT
- Flicense-quality-maintenanceA minimal example server implementing the Model Context Protocol, providing addition and multiplication tools for learning and experimentation with MCP clients.Last updated1
- Alicense-qualityDmaintenanceA basic implementation of a Model Context Protocol server that demonstrates core functionality with simple math tools (add, subtract) and greeting resources for AI assistants like Claude.Last updatedGPL 3.0
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
MCP (Model Context Protocol) server for Appwrite
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Appeared in Searches
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/bahfahh/mcptest'
If you have feedback or need assistance with the MCP directory API, please join our Discord server