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

已验证STDIO仅桌面金融数据与分析

概览

AI 生成的概览

只读 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;不需要券商或交易账户凭据。
安装前请注意
数据调用需要密钥 CAPITOL_LEDGER_API_KEY,应保存在客户端的密钥存储中,不要写入提示词、URL 或公开仓库。试点账户默认每个 UTC 日 1,000 次认证请求,所有密钥共享,三个工具都会消耗该配额。披露存在延迟,金额为区间,投资组合快照为合成数据而非真实议员持仓。MIT 许可证不授予托管数据的再分发权。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Capitol Ledger,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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:

sh
pip install capitol-ledger-mcp

Or run without a permanent installation:

sh
uvx --from capitol-ledger-mcp capitol-ledger-mcp

To install from this public repository instead:

sh
pip install 'git+https://github.com/joalbrecht/capitol-ledger-mcp.git'

Connect your MCP client

For an installed adapter, use this local stdio configuration:

json
{  "mcpServers": {    "capitol-ledger": {      "command": "capitol-ledger-mcp",      "env": {        "CAPITOL_LEDGER_API_URL": "https://capitol-ledger.com",        "CAPITOL_LEDGER_API_KEY": "YOUR_APPROVED_API_KEY"      }    }  }}

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

ToolPurposeParameters
search_disclosuresSearch House stock disclosures with filing links and amount rangesOptional ticker, side, available_after, as_of, limit, offset
get_portfolioOpening/closing allocations for a saved synthetic ledger reportOptional report_id, as_of
get_portfolio_changesPurchases, sales, and allocation changes for a saved periodOptional report_id, as_of

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-After header.

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.

sh
docker build -t capitol-ledger-mcp .docker run --rm -i -e CAPITOL_LEDGER_API_KEY -e CAPITOL_LEDGER_API_URL capitol-ledger-mcp

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

sh
pip install -e '.[dev]'pytestruff check .

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
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:软件包安装失败。

版本历史

1
  1. v0.1.0最新Oct 23, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Capitol 集成