Skip to main content
Glama

Calculator MCP

by wrtnlabs

MCP 계산

기본 계산기 기능을 사용하여 브라우저 자동화 기능을 제공하는 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 서버를 통해 LLM이 계산기와 상호 작용할 수 있습니다. (실제로는 테스트 프로그램용으로 만들었습니다.)

사용 사례

  • MCP 기능을 연결하기 위한 테스트 코드입니다.
  • 장난감 프로젝트

예제 구성

지엑스피1

VS Code에 설치

또는 VS Code CLI를 사용하여 Playwright MCP 서버를 설치할 수 있습니다.

# For VS Code code --add-mcp '{"name":"calculator","command":"npx","args":["-y", "@wrtnlabs/calculator-mcp@latest"]}'
# For VS Code Insiders code-insiders --add-mcp '{"name":"calculator","command":"npx","args":["-y", "@wrtnlabs/calculator-mcp@latest"]}'

설치 후, Calculator MCP 서버를 VS Code의 GitHub Copilot 에이전트와 함께 사용할 수 있습니다.

CLI 옵션

Calculator MCP 서버는 다음 명령줄 옵션을 지원합니다.

  • --port <port> : SSE 전송을 수신할 포트

DISPLAY 없이 Linux에서 헤드 브라우저 실행

디스플레이가 없는 시스템이나 IDE의 작업자 프로세스에서 헤더 브라우저를 실행하는 경우 DISPLAY가 있는 환경에서 MCP 서버를 실행하고 --port 플래그를 전달하여 SSE 전송을 활성화합니다.

npx @wrtnlabs/calculator-mcp@latest --port 8931

그런 다음 MCP 클라이언트 구성에서 url SSE 엔드포인트로 설정합니다.

{ "mcpServers": { "calculator": { "url": "http://localhost:8931/sse" } } }

사용자 정의 전송을 통한 프로그래밍 방식 사용

import { createServer } from "@wrtnlabs/calculator-mcp"; // ... other import statement const client = new Client({ name: "test client", version: "0.1.0", }); const server = createServer({ name: "calculator", version: "1.0.0" }); const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair(); await Promise.all([ client.connect(clientTransport), server.connect(serverTransport), ]);

도구

  • 추가하다
  • 보결
  • 사업부
  • 모드
  • 제곱근
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

LLM에 기본적인 계산기 기능을 제공하는 모델 컨텍스트 프로토콜 서버로, 이를 통해 덧셈, 뺄셈, 곱셈, 나눗셈, 모듈로, 제곱근 등의 수학 연산을 수행할 수 있습니다.

  1. 사용 사례
    1. 예제 구성
      1. VS Code에 설치
    2. CLI 옵션
      1. DISPLAY 없이 Linux에서 헤드 브라우저 실행
        1. 사용자 정의 전송을 통한 프로그래밍 방식 사용
          1. 도구

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that gives LLMs the ability to interact with Ethereum networks, manage wallets, query blockchain data, and execute smart contract operations through a standardized interface.
              Last updated -
              31
              323
              2
              TypeScript
              MIT License
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that provides basic mathematical and statistical functions to LLMs, enabling them to perform accurate numerical calculations through a simple API.
              Last updated -
              13
              13
              TypeScript
              MIT License
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that enables LLMs to perform precise numerical calculations by evaluating mathematical expressions.
              Last updated -
              1
              48
              Python
              MIT License
              • Linux
              • Apple
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that connects LLMs to the Compiler Explorer API, enabling them to compile code, explore compiler features, and analyze optimizations across different compilers and languages.
              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/wrtnlabs/calculator-mcp'

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