home / mcp / fermat mcp server
š Fermat MCP: The Ultimate Math Engine - Unifying SymPy, NumPy & Matplotlib in one powerful server! Perfect for devs & researchers.
Configuration
View docs{
"mcpServers": {
"abhiphile-fermat-mcp": {
"command": "bash",
"args": [
"MCP_SERVER_ABSOLUTE_PATH/setup.sh"
]
}
}
}Fermat MCP is a dedicated server for mathematical computations, offering numerical and symbolic math, plus plotting capabilities. It helps you perform complex matrix operations, algebra, calculus, and visualization from your MCP clients in a unified, programmable way.
You connect to Fermat MCP using your MCP client with a local server configuration. The server supports multiple ways to run locally, so you can choose the method that fits your setup. Once connected, you can request numerical operations, symbolic computations, and plotting tasks through the MCP interface and receive results or plots directly.
Prepare your environment and get Fermat MCP running locally. Follow these steps in order to have a working MCP server you can connect to from clients.
# Prerequisites
# Ensure Python 3.12+ is installed
python3 --version
# Ensure uv is installed (the runtime you will use to start the server)
# Follow the uv installation instructions for your platform if you have not installed it yet
# Clone the Fermat MCP repository
git clone https://github.com/abhiphile/fermat-mcp
# Install Smithery client (optional but recommended for client setups)
npx -y @smithery/cli install @abhiphile/fermat-mcp --client geminiYou will configure MCP clients to start the local server via the provided commands. If you prefer a Bash-based startup, use the setup script from the local clone. If you prefer UVX/JIT workflows, you can run the Python server with uv as shown in your client setup.
Configuration samples you may use in your MCP client setup are shown here for quick reference. Include these exactly in your client configuration files where the tool expects an MCP server definition.
Configuration notes and practical examples help you tailor Fermat MCP to your workflow. Below are representative configurations shown for common MCP clients. Use these exactly as-is in your client setup sections that accept MCP server definitions.
{
"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."
}
}
}If you are using Claude or the Anthropic MCP client, you can run the server with uv and specify a local directory that contains Fermat MCP. This is useful for development workflows where you clone the repository locally.
{
"mcpServers": {
"fmcp": {
"command": "uv",
"args": [
"--directory",
"/home/ty/Repositories/fermat-mcp",
"run",
"server.py"
]
}
}
}If you use Gemini as your MCP client, place a similar configuration in your Gemini settings file. This ensures you can start the Fermat MCP server from Gemini with a single command.
{
"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."
}
}
}Plots bar charts from given data values.
Creates scatter plots from data points.
Plots line, scatter, or bar charts.
Creates stem plots for discrete data.
Generates stacked area or bar charts.
Plots mathematical equations.
Basic addition operation in numeric arrays or matrices.
Basic subtraction operation.
Basic multiplication operation.
Basic division operation.
Exponentiation operation.
Absolute value operation.
Exponential function.
Natural or base-specific logarithm.
Square root operation.
Sine function.
Cosine function.
Tangent function.
Compute the mean of an array.
Compute the median of an array.
Compute the standard deviation.
Compute the variance.
Find the minimum value.
Find the maximum value.
Index of the minimum value.
Index of the maximum value.
Compute specified percentile.
Dot product between two arrays.
Matrix multiplication.
Matrix inverse.
Matrix determinant.
Eigenvalues computation.
Solve linear systems.
Singular value decomposition.
Create a new matrix.
Create a zero-filled matrix.
Create a ones-filled matrix.
Create a matrix filled with a constant value.
Create a range of numbers.
Create linearly spaced numbers.
Reshape an array.
Flatten an array.
Concatenate arrays.
Transpose a matrix.
Stack arrays.
Algebraic simplification of expressions.
Expand algebraic expressions.
Factor polynomials.
Collect like terms in expressions.
Differentiate expressions.
Integrate expressions.
Compute limits.
Compute series expansions.
Solve algebraic equations.
Solve equations symbolically.
Solve linear systems symbolically.
Solve nonlinear systems.
Create a matrix structure from given data.
Compute determinant of a matrix.
Compute reduced row echelon form.
Compute eigenvalues of a matrix.