Skip to main content
Glama

Calculator MCP

by wrtnlabs

MCPを計算する

基本的な計算機機能を利用したブラウザ自動化機能を提供するモデルコンテキストプロトコル(MCP)サーバー。このサーバーにより、LLMと計算機の連携が可能になります。(実際にはテストプログラム用に作成しました。)

ユースケース

  • MCP 機能を接続するためのテスト コード。

  • おもちゃプロジェクト

設定例

{ "mcpServers": { "calculate": { "command": "npx", "args": [ "-y", "@wrtnlabs/calculator@latest" ] } } }

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トランスポートをリッスンするポート

Linux で DISPLAY なしのブラウザを実行する

ディスプレイのないシステム上または IDE のワーカー プロセスからヘッダー付きブラウザーを実行する場合は、DISPLAY のある環境から MCP サーバーを実行し、 --portフラグを渡して SSE トランスポートを有効にします。

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

次に、MCP クライアント構成で、SSE エンドポイントへのurlを設定します。

{ "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), ]);

ツール

  • 追加

  • サブ

  • マル

  • 分割

  • モッド

  • 平方

Deploy Server
A
security – no known vulnerabilities
-
license - not tested
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. Linux で DISPLAY なしのブラウザを実行する
        1. カスタムトランスポートを使用したプログラムによる使用
          1. ツール

            Related MCP Servers

            • A
              security
              -
              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
              11
              39
              MIT License
            • A
              security
              -
              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
              • Apple
            • A
              security
              -
              license
              A
              quality
              A Model Context Protocol server that enables LLMs to perform precise numerical calculations by evaluating mathematical expressions.
              Last updated -
              1
              122
              MIT License
              • Linux
              • Apple
            • -
              security
              -
              license
              -
              quality
              A simple Model Context Protocol server that provides basic arithmetic operations (addition, subtraction, multiplication, division) as tools that can be called by Large Language Models.

            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