Mcp Numpy

io.github.daedalus由 GitHub 帳號 daedalus 發布v0.1.0更新於 Oct 24, 2026

An MCP server that exposes NumPy functionality

已驗證STDIO僅桌面開發者工具資料與分析

概覽

AI 產生的概覽

一個本機 MCP 伺服器,把 NumPy 的陣列建立、變形、數學運算、線性代數、隨機與統計函式以工具形式提供給助理使用。

可以做什麼
建立陣列與矩陣(零、一、範圍、單位矩陣、對角、填值)。對陣列進行變形、轉置、串接、拆分、平鋪、重複、去除單一維度與攤平。計算彙總統計、最小值/最大值、內積與矩陣乘法、跡、累加和與差分。執行線性代數運算,例如求反矩陣、行列式、特徵值、SVD、線性方程求解與範數。產生隨機數與洗牌,並計算百分位數、直方圖與相關性。進行逐元素算術、次方、開根號、對數、三角函式與型別轉換,並檢視形狀、維度、大小與資料型別。
適用情境
適合讓助理直接完成數值陣列計算,例如快速矩陣運算、統計、線性代數或隨機抽樣,而不必自行撰寫並執行 Python。適用於透過工具呼叫處理中小型資料的探索性數值計算。
執行需求
以本機程序執行,從 PyPI 套件 mcp-numpy 安裝(pip install mcp-numpy),並在 MCP 用戶端以指令 mcp-numpy 設定。未宣告驗證、環境變數或標頭。僅支援桌面用戶端。
安裝前請注意
陣列透過工具呼叫傳遞,較大的輸入可能變慢或觸及大小限制。隨機類工具除非提供種子,否則結果無法重現。不涉及憑證,也不會寫入外部資料。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Numpy,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

mcp-numpy

An MCP server that exposes NumPy functionality

[PyPI] [Python] [Coverage] [Ruff]

Install

bash
pip install mcp-numpy

Usage

As an MCP Server

To use with Claude Desktop or other MCP clients, add to your mcp.json:

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 array
  • np_zeros - Create zeros array
  • np_ones - Create ones array
  • np_full - Create array filled with value
  • np_arange - Create array with range
  • np_linspace - Create evenly spaced array
  • np_eye - Create identity matrix
  • np_diag - Create diagonal array
Array Manipulation
  • np_reshape - Reshape array
  • np_transpose - Transpose array
  • np_concatenate - Concatenate arrays
  • np_split - Split array
  • np_tile - Tile array
  • np_repeat - Repeat elements
  • np_squeeze - Remove single-dimensional entries
  • np_flatten - Flatten array
Mathematical Operations
  • np_sum, np_mean, np_std, np_var - Summary statistics
  • np_min, np_max, np_argmin, np_argmax - Min/max operations
  • np_dot, np_matmul, np_cross - Matrix operations
  • np_trace, np_cumsum, np_cumprod, np_diff - Array operations
Linear Algebra
  • np_inv - Matrix inverse
  • np_det - Matrix determinant
  • np_eig - Eigenvalues and eigenvectors
  • np_svd - Singular value decomposition
  • np_solve - Solve linear system
  • np_linalg_norm - Matrix/vector norm
Random
  • np_rand - Random floats
  • np_randn - Random normal
  • np_randint - Random integers
  • np_random_choice - Random choice
  • np_shuffle - Shuffle array
Statistics
  • np_percentile, np_quantile - Percentiles/quantiles
  • np_histogram - Histogram
  • np_correlate, np_corrcoef - Correlation
Element-wise Math
  • np_add, np_subtract, np_multiply, np_divide - Arithmetic
  • np_power, np_mod - Power and modulo
  • np_sqrt, np_abs - Basic math
  • np_exp, np_log, np_log10 - Logarithms
  • np_sin, np_cos, np_tan - Trigonometry
  • np_arcsin, np_arccos, np_arctan - Inverse trig
  • np_sinh, np_cosh, np_tanh - Hyperbolic
Array Properties
  • np_shape, np_ndim, np_size, np_dtype - Properties
  • npastype - Type conversion

Development

bash
git clone https://github.com/daedalus/mcp-numpy.gitcd mcp-numpypip install -e ".[test]"
# run testspytest
# formatruff format src/ tests/
# lintruff check src/ tests/
# type checkmypy src/

mcp-name: io.github.daedalus/mcp-numpy

來源:README.md,提交 18fa3da

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分