
GraceDB
io.github.izabelamaria24由 GitHub 帳號 izabelamaria24 發布v0.4.0更新於 Nov 3, 2026
LIGO/Virgo/KAGRA引力波警報(GraceDB)、開放資料(GWOSC)以及GCN後續觀測。
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
LIGO/Virgo/KAGRA gravitational-wave alerts (GraceDB), open data (GWOSC) and GCN follow-up.
概覽
GraceDB 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 GraceDB,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
GraceDB MCP Server
[PyPI] [CI] [License] [DOI] [GraceDB MCP on mcprush]
An open-source Model Context Protocol (MCP) server that
exposes LIGO/Virgo/KAGRA gravitational-wave alerts from
GraceDB to LLM agents. It bridges the official
ligo-gracedb client with the MCP standard so an
agent can query, classify, and fetch data for gravitational-wave candidate events.
Intended as the data-ingestion layer for a downstream signal-processing / anomaly-detection pipeline (e.g. isolating astrophysical "chirps" from instrumental glitches).
Tools
Resources
Every file the server downloads (up to 50 MB) is also an MCP resource, so an agent can read it without filesystem access, which is useful when the server runs in Docker or on another machine:
The download tools return these URIs, clients are notified when new files appear, and files already in the data directory are listed at startup. Larger files, such as full parameter-estimation posteriors, stay on disk only.
Prompts
Ready-made workflows that chain the tools. Most clients show them as slash commands.
Skills
Agent skills cover workflows that need more than this server, such as running Python locally.
They live in skills/ and are not part of the PyPI package. To use one, copy its
folder to your agent's skills directory:
- Claude Code:
~/.claude/skills/ - GitHub Copilot:
.github/skills/in a project, or~/.copilot/skills/
⚠️ Important: where strain data actually comes from
GraceDB does not host raw strain data. It stores event artifacts (skymaps, classifications,
parameter-estimation results). The public strain time series lives at
GWOSC and is fetched by GPS time via gwpy. Public strain is only
available for released observing runs — fresh low-latency alerts will not have public strain
yet. download_strain_data reflects this: it reads t_0 from GraceDB, then pulls open data from
GWOSC (and cleanly reports when data isn't public).
Requirements
- Python 3.10+
mcp,ligo-gracedb,gwosc,python-dotenv- Optional:
gwpy(fordownload_strain_data) — installed via thestrainextra.
Install
Run straight from PyPI with uv:
Or from source:
Configuration
Copy .env.example to .env and adjust. Anonymous access is enough for public superevents:
Run locally
Development
Requires Python 3.11+ (the mcp 2.x SDK needs 3.10+).
Run with Docker
A prebuilt image (linux/amd64 and arm64) is published to GHCR:
Or build it yourself (add --build-arg EXTRAS= for the slim variant):
Connect to an MCP client
Claude Desktop / VS Code (mcp.json)
Add to your MCP client configuration:
Or run the container directly:
Example agent prompts
- "Search for superevents from 2023-05-01 to 2023-06-01 with a FAR below 1e-8."
- "What's the source classification for S230518h? Is it more likely a BBH or an NSBH?"
- "Download the skymap and p_astro file for S230518h."
- "Fetch H1 and L1 strain around GW150914."
- "What are the masses of GW190814, and how certain are they?"
- "List GWTC-3 events with total mass under 10 solar masses."
- "Was S190814bv checked by a human? What do its labels mean?"
- "Is there public strain for GW190814 from every detector?"
Demo
A real session (tool results trimmed to the key fields).
You: Tell me about S190814bv. Was it real, what was it, and can I get its data?
Agent: Yes, it's real and extremely significant (false-alarm rate about 2×10⁻³³ Hz). It passed data-quality checks, a human advocate approved it, and it was never retracted. The alert called it a neutron star–black hole merger (99.8%). The final analysis (GW190814) found a 23-solar-mass black hole and a 2.6-solar-mass companion, which is too heavy for most neutron-star models and too light for known black holes, so its nature is still open. It was 230 Mpc away. Here's the sky map, and I've saved 30 s of data from both LIGO detectors and Virgo around the merger.
RL environment (experimental)
gw_rl is a Gymnasium environment built on strain fetched by this server. Each episode shows the
agent a 1 s spectrogram and it answers noise, chirp or glitch (+1 correct, -1 wrong).
Real chirps are scarce, so training injects synthetic chirps into real detector noise; the real
catalogue events are kept for evaluation. Chirps are IMRPhenomD waveforms from LALSimulation
(--chirp imr, default) or a simple analytic sweep (--chirp toy). Glitches are real LIGO
glitches labelled by Gravity Spy (--glitch real, default)
or sine-Gaussian bursts (--glitch synthetic).
It is not part of the PyPI package; run it from a clone of this repository (needs pip 25.1+):
Roadmap
- Streamable-HTTP transport (in addition to stdio) for remote deployments.
Disclaimer
Unofficial; not affiliated with or endorsed by LIGO, Virgo, KAGRA, GraceDB or NASA GCN. Respect the GWOSC, GraceDB and GCN data-use policies.
If you publish results using data fetched by this server, cite the data sources: GWOSC (CC BY 4.0), GCN Circulars by number (each has an ADS record), and, for glitch labels, Gravity Spy.
Citing
If this server helped your work, please cite it: doi:10.5281/zenodo.23810872
(all versions; Zenodo also lists a DOI per release). GitHub's Cite this repository button
(from CITATION.cff)
gives APA and BibTeX.
License
GPL-3.0-or-later, matching its core dependencies ligo-gracedb and gwpy.
來源:README.md,提交 9f8b83f
工具
0版本歷史
5- v0.4.0最新Nov 3, 2026
- v0.3.0Oct 31, 2026
- v0.2.2Oct 30, 2026
- v0.2.0Oct 29, 2026
- v0.1.0Oct 26, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分