numpy-mcp

numpy-mcp

1

The NumPy MCP Server is a server that facilitates numerical computations using NumPy through a standardized protocol interface. It offers a range of mathematical operations, including basic arithmetic, linear algebra, statistical analysis, and polynomial fitting. The server integrates easily with platforms like Claude Desktop for seamless mathematical operations.

NumPy MCP Server

A Model Context Protocol (MCP) server for numerical computations with NumPy

Features

  • Basic arithmetic operations
  • Linear algebra computations
  • Statistical analysis
  • Polynomial fitting

Installation

Quick Setup with Claude Desktop

Install the server using the mcp install command.

Manual Installation

Use UV for dependency management, clone the repository, and install dependencies.

Usage

Development Testing

Test locally with the MCP Inspector.

Claude Desktop Integration

Install and use it to perform mathematical operations via Claude.

Available Functions

Basic Arithmetic

  • Addition of integers

Linear Algebra

  • Matrix multiplication
  • Eigen decomposition

Statistics

  • Mean, median, standard deviation, min, max

Data Analysis

  • Polynomial fitting

Dependencies

  • NumPy
  • FastMCP

License

MIT License.