Microquery Mcp

io.github.microqueryhq由 GitHub 帳號 microqueryhq 發布v1.0.3更新於 Oct 24, 2026

SQL over real-world data — FDA, SEC, blockchain, genomics, CVEs, and more. No config.

已驗證STDIO僅桌面資料庫資料與分析

概覽

AI 產生的概覽

讓助理對 FDA、SEC、區塊鏈、基因體學、CVE 等真實世界資料集執行 SQL 查詢,無需設定。

可以做什麼
  • 對託管的公開資料集執行 SQL 查詢並取回實際紀錄
  • 列出可用資料集及其欄位結構
  • 取得 Sneller SQL 說明與多資料集範例配方
  • 手動註冊帳號或連結錢包地址
適用情境
適合需要讓助理根據公開資料集回答研究型問題(藥品安全、監管申報、臨床試驗、基因體學、加密貨幣、漏洞等),又不想自建資料庫或自行撰寫 SQL 的情境。
執行需求
以本機 Python 套件執行(Python 3.9+,僅用標準函式庫),透過 uvx 啟動(需另外安裝 uv),或讓宿主直接指向腳本。支援 Claude Desktop、Cursor 等 MCP 宿主,僅限桌面端。無需 API 金鑰或設定:首次查詢時自動註冊帳號,金鑰存於本機權杖檔案。
安裝前請注意
首次查詢時伺服器會以作業系統使用者名稱註冊帳號,並把 API 金鑰寫入磁碟。查詢從 0.10 美元試用額度開始,伺服器會自動加值最多 10 次、每次 2 美元,可能在沒有明確提示下產生實際花費;額度用完後會回傳結帳連結以加值 USDC。查詢與帳號活動會傳送至 Microquery 服務。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

microquery-mcp

MCP server for Microquery — ask research questions about real-world data and get actual database records back. Works in Claude Desktop, Cursor, or any MCP-compatible AI host. Claude handles the SQL; you just ask the question.

No wallet required. Auto-registers on first query and runs on $0.10 trial credit (~1,600 typical queries).

See also

microquery-agent — autonomous agent for pipelines and cron jobs: register → deposit USDC → query → auto top-up. Use this if you want to run microquery unattended without an AI host.

Prerequisites

  • Python 3.9+
  • No third-party packages — stdlib only

Installation

Claude Desktop (recommended)

The easiest paths, in order of friction:

1. Registry install Find microquery in the Claude Desktop MCP marketplace or on smithery.ai and click Install. No config editing needed.

2. uvx install Add one entry to ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "microquery": {      "command": "uvx",      "args": ["microquery-mcp"]    }  }}

uvx requires uv to be installed separately (astral.sh/uv). Once installed, Claude Desktop will pick it up automatically.

3. Manual install (developers) Download microquery_mcp.py from this repo and point your host at it:

json
{  "mcpServers": {    "microquery": {      "command": "python3",      "args": ["/path/to/microquery_mcp.py"]    }  }}

Restart Claude Desktop after editing. The server appears in Settings → Developer with a green dot when connected.

Other MCP hosts (Cursor, etc.)

Use the same command / args pattern above. Consult your host's MCP documentation for the exact config format.

Tools

ToolDescription
query(database, sql)Run SQL against a microquery dataset. Auto-registers on first call.
authenticate(name, wallet_addr?)Manually register or link a wallet address.
list_databases()Show all available datasets and field schemas.
get_quickstart()Sneller SQL notes and multi-dataset example recipes.

How it works

  1. On the first query() call the server registers an account using your OS username (getpass.getuser()) via POST /v1/register and stores the API key in ~/.microquery/token.
  2. Subsequent calls use the stored key — no configuration needed.
  3. The new account starts with 100,000 µUSDC ($0.10) trial credit, covering roughly 1,600 typical queries.
  4. When trial credit runs low the server automatically tops up the account (up to 10 times, $2 each). Once the free allowance is exhausted a checkout URL is returned — visit it to add USDC and continue querying.

Available datasets

FDA adverse events · SEC EDGAR · clinical trials · ClinVar · arXiv · PubMed · Ethereum · Bitcoin · Base · DeFi TVL · FEC contributions · FRED economic series · NVD/CVE · OSV advisories · sanctions · FHFA house prices · GWAS · ClinPGx · malware samples · open food facts · world bank commodities · and more — call list_databases() for the full live schema.

Example

User:    What were the top adverse events reported for metformin last year?         And how does that compare to 2022 and 2023?Claude:  [queries fda.faers for each year, builds trend table]         GI events (diarrhoea, nausea, vomiting) were flat 2022→2024,         then spiked sharply in 2025 — consistent with the longevity/         obesity wave hitting FAERS with a lag. Lactic acidosis stayed         nearly flat across all four years despite overall volume growth.
User:    Can you cross-reference that with genomic profiles?Claude:  [queries clinpgx, clinvar, gwas — no SQL needed from user]         SLC22A1 rs628031 has a direct ClinPGx annotation for GI toxicity —         the strongest known genomic explanation for why diarrhoea and nausea         dominate the FAERS signal for metformin.

來源:README.md,提交 aab3b7d

工具

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

版本歷史

1
  1. v1.0.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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