pypi microquery-mcpstdioMITupdated 4mo ago
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.
microquery mcp 能做什么?
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):
{
"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:
{
"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
| Tool | Description |
|---|---|
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
- On the first
query()call the server registers an account using your OS username (getpass.getuser()) viaPOST /v1/registerand stores the API key in~/.microquery/token. - Subsequent calls use the stored key — no configuration needed.
- The new account starts with 100,000 µUSDC ($0.10) trial credit, covering roughly 1,600 typical queries.
- 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.
安装
把 microquery mcp 添加到你的客户端。选择你正在使用的那个。
claude mcp add microquery-mcp -- uvx microquery-mcpcodex mcp add microquery-mcp -- uvx microquery-mcpamp mcp add microquery-mcp -- uvx microquery-mcp{
"mcpServers": {
"microquery-mcp": {
"command": "uvx",
"args": [
"microquery-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"microquery-mcp": {
"command": "uvx",
"args": [
"microquery-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"microquery-mcp","command":"uvx","args":["microquery-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"microquery-mcp": {
"command": "uvx",
"args": [
"microquery-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"microquery-mcp": {
"command": "uvx",
"args": [
"microquery-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"microquery-mcp": {
"command": "uvx",
"args": [
"microquery-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"microquery-mcp": {
"type": "local",
"command": "uvx",
"args": [
"microquery-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"microquery-mcp": {
"command": {
"path": "uvx",
"args": [
"microquery-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
uvx microquery-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
评分
39 / 100
不完整
- 文档25/25
- 维护13/25
- 可信度16/20
- 能力0/15
- 安装体验12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 128 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 1.0.3最新 | 2026年4月30日 |