Calculator MCP Server
Calculator MCP Server
stdio를 통해 기본 계산기 작업을 제공하는 소형 Model Context Protocol (MCP) 서버입니다.

기능
서버는 다음 도구를 제공합니다:
도구 | 설명 | 인수 |
| 두 숫자를 더합니다 |
|
| 첫 번째 숫자에서 두 번째 숫자를 뺍니다 |
|
| 두 숫자를 곱합니다 |
|
| 첫 번째 숫자를 두 번째 숫자로 나눕니다 |
|
모든 인수는 숫자여야 합니다. div는 op2가 0일 때 오류를 반환합니다.
Related MCP server: Math MCP Server
요구 사항
Node.js 18 이상
npm
설정
이 디렉터리에서 종속성을 설치합니다:
npm install서버 실행
stdio를 통해 MCP 서버를 시작합니다:
npm start서버는 MCP 클라이언트의 연결을 기다리므로 터미널에 일반적인 애플리케이션 출력을 표시하지 않습니다.
예제 클라이언트로 테스트
예제 클라이언트는 서버를 시작하고, 도구 목록을 표시하며, 0으로 나누기 오류를 보여주기 위해 div를 10과 0으로 호출합니다:
npm run test-client성공적인 작업을 테스트하려면 mcp-client-test.ts의 callTool 인수를 업데이트하세요. 예를 들어:
arguments: { op1: 10, op2: 2 },MCP Inspector 사용
다음 명령으로 대화형 MCP Inspector를 실행합니다:
npm run mcp-inspect명령이 출력한 URL을 연 다음 계산기 도구를 선택하고 op1과 op2에 값을 입력합니다.
프로젝트 파일
mcp-server.ts- MCP 서버 및 계산기 도구 정의mcp-client-test.ts- 예제 MCP 클라이언트mcp-calculator.gif- 튜토리얼 안내package.json- 스크립트 및 종속성
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
- FlicenseCqualityDmaintenanceA server that provides tools for performing basic arithmetic operations (addition, subtraction, multiplication, division) via the Model Context Protocol.4
- AlicenseAqualityCmaintenanceEnables basic arithmetic operations (addition, subtraction, multiplication, division) with 64-bit precision and matrix multiplication capabilities. Provides mathematical computation tools for AI assistants through the Model Context Protocol.51MIT
- FlicenseAqualityDmaintenanceProvides basic mathematical operations including addition, subtraction, multiplication, division, and power calculations through a Model Context Protocol interface.51
- FlicenseNot gradedqualityDmaintenanceProvides file reading and mathematical calculation tools through the Model Context Protocol. Enables reading file contents and evaluating mathematical expressions via stdio transport.
Related MCP Connectors
Precision math engine for AI agents. 203 exact methods. Zero hallucination.
A Model Context Protocol server for Wix AI tools
AI-callable calculators and engineering models with real formulas. No hallucinated math.
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/souravjai/calculator-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server