NumPy
FreeNot checkedProvides NumPy-based mathematical operations and statistical analysis tools for advanced numerical computations, data analysis, and linear algebra operations in
About
Provides NumPy-based mathematical operations and statistical analysis tools for advanced numerical computations, data analysis, and linear algebra operations in Python environments.
README
MseeP.ai Security Assessment Badge
NumPy MCP Server
A Model Context Protocol (MCP) server for numerical computations with NumPy
A Model Context Protocol (MCP) server that provides mathematical calculations and operations using NumPy. This server exposes various mathematical tools through a standardized MCP interface, making it easy to perform numerical computations directly through Claude or other MCP-compatible LLMs.
Features
- Basic arithmetic operations (addition)
- Linear algebra computations (matrix multiplication, eigendecomposition)
- Statistical analysis (mean, median, standard deviation, min, max)
- Polynomial fitting
Installation
Quick Setup with Claude Desktop
The fastest way to get started is to install this server directly in Claude Desktop:
# Install the server in Claude Desktop
mcp install server.py --name "NumPy Calculator"
Manual Installation
This project uses UV for dependency management. To install:
# Install UV if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone the repository
git clone https://github.com/yourusername/math-mcp.git
cd math-mcp
# Create virtual environment and install dependencies
uv venv
source .venv/bin/activate # On Unix/macOS
# or
# .venv\Scripts\activate # On Windows
uv pip install -r requirements.txt
Usage
Development Testing
Test the server locally with the MCP Inspector:
mcp dev server.py
Claude Desktop Integration
Install the server in Claude Desktop:
mcp install server.py --name "NumPy Calculator"The server will now be available in Claude Desktop under "NumPy Calculator"
You can use it by asking Claude to perform mathematical operations, for example:
- "Calculate the eigenvalues of matrix [[1, 2], [3, 4]]"
- "Find the mean and standard deviation of [1, 2, 3, 4, 5]"
- "Multiply matrices [[1, 0], [0, 1]] and [[2, 3], [4, 5]]"
Direct Execution
For advanced usage or custom deployments:
python server.py
# or
mcp run server.py
Available Functions
The server provides the following mathematical functions through the MCP interface:
Basic Arithmetic
add(a: int, b: int) -> int: Add two integers together
Linear Algebra
matrix_multiply(matrix_a: List[List[float]], matrix_b: List[List[float]]) -> List[List[float]]: Multiply two matriceseigen_decomposition(matrix: List[List[float]]) -> Tuple[List[float], List[List[float]]]: Compute eigenvalues and eigenvectors of a square matrix
Statistics
statistical_analysis(data: List[float]) -> dict[str, float]: Calculate basic statistics for a dataset including:- Mean
- Median
- Standard deviation
- Minimum value
- Maximum value
Data Analysis
polynomial_fit(x: List[float], y: List[float], degree: int = 2) -> List[float]: Fit a polynomial of specified degree to the given data points
Development
Project Structure
math-mcp/
├── requirements.txt
├── README.md
└── server.py
Code Quality
This project adheres to strict code quality standards:
- Type hints throughout the codebase
- Comprehensive docstrings following Google style
- Error handling for numerical operations
Dependencies
- NumPy: For numerical computations and linear algebra operations
- FastMCP: For Model Context Protocol server implementation
License
This project is licensed under the MIT License.
Acknowledgments
- NumPy team for their excellent scientific computing library
- Model Context Protocol (MCP) for enabling standardized LLM interactions
Installing NumPy
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/colesmcintosh/numpy-mcpFAQ
Is NumPy MCP free?
Yes, NumPy MCP is free — one-click install via Unyly at no cost.
Does NumPy need an API key?
No, NumPy runs without API keys or environment variables.
Is NumPy hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install NumPy in Claude Desktop, Claude Code or Cursor?
Open NumPy on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Notion
Read and write pages in your workspace
by NotionLinear
Issues, cycles, triage — from Claude
by LinearGoogle Drive
Search and read your Drive files
by Googlemindsdb/mindsdb
Connect and unify data across various platforms and databases with [MindsDB as a single MCP server](https://docs.mindsdb.com/mcp/overview).
by mindsdbfulcradynamics/fulcra-context-mcp
MCP server for accessing personal health and biometric data including sleep stages, heart rate, HRV, glucose, workouts, calendar, and location via the Fulcra Li
by fulcradynamicsaymericzip/intlayer
A MCP Server that enhance your IDE with AI-powered assistance for Intlayer i18n / CMS tool: smart CLI access, access to the docs.
by aymericziprinadelph/Agent-MCP
A framework for creating multi-agent systems using MCP for coordinated AI collaboration, featuring task management, shared context, and RAG capabilities.
by rinadelphWhenLabs-org/when
Developer toolkit: auto-detect stack for AI context files, catch port conflicts, validate .env schemas, spot docs drift, audit dependency licenses, and time cod
by WhenLabs-orgBeltran12138/wecom-docs-mcp-server
WeCom (Enterprise WeChat) document operations via MCP: create, read, and edit Docs and Smartsheets (9 tools). Fills the doc-CRUD gap — existing WeCom MCP server
by Beltran12138madbonez/caldav-mcp
Universal MCP server for CalDAV protocol integration. Works with any CalDAV-compatible calendar server including Yandex Calendar, Google Calendar (via CalDAV),
by madbonezCompare NumPy with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All productivity MCPs
