mcp-numpy
An MCP server that exposes NumPy functionality as tools, enabling array creation, manipulation, mathematical operations, linear algebra, random sampling, statistics, and element-wise math through natural language.
README
mcp-numpy
An MCP server that exposes NumPy functionality
Install
pip install mcp-numpy
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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.