
Capitol Ledger
io.github.joalbrecht由 GitHub 帳號 joalbrecht 發布v0.1.0更新於 Oct 24, 2026
Read-only House stock disclosures and synthetic portfolio research. Approved pilot key required.
發布方自己的服務:Capitolguide
概覽
唯讀 MCP 轉接器,透過 Capitol Ledger 託管 API 檢索美國眾議院股票揭露,並檢視已儲存的合成揭露帳本投資組合。
- 可以做什麼
- 依股票代號、買賣方向、日期與分頁檢索眾議院股票揭露,附申報連結與金額區間
- 檢視某份已儲存合成帳本報告期初與期末的配置
- 檢視某份已儲存報告期間的買入、賣出與配置變動
- 在 MCP 之外透過需驗證的帳戶端點查詢用量與到期情形
- 適用情境
- 適合需要查詢美國眾議院股票揭露,或比較某份已儲存合成揭露投資組合不同期間的研究流程,並保留來源連結與時間脈絡。僅為研究資料,不構成投資建議,也不執行下單。
- 執行需求
- 需要 Python 3.12 以上版本,從 PyPI 安裝或以 uvx 以本機 stdio 方式執行。需要經核准的 Capitol Ledger 試用 API 金鑰,放在 CAPITOL_LEDGER_API_KEY,並在 CAPITOL_LEDGER_API_URL 設定 API 位址。需能連線託管 HTTPS API;不需要券商或交易帳戶憑證。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Capitol Ledger,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Capitol Ledger MCP
Read-only congressional stock disclosure research for AI agents. Search official U.S. House disclosures, inspect saved synthetic disclosure-ledger portfolios, and explain portfolio changes with source and timing context.
Request pilot access · API documentation · PyPI package · Official MCP Registry · Public fictional sample · Methodology
Access
The adapter is open source. The hosted data API requires an approved Capitol Ledger API key. Request an invited free 14-day pilot at the link above. Approved pilot accounts default to 1,000 authenticated requests per UTC day, shared across keys. No payment details or automatic paid conversion. Submitting an application does not grant access or subscribe you to a newsletter.
The public JSON sample is fictional and requires no key. It is useful for inspecting the response shape; it is not a real disclosure or live data.
Install
Python 3.12 or later is required. Install the published PyPI package:
Or run without a permanent installation:
To install from this public repository instead:
Connect your MCP client
For an installed adapter, use this local stdio configuration:
Replace the placeholder locally and keep the key in your client's secret store. Do not put it in a shared prompt, URL, issue, or public repository. If your client cannot find the command, use its absolute installation path.
A client using uvx can instead use "command": "uvx" and
"args": ["--from", "capitol-ledger-mcp", "capitol-ledger-mcp"], with the same env.
This is a local stdio server that calls a hosted HTTPS API. It is not a hosted
remote MCP endpoint. No broker or trading-account credentials are needed.
Tools
Example questions after connecting:
- What NVDA purchases were disclosed in the last 30 days? Include source links.
- Show the latest saved synthetic disclosure portfolio and its period.
- What changed in that report? Use the same report ID.
Search defaults to 30 days, with at most 100 rows per call. side accepts purchase,
sale, or exchange. Timestamps must include a timezone. Reuse returned as_of
and available_after when paging with meta.next_offset. Pin report_id to compare
a portfolio and its changes over the same period.
Coverage and interpretation
- House only. Senate data is excluded.
- Disclosures are delayed. The transaction date, public filing availability, and collection time are separate; do not describe a newly filed disclosure as a trade that just happened.
- Disclosed amounts are ranges, not exact transaction values. Synthetic ledger values use midpoint estimates.
- Portfolio snapshots represent a synthetic disclosure ledger, not actual member holdings or Capitol Ledger's executable strategy portfolio. Reports may be daily, weekly, monthly, or ad hoc; inspect returned period metadata.
- Preserve source URLs, calculation metadata, freshness, and coverage warnings. Completeness is not guaranteed. Historical queries use current parsed records, not a complete versioned archive of parser/source revisions.
- Research data only; no personalized investment advice or order execution.
- Pilot access is for internal research workflows; contact Capitol Ledger about redistribution or serving downstream users. The code's MIT license does not grant redistribution rights to the hosted data.
Usage and errors
All three tools use the API's account-wide quota. Usage and expiry can be checked
outside MCP using authenticated GET /api/v1/account (this also consumes a call).
- 401: invalid/revoked key.
- 403: inactive/expired access.
- 404: no completed saved report for that query.
- 422: invalid parameters.
- 429: daily quota exhausted; see the HTTP API's
Retry-Afterheader.
The tools never change subscriptions, rotate keys, submit orders, or access a local product database. API calls require HTTPS except for local development; redirects are not followed with credentials. Keys are environment credentials, not tool inputs. Model inference runs in your MCP client; this adapter only retrieves research data.
Container option
A non-root container is included for directory safety/quality checks and clients that prefer Docker. Pass credentials at runtime; they are never baked into the image.
Use -i for MCP stdio; do not allocate a TTY. Starting the server and listing its
tools do not require a key, but data calls do.
Development
Tests use mocked HTTP and do not need live credentials or consume API quota.
Publishing
See PUBLISHING.md for the release workflow, PyPI trusted publisher setup, and official MCP Registry metadata. Directory submissions are not evidence of endorsement or listing approval.
License and contact
MIT for the adapter code. Hosted API access and data rights are separate. Contact: [email protected].
來源:README.md,提交 b521b60
工具
0版本歷史
1- v0.1.0最新Oct 23, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分