This project provides a FastMCP server for mathematical computations, including numerical and symbolic calculations, as well as plotting. - Python 3.12 or higher (To install Python3.12 follow Python Download) - uv (To install uv follow uv Installation) You can find the mcp.json file in the MCP: Open User Configuration or MCP: Open Workspace Configuration Add the following to your mcp.json: If you'
Add this skill
npx mdskills install abhiphile/fermat-mcpComprehensive math server with NumPy, SymPy, and Matplotlib integration offering extensive numerical and symbolic operations
1# Fermat MCP2[](https://smithery.ai/server/@abhiphile/fermat-mcp)34[](https://mseep.ai/app/16469d0f-0c4a-4b35-babf-4666107251f5)5678This project provides a FastMCP server for mathematical computations, including numerical and symbolic calculations, as well as plotting.9101112## Modules1314### 1. mpl_mcp - Matplotlib Integration1516| Feature | Description |17|---------|-------------|18| `plot_barchart` | Plots bar charts of given data values |19| `plot_scatter` | Creates scatter plots from data points |20| `plot_chart` | Plots line, scatter, or bar charts |21| `plot_stem` | Creates stem plots for discrete data |22| `plot_stack` | Generates stacked area/bar charts |23| `eqn_chart` | Plots mathematical equations |2425### 2. numpy_mcp - NumPy Integration2627| Category | Operations |28|----------|------------|29| **Basic Math** | add, sub, mul, div, power, abs, exp, log, sqrt |30| **Trigonometric** | sin, cos, tan |31| **Statistics** | mean, median, std, var, min, max, argmin, argmax, percentile |32| **Linear Algebra** | dot, matmul, inv, det, eig, solve, svd |33| **Matrix Operations** | create, zeros, ones, full, arange, linspace |34| **Array Manipulation** | reshape, flatten, concatenate, transpose, stack |3536### 3. sympy_mcp - SymPy Integration3738| Category | Operations |39|----------|------------|40| **Algebra** | simplify, expand, factor, collect |41| **Calculus** | diff, integrate, limit, series |42| **Equations** | solve, solveset, linsolve, nonlinsolve |43| **Matrix Operations** | create, det, inv, rref, eigenvals |4445## Setup4647### Requirements4849- Python 3.12 or higher (To install Python3.12 follow [Python Download](https://www.python.org/downloads/))5051- uv (To install uv follow [uv Installation](https://docs.astral.sh/uv/getting-started/installation/))5253#### Clone the repository5455```bash56git clone https://github.com/abhiphile/fermat-mcp57```5859### Visual Studio Code, Windsurf60You can find the `mcp.json` file in the61MCP: Open User Configuration or MCP: Open Workspace Configuration62636465Add the following to your `mcp.json`:6667```json68{69 "mcpServers": {70 "fmcp": {71 "command": "bash",72 "args": ["MCP_SERVER_ABSOLUTE_PATH/setup.sh"],73 "description": "fmcp server is for mathematical computations, including numerical and symbolic calculations, as well as plotting."74 }75 }76}77```7879### Claude (Anthropic)8081If you're using Claude or the Anthropic MCP client, add this working MCP configuration to your `mcp.json` (update the directory path to your local clone):8283```json84{85 "mcpServers": {86 "fmcp": {87 "command": "uv",88 "args": [89 "--directory",90 "/home/ty/Repositories/fermat-mcp",91 "run",92 "server.py"93 ]94 }95 }96}97```9899### Gemini CLI100- Open your Gemini settings JSON located in ~/.gemini/settings.json where ~ is your home directory.101102- Add the following to your settings.json:103104```json105{106 "mcpServers": {107 "fmcp": {108 "command": "bash",109 "args": ["MCP_SERVER_ABSOLUTE_PATH/setup.sh"],110 "description": "fmcp server is for mathematical computations, including numerical and symbolic calculations, as well as plotting."111 }112 }113}114```115116### Installing via Smithery117118To install Fermat MCP for local usage automatically via [Smithery](https://smithery.ai/server/@abhiphile/fermat-mcp):119120```bash121npx -y @smithery/cli install @abhiphile/fermat-mcp --client gemini122```123124### Example Usage125- Using Gemini CLI126```127╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮128│ > Can you use fmcp server and using numpy method find the eigen values of this 8*8 matrix, |129│ 2 1 3 1 1 8 4 2 |130│ 6 6 0 7 1 4 6 1 │131│ 9 2 1 8 7 9 9 0 │132│ 2 5 6 6 9 8 0 1 │133│ 1 3 6 2 3 8 8 1 │134│ 9 4 2 2 1 2 2 9 │135│ 8 6 4 4 2 0 2 8 │136│ 0 0 0 6 6 7 5 6 │137╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯138139 ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮140 │ ✔ 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,… │141 │ │142 │ {"eigenvalues":["32.077244457548815+0j","-11.531090644775198+0j","-6.6653982146786195+0j","0.6715984762411508+3.37024850 │143 │ 10270413j","0.6715984762411508-3.3702485010270413j","4.541270555490195+2.776364664923869j","4.541270555490195-2.77636466 │144 │ 4923869j","3.6935063384423428+0j"],"eigenvectors":[["-0.23263835483680192+0j","-0.2264723575289234+0j","-0.4308391916391 │145 │ 0195+0j","-0.012346573390129022+0.17748655663058255j","-0.012346573390129022-0.17748655663058255j","-0.21221572277027187 │146 │ +0.3524396218277479j","-0.21221572277027187-0.3524396218277479j","0.3451499664861578+0j"],["-0.31955742545335186+0j","-0 │147 │ .2569860493445581+0j","0.05691886770041556+0j","-0.35591013681869693-0.2242364092694275j","-0.35591013681869693+0.224236 │148 │ 4092694275j","0.1932161673963751-0.39527849111641133j","0.1932161673963751+0.39527849111641133j","-0.7979681696063214+0j │149 │ "],["-0.46626263247473404+0j","-0.4684914620112376+0j","0.5469400556350749+0j","0.34325164099973565+0.06607019711949293j │150 │ ","0.34325164099973565-0.06607019711949293j","0.21312270185159682+0.28822307710358636j","0.21312270185159682-0.288223077 │151 │ 10358636j","0.42707422750984786+0j"],["-0.41589316441674523+0j","0.2291771012892302+0j","0.09410792992600435+0j","0.6375 │152 │ 92441360358+0j","0.637592441360358+-0j","0.46446646137729414+0j","0.46446646137729414+-0j","0.08171661775583623+0j"],["- │153 │ 0.35812884189789035+0j","-0.26551071423139044+0j","-0.649979374400915+0j","-0.2999153430497845+0.20110182336747695j","-0 │154 │ .2999153430497845-0.20110182336747695j","0.04424367733961273-0.020400357434930304j","0.04424367733961273+0.0204003574349 │155 │ 30304j","-0.037276545325188024+0j"],["-0.3042416233100104+0j","0.4027405071320744+0j","0.2343447346668298+0j","-0.119224 │156 │ 87219398595+0.10317726668781271j","-0.11922487219398595-0.10317726668781271j","-0.3387759141362585+0.15790241128043445j" │157 │ ,"-0.3387759141362585-0.15790241128043445j","0.11473144194899779+0j"],["-0.35389732755448017+0j","0.5359362131480812+0j" │158 │ ,"0.13989902586074168+0j","-0.16008513226461316-0.26111873108374495j","-0.16008513226461316+0.26111873108374495j","0.055 │159 │ 729749650881726-0.22748184206919145j","0.055729749650881726+0.22748184206919145j","-0.19838514696566653+0j"],["-0.327615 │160 │ 5213691367+0j","-0.30122843153433887+0j","0.07858579556736099+0j","0.00042251379361638556-0.11670182367986544j","0.00042 │161 │ 251379361638556+0.11670182367986544j","-0.18590228871569267-0.2479130526139182j","-0.18590228871569267+0.247913052613918 │162 │ 2j","-0.03374593856285834+0j"]]} │163 ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯164✦ Of course, I can do that. Here are the eigenvalues for the given matrix:165166 32.077244457548815167 -11.531090644775198168 -6.6653982146786195169 0.6715984762411508 + 3.3702485010270413j170 0.6715984762411508 - 3.3702485010270413j171 4.541270555490195 + 2.776364664923869j172 4.541270555490195 - 2.776364664923869j173 3.6935063384423428174 ```175176- Using Visual Studio Code, Windsurf177Here the task was to plot both x**2 and sin(x) in the same plot.178179180181<a href="https://glama.ai/mcp/servers/@abhiphile/fermat-mcp">182 <img width="380" height="200" src="https://glama.ai/mcp/servers/@abhiphile/fermat-mcp/badge" />183</a>184185186187188
Full transparency — inspect the skill content before installing.