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.
This server cannot be installed
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
- -securityFlicense-qualityA Model Context Protocol (MCP) server that provides mathematical calculations and operations using NumPy, enabling users to perform numerical computations like matrix operations, statistical analysis, and polynomial fitting directly through Claude.Last updated -1Python
- -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 -7PythonMIT 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 -13PythonMIT 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 -PythonMIT License