An MCP server that exposes NumPy functionality
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_numpy-0.1.0.tar.gz.
File metadata
- Download URL: mcp_numpy-0.1.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
981ac4ce24eb3b4b0747573898cb676d474556c4586859711992a112b0e3b81e
|
|
| MD5 |
f7e2480bcd1754021294ec95f3ebd957
|
|
| BLAKE2b-256 |
886e80736d5c8017daa8b7dcbf7d51b27c55ae5c3ce316d182125ec033fc3f88
|
Provenance
The following attestation bundles were made for mcp_numpy-0.1.0.tar.gz:
Publisher:
pypi-publish.yml on daedalus/mcp-numpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_numpy-0.1.0.tar.gz -
Subject digest:
981ac4ce24eb3b4b0747573898cb676d474556c4586859711992a112b0e3b81e - Sigstore transparency entry: 1197251476
- Sigstore integration time:
-
Permalink:
daedalus/mcp-numpy@1a8fa675ff0c2711f09d07b15263d432b2982d36 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@1a8fa675ff0c2711f09d07b15263d432b2982d36 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mcp_numpy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_numpy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45127f8649c407d91fa1db2daee75ec8be4c9f12539c6b2786b9be83bb25acac
|
|
| MD5 |
a531a482b3aaff7a1e3929e2ea53d217
|
|
| BLAKE2b-256 |
cc4158aeda71a65e7f55251f0a2cfe65bae1e54e73b02a80409fe24e9f7335bd
|
Provenance
The following attestation bundles were made for mcp_numpy-0.1.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on daedalus/mcp-numpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_numpy-0.1.0-py3-none-any.whl -
Subject digest:
45127f8649c407d91fa1db2daee75ec8be4c9f12539c6b2786b9be83bb25acac - Sigstore transparency entry: 1197251499
- Sigstore integration time:
-
Permalink:
daedalus/mcp-numpy@1a8fa675ff0c2711f09d07b15263d432b2982d36 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@1a8fa675ff0c2711f09d07b15263d432b2982d36 -
Trigger Event:
release
-
Statement type: