Skip to main content
Glama

Calculator MCP Server

计算器 MCP 服务器

用于计算的模型上下文协议服务器。该服务器使法学硕士 (LLM) 能够使用计算器进行精确的数值计算。

可用工具

  • calculate - 计算/评估给定的表达式。
    • expression (字符串,必需):要计算的表达式

安装

使用 uv(推荐)

使用uv时无需特殊安装。我们将使用uvx直接运行mcp-server-calculator

curl -LsSf https://astral.sh/uv/install.sh | sh

使用 PIP

或者,您可以通过 pip 安装mcp-server-calculator

pip install mcp-server-calculator

安装后,您可以使用以下命令将其作为脚本运行:

python -m mcp_server_calculator

配置

使用 uv(推荐)

将其添加到您的 MCP 客户端设置中:

"mcpServers": { "calculator": { "command": "uvx", "args": ["mcp-server-calculator"] } }

使用 PIP

或者将其添加到您的 MCP 客户端设置中:

"mcpServers": { "calculator": { "command": "python", "args": ["-m", "mcp_server_calculator"] } }

执照

mcp-server-calculator 采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详细信息,请参阅项目仓库中的 LICENSE 文件。

You must be authenticated.

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. 使用 uv(推荐)
      2. 使用 PIP
    2. 配置
      1. 使用 uv(推荐)
      2. 使用 PIP
    3. 执照

      Related MCP Servers

      • 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
      • -
        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
      • A
        security
        F
        license
        A
        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.
        Last updated -
        4
        JavaScript
      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that provides basic calculator functionality for LLMs, enabling them to perform mathematical operations like addition, subtraction, multiplication, division, modulo, and square root.
        Last updated -
        6
        125
        12
        TypeScript
        MIT License
        • Linux

      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/githejie/mcp-server-calculator'

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