Skip to main content
Glama

MCP Calc Tools

by nbiish

MCP 计算工具

模型上下文协议 (MCP) 服务器,提供高级数学和财务计算工具,可与 Cline 和 Roo Code 等 AI 代码助手集成。

概述

MCP Calc Tools 通过标准化接口向 AI 助手提供数学计算能力,使 AI 工具无需直接实现数学算法即可执行复杂的计算。

特征

数学工具

  • 符号演算
    • derivative :计算表达式的符号导数
    • integral :计算符号积分
    • limit :当变量接近指定值时评估限制
    • solve :求解特定变量的方程

数值方法

  • riemann_sum :使用黎曼和以多种方法(左、右、中点、梯形)计算定积分
  • darboux_sum :计算积分近似的上达布和下达布和
  • area :计算两点之间曲线下的面积
  • volume :计算绕 x 轴旋转的体积

数学变换

  • laplace_transform :计算函数的拉普拉斯变换
  • fourier_transform :计算函数的傅里叶变换
  • z_transform :计算离散时间函数的 Z 变换

金融工具

  • compound_interest :使用可自定义的复利期计算复利
  • present_value :计算未来现金流的现值
  • npv :计算现金流系列的净现值
  • black_scholes :使用 Black-Scholes 模型计算期权价格
  • option_greeks :计算期权希腊值(delta、gamma、vega、theta、rho)

实用函数

  • logarithm :计算任意底数的对数
  • exponential :计算指数函数(e^x)

安装

# Clone the repository git clone https://github.com/yourusername/mcp-calc-tools.git # Navigate to project directory cd mcp-calc-tools # Install dependencies npm install # or pnpm install

用法

启动 MCP 服务器

# Make the script executable (if needed) chmod +x index.js # Run the server npm start # or node index.js

与人工智能助手集成

要将 MCP Calc Tools 与 AI 编码助手一起使用:

  1. 配置你的 AI 助手(Cline/Roo Code)以使用 MCP 服务器
  2. 将服务器 URL 设置为正在运行的实例
  3. 人工智能助手现在可以使用所有数学工具

计算导数的示例请求:

Calculate the derivative of x^2*sin(x)

要求

  • Node.js v14 或更高版本
  • 所需软件包:
    • genkit(^1.0.5)
    • genkitx-mcp (^1.0.5)
    • mathjs (^12.0.0)

发展

该项目结构如下:

  • index.js:包含所有工具定义的主服务器实现
  • package.json:项目依赖项和脚本定义

执照

[在此添加您的许可证信息]

贡献

欢迎贡献代码!欢迎提交 Pull 请求。

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

为AI代码助手提供高级数学和金融计算能力的服务器,使其无需直接实现算法,就能进行符号演算、数值方法、金融分析等复杂计算。

  1. 概述
    1. 特征
      1. 数学工具
      2. 数值方法
      3. 数学变换
      4. 金融工具
      5. 实用函数
    2. 安装
      1. 用法
        1. 启动 MCP 服务器
        2. 与人工智能助手集成
      2. 要求
        1. 发展
          1. 执照
            1. 贡献

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                An unofficial server that allows AI assistants to access Fathom Analytics data, enabling users to retrieve account information, site statistics, events, aggregated reports, and real-time visitor tracking.
                Last updated -
                5
                13
                1
                TypeScript
                MIT License
              • A
                security
                A
                license
                A
                quality
                A server that enhances AI assistants with the ability to update your JSON Resume by analyzing your coding projects, automatically extracting skills and generating professional descriptions.
                Last updated -
                3
                32
                39
                TypeScript
                The Unlicense
                • Apple
                • Linux
              • -
                security
                A
                license
                -
                quality
                A modular server implementation for Claude AI assistants with integrated tools, enabling Claude to perform actions and access external resources like file systems, web searches, browser automation, financial data, and document generation.
                Last updated -
                66
                Python
                MIT License
                • Linux
                • Apple
              • -
                security
                A
                license
                -
                quality
                A server that enables AI assistants to understand and interact with Unity projects in real-time, providing access to scene hierarchy, project settings, and the ability to execute code directly in the Unity Editor.
                Last updated -
                40
                MIT License
                • Linux
                • Apple

              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/nbiish/mcp-calc-tools'

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