Skip to main content
Glama
souravjai

Calculator MCP Server

by souravjai

Calculator MCP Server

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

Calculator MCP server tutorial

기능

서버는 다음 도구를 제공합니다:

도구

설명

인수

add

두 숫자를 더합니다

op1, op2

sub

첫 번째 숫자에서 두 번째 숫자를 뺍니다

op1, op2

mul

두 숫자를 곱합니다

op1, op2

div

첫 번째 숫자를 두 번째 숫자로 나눕니다

op1, op2

모든 인수는 숫자여야 합니다. divop20일 때 오류를 반환합니다.

Related MCP server: Math MCP Server

요구 사항

  • Node.js 18 이상

  • npm

설정

이 디렉터리에서 종속성을 설치합니다:

npm install

서버 실행

stdio를 통해 MCP 서버를 시작합니다:

npm start

서버는 MCP 클라이언트의 연결을 기다리므로 터미널에 일반적인 애플리케이션 출력을 표시하지 않습니다.

예제 클라이언트로 테스트

예제 클라이언트는 서버를 시작하고, 도구 목록을 표시하며, 0으로 나누기 오류를 보여주기 위해 div100으로 호출합니다:

npm run test-client

성공적인 작업을 테스트하려면 mcp-client-test.tscallTool 인수를 업데이트하세요. 예를 들어:

arguments: { op1: 10, op2: 2 },

MCP Inspector 사용

다음 명령으로 대화형 MCP Inspector를 실행합니다:

npm run mcp-inspect

명령이 출력한 URL을 연 다음 계산기 도구를 선택하고 op1op2에 값을 입력합니다.

프로젝트 파일

  • mcp-server.ts - MCP 서버 및 계산기 도구 정의

  • mcp-client-test.ts - 예제 MCP 클라이언트

  • mcp-calculator.gif - 튜토리얼 안내

  • package.json - 스크립트 및 종속성

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    A
    quality
    C
    maintenance
    Enables 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.
    5
    1
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Provides basic mathematical operations including addition, subtraction, multiplication, division, and power calculations through a Model Context Protocol interface.
    5
    1
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides file reading and mathematical calculation tools through the Model Context Protocol. Enables reading file contents and evaluating mathematical expressions via stdio transport.

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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