Fermat MCP is a FastMCP server for comprehensive mathematical computations including numerical calculations, symbolic algebra, and data visualization.
Matplotlib Integration (Visualization)
Create various chart types: bar charts (vertical/horizontal), scatter plots, line charts, stem plots, stacked area/bar charts, and mathematical equation plots
Customize plots with DPI, figure sizes, titles, labels, colors, gridlines, legends, markers, alpha transparency, and save options
Support for multiple datasets on single plots with flexible data input formats
NumPy Integration (Numerical Operations)
Basic Math: Addition, subtraction, multiplication, division, power, absolute value, exponential, logarithm, square root
Trigonometry: Sine, cosine, tangent functions
Statistics: Mean, median, standard deviation, variance, min/max, argmin/argmax, percentiles
Linear Algebra: Dot product, matrix multiplication, inverse, determinant, eigenvalues/eigenvectors, solve linear systems, SVD decomposition
Array Manipulation: Create matrices (zeros, ones, identity, arange, linspace), reshape, flatten, concatenate, transpose, stack
SymPy Integration (Symbolic Mathematics)
Algebra: Simplify, expand, factor, and collect algebraic expressions
Calculus: Differentiation, integration (definite/indefinite), limits, Taylor series expansion
Equation Solving: Solve algebraic equations, solve sets, linear systems (linsolve), and nonlinear systems (nonlinsolve)
Symbolic Matrices: Create symbolic matrices, compute determinants, inverses, reduced row echelon form (RREF), eigenvalues
Key Features
Multi-client support: Works with Claude, Gemini CLI, Visual Studio Code, and Windsurf
Easy setup via Smithery installation or manual configuration
Production-ready with comprehensive documentation (verified on MseeP platform)
Flexible output: Returns numerical results, symbolic expressions, and generates visual plots
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 |
| Plots bar charts of given data values |
| Creates scatter plots from data points |
| Plots line, scatter, or bar charts |
| Creates stem plots for discrete data |
| Generates stacked area/bar charts |
| 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:
Claude (Anthropic)
If 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):
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.

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