
DAQiFi
io.github.daqifi由 GitHub 帳號 daqifi 發布v1.9.1更新於 Nov 6, 2026
Discover, configure and read DAQiFi Nyquist data-acquisition hardware from an AI agent
概覽
讓 AI 助理探索、連線、設定並讀取 DAQiFi Nyquist 資料擷取硬體,包含即時取樣與 SD 卡記錄。
- 可以做什麼
- 透過 USB/序列埠或 WiFi 探索並連線 DAQiFi 裝置,列出、中斷連線,查看狀態與通道
- 啟用類比與數位通道,設定數位方向與輸出、驅動 PWM,並在 Nyquist 3 板卡上設定或鎖存 DAC 電壓
- 設定取樣率,讀取各已啟用通道的最新值,或擷取一段即時樣本
- 啟動與停止裝置端 SD 記錄,列出記錄檔與儲存空間,下載記錄(預設解析為 CSV)並刪除檔案
- 回報伺服器自身版本以及是否有更新版本發布
- 適用情境
- 適用於已接上 DAQiFi Nyquist 裝置、希望助理完成通道與取樣率設定、做單點量測或短時間擷取,或管理 SD 卡記錄並取回資料進行分析的情境。
- 執行需求
- 以 .NET 工具透過 stdio 在本機執行:安裝 Daqifi.Mcp 全域工具(需 .NET 執行階段),或以 dnx 直接執行(需 .NET 10 SDK)。需要可透過 USB/序列埠或 WiFi 存取的 DAQiFi 裝置;SD 記錄需 USB/序列埠連線。未宣告任何 API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 DAQiFi,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Daqifi.Mcp
A Model Context Protocol (MCP) server that lets an AI agent (Claude Desktop, Claude Code, Cursor, Codex, …) drive a DAQiFi Nyquist data-acquisition device: discover it, connect, configure analog channels and sample rate, read live measurements, and run on-device SD-card logging.
It is a thin layer over Daqifi.Core — all device/protocol logic lives there.
The server speaks MCP over stdio, so the client launches it as a subprocess.
Tools
Two ways to get data, for two different jobs.
read_channel_valuesandcapture_samplesstream live to the agent — good for spot checks and short captures, bounded by a duration and a row budget so the answer stays a tool result rather than a file. SD logging is on-device: the device writes to its own card at full rate for as long as you like, and you retrieve it afterwards withdownload_sd_file, which writes the raw file and a CSV into this machine's temp directory.Both live tools start the device's stream only if nothing is streaming yet, and stop it again afterwards; a session that was already running is read and left alone. Neither works while the device is logging to its SD card — the data goes to the card instead of to this machine, so those calls are refused with that explanation rather than returning nothing.
Retrieve before you stream, unless
discover_devicesreports afirmwareVersionof 3.7.3 or later (treat an empty or unknown version as older). On older firmware a live streaming session collapses the device's SD buffer (firmware #703), after which downloads come back empty until the device is power-cycled or another SD recording re-arms it. Firmware 3.7.3 keeps the buffer large enough to read through and reports a failed read instead of going silent.
Analog output is Nyquist 3 hardware. On any other board
set_analog_outputis refused outright, because the firmware would otherwise discard the command without saying so and the call would look like a success.set_analog_outputapplies the voltage immediately unless you passlatch=false, which stages it instead so several channels can be made to change together on onelatch_analog_outputs. Neither the staged value norread_analog_outputis a measurement of the pin — the DAC has no readback path, so the device answers with the value it was last told to drive.
Run it
Option A — install as a .NET global tool (recommended)
Option B — run it without installing (.NET 10 SDK)
This is how a client that found the server in the MCP Registry
(as io.github.daqifi/daqifi-mcp) will launch it.
Option C — from source (development)
Flags
A flag the server does not recognize — a typo such as --read-onyl included — stops it at startup
with a one-line error on stderr naming the flag, and exit code 2, rather than starting it without
the setting you meant. If your MCP client reports that the server failed to start, check its server
log for that line.
--read-only blocks anything that changes the device or the card: channel/rate configuration,
DIO/PWM output, analog output (set_analog_output, latch_analog_outputs), start/stop logging, and
delete_sd_file. Reading data back is still allowed — list_sd_files, get_sd_storage,
download_sd_file, list_analog_outputs and read_analog_output all work, since they change
nothing on the device (the download does write its two files into this machine's temp directory,
which is the only way the data can reach the agent at all).
The live tools sit on the line: reading a stream that is already running changes nothing and is
allowed, but starting one is a change, so read_channel_values and capture_samples are refused
under --read-only when the device is idle — and say so.
Staying current
The tool list grows with each release, so an out-of-date install is not merely behind — it is
missing capabilities. A Daqifi.Mcp from before the live-data tools landed, for instance, can
configure a device and start SD logging but cannot read a single value back, and an agent driving
it reasonably concludes the hardware cannot measure anything. Nothing about that is visible from
the inside.
So the server tells you. It reports its version in the MCP handshake, asks nuget.org once at
startup whether a newer release exists and writes one line to stderr if so, and answers
get_server_info with the same finding — call that whenever a tool you expected is not there.
That startup check is the only outbound request the server ever makes: one anonymous GET for a
static nuget.org version index, no device data, five-second timeout, and a failure is silent.
--no-version-check turns it off, after which get_server_info still reports the running version
and says staleness is unknown.
Point your agent at it
An stdio MCP server is just a command the client launches. Every client config reduces to command + args.
Claude Desktop — claude_desktop_config.json:
Claude Code:
Cursor — ~/.cursor/mcp.json (same shape as Claude Desktop).
Codex CLI — ~/.codex/config.toml:
During development, point the client at the source build instead:
{ "command": "dotnet", "args": ["run", "--project", "/abs/path/to/src/Daqifi.Mcp"] }.
Then plug in a DAQiFi over USB (or join its WiFi) and ask, e.g.: "Discover my DAQiFi, connect, enable analog channels 0–3 at 1 kHz, and start logging to the SD card." "Stop the log, then download it and tell me the average on AI0." "What voltage is on AI1 right now?" "Capture two seconds off channels 0–3 and tell me if anything looks noisy."
Notes
- stdout is reserved for the MCP JSON-RPC stream; all logging goes to stderr.
- The server runs locally and talks to the device exactly like
Daqifi.Coredoes — no measurement, device or configuration data ever leaves your machine. The one outbound request is the startup version check described above, which sends nothing but a user agent and can be disabled with--no-version-check.
來源:src/Daqifi.Mcp/README.md,提交 5ddf099
工具
0版本歷史
3- v1.9.1最新Nov 6, 2026
- v1.9.0Nov 4, 2026
- v1.8.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分