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 分