Token导航 LogoToken导航TokenDH.com
Fermat MCP logo
运维云端stdio官方级别未说明来源级核验

Fermat MCP

MCP Server

@smithery/cli

Fermat MCP是一个提供数值计算、符号计算和绘图功能的数学计算服务器。

工具数

12

提示词数

0

GitHub Stars

15

资源数

0
数学计算PythonClaudeClaudeWindsurf

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

abhiphile

提供方

abhiphile

最后核验

2026/5/17 20:23

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx -y @smithery/cli install @abhiphile/fermat-mcp --client gemini

详细介绍

费马MCP

](https://smithery.ai/server/@abhiphile/fermat-mcp)

![Verified on MseeP](https://mseep.ai/app/16469d0f-0c4a-4b35-babf-4666107251f5)

这个项目提供了一个FastMCP服务器,用于数学计算,包括数值计算、符号计算以及绘图功能。

模块

1. mpl_mcp - Matplotlib 集成

特性描述
plot_barchart绘制给定数据值的条形图
plot_scatter根据数据点创建散点图
plot_chart 绘制折线图、散点图或柱状图
plot_stem为离散数据创建茎叶图
plot_stack生成堆叠面积/条形图
eqn_chart绘制数学方程图

2. numpy_mcp - NumPy 集成

类别操作
基础数学加,减,乘,除,幂运算,绝对值,指数函数,对数函数,平方根
三角的 正弦,余弦,正切
统计平均值,中位数,标准差,方差,最小值,最大值,最小值索引,最大值索引,百分位数
线性代数点乘,矩阵乘法,求逆,行列式,特征值,求解,奇异值分解
矩阵运算创建(create),全零数组(zeros),全一数组(ones),全值数组(full),等差数列(arange),线性间隔数组(linspace)
数组操作重塑,展平,拼接,转置,堆叠

3. sympy_mcp - SymPy 集成

类别操作
代数 简化、展开、因式分解、合并同类项
微积分差分,积分,极限,级数
方程式solve, solveset, linsolve, nonlinsolve(中文翻译为)解方程,求解集,线性方程组求解,非线性方程组求解
矩阵运算创建,行列式,逆矩阵,行简化阶梯形,特征值

设置

要求

  • Python 3.12 或更高版本(如需安装 Python 3.12,请遵循以下步骤) Python 下载)
  • uv(要安装uv,请遵循 UV安装

克隆仓库

git clone https://github.com/abhiphile/fermat-mcp

Visual Studio Code,风帆冲浪

你可以找到 mcp.json 文件在 MCP:打开用户配置 或 MCP:打开工作区配置

vs-code-1

在你的(内容/列表/等)中添加以下内容 mcp.json

{
  "mcpServers": {
    "fmcp": {
      "command": "bash",
      "args": ["MCP_SERVER_ABSOLUTE_PATH/setup.sh"],
      "description": "fmcp server is for mathematical computations, including numerical and symbolic calculations, as well as plotting."
    }
  }
}

克劳德(Anthropic公司开发)

如果你正在使用Claude或Anthropic MCP客户端,请将这个有效的MCP配置添加到你的(系统/设置中) mcp.json (将目录路径更新为您的本地克隆路径):

{
  "mcpServers": {
    "fmcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/home/ty/Repositories/fermat-mcp",
        "run",
        "server.py"
      ]
    }
  }
}

Gemini 命令行界面(CLI)

  • 打开位于 \~/.gemini/settings.json\ 的 Gemini 设置 JSON 文件,其中 \~\ 表示你的主目录。
  • 在你的 settings.json 文件中添加以下内容:
{
  "mcpServers": {
    "fmcp": {
      "command": "bash",
      "args": ["MCP_SERVER_ABSOLUTE_PATH/setup.sh"],
      "description": "fmcp server is for mathematical computations, including numerical and symbolic calculations, as well as plotting."
    }
  }
}

通过Smithery进行安装

通过(某种方式)自动安装Fermat MCP以供本地使用 Smithery(或可译为“锻造厂”、“铁匠铺”,具体根据上下文确定)

npx -y @smithery/cli install @abhiphile/fermat-mcp --client gemini

示例用法

  • 使用Gemini CLI
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│  > Can you use fmcp server and using numpy method find the eigen values of this 8*8 matrix,                  |
│    2 1 3 1 1 8 4 2                                                                                           |
│    6 6 0 7 1 4 6 1                                                                                           │
│    9 2 1 8 7 9 9 0                                                                                           │
│    2 5 6 6 9 8 0 1                                                                                           │
│    1 3 6 2 3 8 8 1                                                                                           │
│    9 4 2 2 1 2 2 9                                                                                           │
│    8 6 4 4 2 0 2 8                                                                                           │
│    0 0 0 6 6 7 5 6                                                                                           │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

 ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ ✔  numpy_mcp_numerical_operation (fmcp MCP Server) {"a":[[2,1,3,1,1,8,4,2],[6,6,0,7,1,4,6,1],[9,2,1,8,7,9,9,0],[2,5,6,6,9,8,0,1],[1,3,… │
 │                                                                                                                                         │
 │    {"eigenvalues":["32.077244457548815+0j","-11.531090644775198+0j","-6.6653982146786195+0j","0.6715984762411508+3.37024850             │
 │    10270413j","0.6715984762411508-3.3702485010270413j","4.541270555490195+2.776364664923869j","4.541270555490195-2.77636466             │
 │    4923869j","3.6935063384423428+0j"],"eigenvectors":[["-0.23263835483680192+0j","-0.2264723575289234+0j","-0.4308391916391             │
 │    0195+0j","-0.012346573390129022+0.17748655663058255j","-0.012346573390129022-0.17748655663058255j","-0.21221572277027187             │
 │    +0.3524396218277479j","-0.21221572277027187-0.3524396218277479j","0.3451499664861578+0j"],["-0.31955742545335186+0j","-0             │
 │    .2569860493445581+0j","0.05691886770041556+0j","-0.35591013681869693-0.2242364092694275j","-0.35591013681869693+0.224236             │
 │    4092694275j","0.1932161673963751-0.39527849111641133j","0.1932161673963751+0.39527849111641133j","-0.7979681696063214+0j             │
 │    "],["-0.46626263247473404+0j","-0.4684914620112376+0j","0.5469400556350749+0j","0.34325164099973565+0.06607019711949293j             │
 │    ","0.34325164099973565-0.06607019711949293j","0.21312270185159682+0.28822307710358636j","0.21312270185159682-0.288223077             │
 │    10358636j","0.42707422750984786+0j"],["-0.41589316441674523+0j","0.2291771012892302+0j","0.09410792992600435+0j","0.6375             │
 │    92441360358+0j","0.637592441360358+-0j","0.46446646137729414+0j","0.46446646137729414+-0j","0.08171661775583623+0j"],["-             │
 │    0.35812884189789035+0j","-0.26551071423139044+0j","-0.649979374400915+0j","-0.2999153430497845+0.20110182336747695j","-0             │
 │    .2999153430497845-0.20110182336747695j","0.04424367733961273-0.020400357434930304j","0.04424367733961273+0.0204003574349             │
 │    30304j","-0.037276545325188024+0j"],["-0.3042416233100104+0j","0.4027405071320744+0j","0.2343447346668298+0j","-0.119224             │
 │    87219398595+0.10317726668781271j","-0.11922487219398595-0.10317726668781271j","-0.3387759141362585+0.15790241128043445j"             │
 │    ,"-0.3387759141362585-0.15790241128043445j","0.11473144194899779+0j"],["-0.35389732755448017+0j","0.5359362131480812+0j"             │
 │    ,"0.13989902586074168+0j","-0.16008513226461316-0.26111873108374495j","-0.16008513226461316+0.26111873108374495j","0.055             │
 │    729749650881726-0.22748184206919145j","0.055729749650881726+0.22748184206919145j","-0.19838514696566653+0j"],["-0.327615             │
 │    5213691367+0j","-0.30122843153433887+0j","0.07858579556736099+0j","0.00042251379361638556-0.11670182367986544j","0.00042             │
 │    251379361638556+0.11670182367986544j","-0.18590228871569267-0.2479130526139182j","-0.18590228871569267+0.247913052613918             │
 │    2j","-0.03374593856285834+0j"]]}                                                                                                     │
 ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
✦ Of course, I can do that. Here are the eigenvalues for the given matrix:

  32.077244457548815
  -11.531090644775198
  -6.6653982146786195
  0.6715984762411508 + 3.3702485010270413j
  0.6715984762411508 - 3.3702485010270413j
  4.541270555490195 + 2.776364664923869j
  4.541270555490195 - 2.776364664923869j
  3.6935063384423428
  • 使用Visual Studio Code进行风帆冲浪(注:这里的“Windsurf”在中文里通常指的是“风帆冲浪”这项运动,但在此上下文中,如果是指使用Visual Studio Code进行与“风帆冲浪”相关的开发或编辑工作,则可能需要根据具体情境调整翻译,不过直接翻译为“风帆冲浪”在多数情况下也能传达基本意思,即使用该编辑器进行与“风帆冲浪”主题相关的开发或编辑任务。)

在这里,任务是将x\*\*2和sin(x)绘制在同一张图表上。 GUI Demo 1-2 GUI Demo 2-2

目录标签

目录标签

数学计算PythonClaude本地部署数值分析符号计算数据可视化科学计算

支持客户端

ClaudeWindsurf

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

部署方式(deploymentType,部署类型)

local-only

来源包(packageName,安装包名)

@smithery/cli

工具数量(toolCount,工具数)

12

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiononelocal-only

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP