Enables numerical computations with NumPy including basic math operations, trigonometric functions, statistical calculations, linear algebra operations, matrix operations, and array manipulation.
Provides symbolic mathematics capabilities including algebraic operations, calculus functions, equation solving, and matrix operations through SymPy integration.
Fermat MCP
This project provides a FastMCP server for mathematical computations, including numerical and symbolic calculations, as well as plotting.
Modules
1. mpl_mcp - Matplotlib Integration
Feature | Description |
---|---|
plot_barchart | Plots bar charts of given data values |
plot_scatter | Creates scatter plots from data points |
plot_chart | Plots line, scatter, or bar charts |
plot_stem | Creates stem plots for discrete data |
plot_stack | Generates stacked area/bar charts |
eqn_chart | Plots mathematical equations |
2. numpy_mcp - NumPy Integration
Category | Operations |
---|---|
Basic Math | add, sub, mul, div, power, abs, exp, log, sqrt |
Trigonometric | sin, cos, tan |
Statistics | mean, median, std, var, min, max, argmin, argmax, percentile |
Linear Algebra | dot, matmul, inv, det, eig, solve, svd |
Matrix Operations | create, zeros, ones, full, arange, linspace |
Array Manipulation | reshape, flatten, concatenate, transpose, stack |
3. sympy_mcp - SymPy Integration
Category | Operations |
---|---|
Algebra | simplify, expand, factor, collect |
Calculus | diff, integrate, limit, series |
Equations | solve, solveset, linsolve, nonlinsolve |
Matrix Operations | create, det, inv, rref, eigenvals |
Setup
Requirements
- Python 3.12 or higher (To install Python3.12 follow Python Download)
- uv (To install uv follow uv Installation)
Clone the repository
Visual Studio Code, Windsurf
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
:
Gemini CLI
- Open your Gemini settings JSON located in ~/.gemini/settings.json where ~ is your home directory.
- Add the following to your settings.json:
Installing via Smithery
To install Fermat MCP for local usage automatically via Smithery:
Example Usage
- Using Gemini CLI
- Using Visual Studio Code, Windsurf
Here the task was to plot both x**2 and sin(x) in the same plot.
Tools
A FastMCP server for mathematical computations, including numerical and symbolic calculations with NumPy and SymPy integration, as well as data visualization through Matplotlib.
Related MCP Servers
- -securityAlicense-qualityA server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.Last updated -8MIT License
- AsecurityAlicenseAqualityA mathematical computation service that enables users to perform symbolic calculations including basic arithmetic, algebra, calculus, equation solving, and matrix operations through the MCP protocol.Last updated -14MIT License
- -securityAlicense-qualityA FastMCP-based server that provides data analysis tools for processing, analyzing, and visualizing data with an intuitive Streamlit web interface.Last updated -2MIT License
- -securityFlicense-qualityA simple calculator MCP server that provides basic arithmetic functions (add and subtract) through HTTP transport, designed to be cloud-ready and easily deployable.Last updated -
Appeared in Searches
- Plotly Dash - A Python Framework for Building Interactive Web Dashboards
- Comparison of Python-based tools for converting TeX to Lean
- Tools for Converting LaTeX Mathematics to Lean Formalizations
- Recommended helper server for automating TeX to Lean conversions in GRAD-5 repository
- Tools and Systems for Math, AI, and Proof Verification with Bug Detection and Auto Fixing