NumPy MCP Server logo

NumPy MCP Server

by colesmcintosh

A Model Context Protocol (MCP) server for numerical computations with NumPy. It exposes mathematical tools through a standardized MCP interface, making it easy to perform numerical computations directly through Claude or other MCP-compatible LLMs.

View on GitHub

Last updated: N/A

What is NumPy MCP Server?

A Model Context Protocol (MCP) server that provides mathematical calculations and operations using NumPy. It allows performing numerical computations through a standardized MCP interface.

How to use NumPy MCP Server?

The server can be installed and used directly within Claude Desktop using the mcp install command. Alternatively, it can be installed manually using UV for dependency management. Once installed, it can be tested locally with the MCP Inspector or integrated into Claude Desktop. You can then ask Claude to perform mathematical operations, which will be processed by the server.

Key features of NumPy MCP Server

  • Basic arithmetic operations (addition)

  • Linear algebra computations (matrix multiplication, eigendecomposition)

  • Statistical analysis (mean, median, standard deviation, min, max)

  • Polynomial fitting

Use cases of NumPy MCP Server

  • Performing linear algebra calculations within Claude

  • Calculating statistical analysis of data within Claude

  • Fitting polynomials to data sets within Claude

  • Integrating numerical computations into LLM workflows

FAQ from NumPy MCP Server

What is MCP?

Model Context Protocol (MCP) enables standardized LLM interactions.

What is NumPy?

NumPy is a library for numerical computations and linear algebra operations.

How do I install the server in Claude Desktop?

Use the command mcp install server.py --name "NumPy Calculator".

What kind of statistical analysis can the server perform?

The server can calculate the mean, median, standard deviation, minimum value, and maximum value of a dataset.

What license is the project under?

This project is licensed under the MIT License.