mcp-numpy
Exposes NumPy functionality as MCP tools, including array creation, manipulation, mathematical operations, linear algebra, random sampling, statistics, and element-wise math operations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-numpycreate a 3x3 identity matrix"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-numpy
An MCP server that exposes NumPy functionality
Install
pip install mcp-numpyRelated MCP server: Math MCP Server
Usage
As an MCP Server
To use with Claude Desktop or other MCP clients, add to your mcp.json:
{
"mcpServers": {
"mcp-numpy": {
"command": "mcp-numpy"
}
}
}Available Tools
The server exposes the following NumPy functionality as MCP tools:
Array Creation
np_array- Create a NumPy arraynp_zeros- Create zeros arraynp_ones- Create ones arraynp_full- Create array filled with valuenp_arange- Create array with rangenp_linspace- Create evenly spaced arraynp_eye- Create identity matrixnp_diag- Create diagonal array
Array Manipulation
np_reshape- Reshape arraynp_transpose- Transpose arraynp_concatenate- Concatenate arraysnp_split- Split arraynp_tile- Tile arraynp_repeat- Repeat elementsnp_squeeze- Remove single-dimensional entriesnp_flatten- Flatten array
Mathematical Operations
np_sum,np_mean,np_std,np_var- Summary statisticsnp_min,np_max,np_argmin,np_argmax- Min/max operationsnp_dot,np_matmul,np_cross- Matrix operationsnp_trace,np_cumsum,np_cumprod,np_diff- Array operations
Linear Algebra
np_inv- Matrix inversenp_det- Matrix determinantnp_eig- Eigenvalues and eigenvectorsnp_svd- Singular value decompositionnp_solve- Solve linear systemnp_linalg_norm- Matrix/vector norm
Random
np_rand- Random floatsnp_randn- Random normalnp_randint- Random integersnp_random_choice- Random choicenp_shuffle- Shuffle array
Statistics
np_percentile,np_quantile- Percentiles/quantilesnp_histogram- Histogramnp_correlate,np_corrcoef- Correlation
Element-wise Math
np_add,np_subtract,np_multiply,np_divide- Arithmeticnp_power,np_mod- Power and modulonp_sqrt,np_abs- Basic mathnp_exp,np_log,np_log10- Logarithmsnp_sin,np_cos,np_tan- Trigonometrynp_arcsin,np_arccos,np_arctan- Inverse trignp_sinh,np_cosh,np_tanh- Hyperbolic
Array Properties
np_shape,np_ndim,np_size,np_dtype- Propertiesnpastype- Type conversion
Development
git clone https://github.com/daedalus/mcp-numpy.git
cd mcp-numpy
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/mcp-name: io.github.daedalus/mcp-numpy
Maintenance
Related MCP Servers
- Flicense-qualityDmaintenanceA Model Context Protocol (MCP) server that provides mathematical calculations and operations using NumPy, enabling users to perform numerical computations like matrix operations, statistical analysis, and polynomial fitting directly through Claude.Last updated3
- AlicenseBqualityDmaintenanceA Python-based MCP server providing mathematical computation tools and plotting utilities for a wide range of math topics including calculus, matrix operations, statistics, and more.Last updated225MIT
- Flicense-qualityCmaintenanceA Python-based MCP server that provides mathematical tools like addition and random number generation, plus server metadata.Last updated
- Flicense-qualityBmaintenanceAn MCP server that exposes 16 calculator operations as tools, enabling arithmetic, rounding, and root calculations via natural language.Last updated
Related MCP Connectors
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Educational MCP server with 17 math/stats tools, visualizations, and persistent workspace
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/daedalus/mcp-numpy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server