MCP Numpy logo

MCP Numpy

Expose NumPy array creation, manipulation, linear algebra, random, and statistics operations as MCP tools.

Install MCP Numpy

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-numpy": {
      "command": "uvx",
      "args": [
        "mcp-numpy"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 72 tools correctly (3d ago).

Overview

The mcp-numpy MCP server exposes NumPy operations to MCP-compatible AI clients through callable tools. It runs as a local command installed from PyPI and communicates over the standard MCP server configuration. Available operations cover array creation and reshaping, linear algebra, random generation, statistics, element-wise math, and array properties. Reach for it when an agent needs to construct or analyze NumPy arrays without embedding custom numerical code.

Use cases

  • Create NumPy arrays from agent-generated values
  • Reshape and combine arrays during numerical workflows
  • Solve linear systems and inspect matrix properties
  • Generate random samples and calculate histograms
  • Apply element-wise mathematical transformations

Key features

  • Array creation and manipulation
  • Linear algebra operations
  • Random number generation
  • Statistics and histograms
  • Element-wise mathematics
  • Array property inspection and type conversion

Tools72

What MCP Numpy lets your agent do. Expand a tool for its parameters.

Verified live~5.8k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 3d ago

Recent health check succeeded.

4/4 checks healthy over the last 41d

What it can do

From the 72 tools this server returned when we ran it.

Can delete or modify data · 1Read-only tools · 71
Network at startup2 connections
Files written at startup30

Observed 2026-10-20 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · mcp-numpy (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit6mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed72Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Numpy works

What the mcp-numpy MCP server does

The mcp-numpy MCP server makes a broad subset of NumPy available as individual MCP tools. It is intended for agents that need to create arrays, transform their shapes, perform numerical calculations, or inspect array properties through an MCP client.

Array construction includes regular arrays, zero- and one-filled arrays, constant-filled arrays, ranges, evenly spaced values, identity matrices, and diagonal arrays. Manipulation tools cover reshaping, transposition, concatenation, splitting, tiling, repetition, squeezing singleton dimensions, and flattening.

The server also exposes summary statistics, minimum and maximum operations, dot and matrix multiplication, cumulative operations, differences, correlations, element-wise arithmetic, logarithms, trigonometry, and array metadata such as shape, dimensionality, size, and data type.

How it works

After installation, an MCP client starts the mcp-numpy command as a local server. The client then presents the registered NumPy operations as tools that an agent can call with operation-specific inputs. The repository documentation shows this setup for Claude Desktop and describes it as applicable to other MCP clients.

The tool set includes linear algebra operations such as matrix inversion, determinants, eigenvalues and eigenvectors, singular value decomposition, linear-system solving, and vector or matrix norms. Random-data tools generate uniform floats, normally distributed values, integers, random selections, and shuffled arrays. Statistical tools include histograms, percentiles, quantiles, correlation, and covariance-style correlation coefficients.

Setup and configuration

Install the package with pip:

Terminal
pip install mcp-numpy

Add a server entry to the MCP client's configuration. The documented command-only configuration is:

config.json
{
  "mcpServers": {
    "mcp-numpy": {
      "command": "mcp-numpy"
    }
  }
}

The provided setup does not specify required environment variables, API keys, network services, or additional runtime configuration. For local development, the repository documents editable installation with test dependencies, followed by pytest, Ruff formatting and linting, and mypy checks.

Tools and capabilities

The mcp-numpy MCP server groups its tools around common NumPy workflows:

  • Create arrays with np_array, np_zeros, np_ones, np_full, np_arange, np_linspace, np_eye, and np_diag.
  • Change array layout with np_reshape, np_transpose, np_concatenate, np_split, np_tile, np_repeat, np_squeeze, and np_flatten.
  • Run linear algebra with np_inv, np_det, np_eig, np_svd, np_solve, and np_linalg_norm.
  • Generate or modify random data with np_rand, np_randn, np_randint, np_random_choice, and np_shuffle.
  • Calculate statistics, including sums, means, standard deviations, variances, extrema, histograms, percentiles, quantiles, and correlations.
  • Apply arithmetic, powers, modulo, roots, absolute values, exponentials, logarithms, trigonometric functions, and hyperbolic functions element by element.
  • Inspect array shape, dimensions, size, and dtype, or convert types with npastype.

Limitations and notes

Choose this server for direct numerical operations; additional data-access or visualization requirements would need separate tooling.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Numpy

mcp-numpy is an MCP server that connects MCP-compatible AI clients to NumPy functionality through tools for array creation, reshaping, statistics, random generation, element-wise math, and linear algebra. It runs locally through the mcp-numpy command after installation with pip and can be registered in an MCP client configuration.

Install it with `pip install mcp-numpy`. After installation, configure your MCP client to launch the `mcp-numpy` command, using the documented `mcpServers` entry.

Yes, mcp-numpy works with Claude Desktop through the documented MCP configuration. Add an `mcp-numpy` server entry whose command is `mcp-numpy`, then let Claude Desktop start the local server.

mcp-numpy supports array creation and manipulation, linear algebra, random generation, statistics, element-wise math, array properties, and dtype conversion. Examples include `np_reshape`, `np_svd`, `np_histogram`, `np_random_choice`, and `npastype`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Numpy AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-numpy?style=directory)](https://allmcps.com/mcp/mcp-numpy)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-numpy"><img src="https://allmcps.com/api/badge/mcp-numpy?style=directory" alt="MCP Numpy on AllMCPs" /></a>