Skip to main content
Glama

FastMCP Calculator Server

by insujeon

FastMCP Calculator Server

FastMCP 기반 계산기 MCP 서버입니다. 기본적인 수학 연산(덧셈, 뺄셈, 곱셈, 나눗셈, 거듭제곱, 제곱근)을 제공합니다.

기능

  • 덧셈 (add): 두 숫자를 더합니다
  • 뺄셈 (subtract): 첫 번째 숫자에서 두 번째 숫자를 뺍니다
  • 곱셈 (multiply): 두 숫자를 곱합니다
  • 나눗셈 (divide): 첫 번째 숫자를 두 번째 숫자로 나눕니다
  • 거듭제곱 (power): 첫 번째 숫자를 두 번째 숫자만큼 거듭제곱합니다
  • 제곱근 (square_root): 숫자의 제곱근을 계산합니다

파일 구조

  • @mcp.py: 메인 MCP 서버 파일
  • test_client.py: 서버 테스트를 위한 클라이언트
  • claude_desktop_config_example.json: Claude Desktop 설정 예제
  • roo_mcp_config.json: Roo MCP 설정 파일

설치 및 실행

필요 조건

pip install fastmcp

서버 실행

python @mcp.py

테스트 실행

python test_client.py

Claude Desktop 설정

claude_desktop_config.json 파일에 다음과 같이 설정하세요:

{ "mcpServers": { "calculator": { "command": "python", "args": ["/path/to/your/project/@mcp.py"], "env": { "CONDA_DEFAULT_ENV": "your_env_name" } } } }

사용 예제

서버가 실행되면 다음과 같은 도구들을 사용할 수 있습니다:

  • add(a, b): a + b
  • subtract(a, b): a - b
  • multiply(a, b): a × b
  • divide(a, b): a ÷ b
  • power(a, b): a^b
  • square_root(a): √a

리소스

  • calculator://info: 계산기 서버 정보를 제공합니다

라이선스

MIT License

-
security - not tested
F
license - not found
-
quality - not tested

A server that provides basic mathematical operations (addition, subtraction, multiplication, division, power, square root) through MCP tools for use with AI assistants like Claude.

  1. 기능
    1. 파일 구조
      1. 설치 및 실행
        1. 필요 조건
        2. 서버 실행
        3. 테스트 실행
      2. Claude Desktop 설정
        1. 사용 예제
          1. 리소스
            1. 라이선스

              Related MCP Servers

              • A
                security
                F
                license
                A
                quality
                A server that provides tools for performing basic arithmetic operations (addition, subtraction, multiplication, division) via the Model Context Protocol.
                Last updated -
                4
                JavaScript
                • Apple
              • A
                security
                F
                license
                A
                quality
                A simple server that provides basic arithmetic operations (addition, subtraction, multiplication, division) as tools that can be called by Large Language Models through the Model Context Protocol.
                Last updated -
                4
                JavaScript
              • A
                security
                A
                license
                A
                quality
                A mathematical computation service that enables users to perform symbolic calculations including basic arithmetic, algebra, calculus, equation solving, and matrix operations through the MCP protocol.
                Last updated -
                1
                3
                Python
                MIT License
              • -
                security
                F
                license
                -
                quality
                A numerical calculator based on Model Context Protocol (MCP) that provides simple arithmetic operations including addition, subtraction, multiplication, division, power, square root and integer factorial calculations.
                Last updated -
                Python

              View all related MCP servers

              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/insujeon/fastmcp-calculator-server'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server