
CourtAPI — Federal Court Data
io.github.courtio由 GitHub 帳號 courtio 發布v0.1.0更新於 Oct 25, 2026
Search and retrieve US federal court cases, dockets, claims, and documents via PACER
概覽
本機 MCP 伺服器,讓助理透過 CourtAPI 與 PACER 檢索美國聯邦法院案件、案卷、債權申報與文書。
- 可以做什麼
- 依當事人名稱、案號或關鍵字尋找案件,列出約 200 個 PACER 法院代碼與名稱(破產、地區、上訴法院),並可透過全國案件定位器跨法院檢索。讀取案件中繼資料,如標題、章節、法官、關鍵日期、資產與負債,並查看哪些子資源已購買。讀取案卷表,含提交歷程、關鍵字與日期篩選,以及擷取的關鍵日期。取得案卷項目 PDF,購買前可查看快取狀態與下載費用。讀取破產債權登記冊與附表債權人,列出當事人及選用律師資訊。在 CourtAPI 中儲存、驗證、查看或刪除 PACER 憑證。
- 適用情境
- 適合美國聯邦法院的破產、訴訟與法律檢索工作:追蹤案卷、分析第 11 章債權人申報、進行利益衝突或送達名單查核、取得法院文書。不支援州法院。
- 執行需求
- 透過 npx 以 Node.js 套件在本機執行,或以 --http 參數以 HTTP 方式執行。需要 CourtAPI 帳戶及 COURTAPI_APP_ID 與 COURTAPI_APP_KEY,即時資料與文書下載另需 PACER 帳戶。可選 COURTAPI_BASE_URL 覆寫 API 位址。需要連線至 CourtAPI 與 PACER 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 CourtAPI — Federal Court Data,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
CourtAPI MCP Server
Search and retrieve US federal court cases, dockets, claims, and documents via PACER — directly from Claude and other MCP-compatible AI assistants.
What it does
This MCP server exposes CourtAPI as a set of tools that let an AI assistant:
- Find cases by party name, case number, or free-text keywords across all federal courts
- Get case metadata — title, chapter, judge, filing dates, assets/liabilities, and what sub-resources have been purchased
- Get dockets — full docket sheets with filing history, keyword search, and date filtering
- Download documents — PDFs attached to docket entries, with cost-checking before purchase
- Get claims — bankruptcy claims registers with creditor names, amounts, and claim types
- Get parties — all parties and attorneys in a case
- Get creditors — scheduled creditors (Schedules D/E/F), separate from filed claims
- Search PACER NCL — National Case Locator for cross-court party searches
- List courts — all ~200 PACER courts with their codes
- Manage PACER credentials — store and validate PACER username/password
Coverage: all US federal courts — bankruptcy, district, and appellate. State courts are not supported.
Prerequisites
CourtAPI account — Get credentials (APP_ID + APP_KEY) at the developer portal. A free 30-day sandbox is available (150 API calls/day, 500/month) — contact [email protected] to start one.
PACER account — Required for fetching live data (docket updates, document downloads). Register free at pacer.uscourts.gov. PACER charges per page for documents; CourtAPI passes these fees through at cost.
Installation
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Restart Claude Desktop. The hammer icon will show CourtAPI tools listed.
Other MCP clients
The server uses stdio transport by default, which is compatible with any MCP host. Use the same command/args/env pattern above.
HTTP mode (Streamable HTTP transport)
For clients that use HTTP rather than stdio (e.g. the OpenAI Responses API remote tools):
From source
Environment variables
Quick start
Once connected, try these prompts in Claude:
"Find the Sbarro bankruptcy case and show me the latest docket entries"
"Search for Chapter 11 cases filed in the Delaware bankruptcy court in 2024"
"Get the claims register for case 1:14-bk-10557 in the SDNY bankruptcy court"
"Set my PACER credentials to username johndoe and password mypassword"
Tools
find_cases
Discover cases you don't have a court code or full case number for. Pass a party/company name, partial case number, or free-text keywords. The tool automatically picks the best search endpoint:
- Party/title search — fast, free, good for company or person names
- Case number search — resolves partial or ambiguous numbers
- Keyword search (
search-filings) — full-text across CourtAPI's filing repository; costs 1 API call per 25 results returned
Returns court_code + case_number pairs needed by all other tools.
get_case
Get all metadata for a known case: title, chapter, judge, key dates (filed/closed/discharged), assets, liabilities, and the menu object. The menu has one entry per sub-resource (dockets, claims, parties, etc.) with a modified timestamp — null means that resource has never been purchased from PACER.
Always call this first after finding a case to check what data is already available. Free unless include_live_pacer=true.
get_dockets
Get the docket sheet — all filings in chronological order with dates, descriptions, and attached document info. Supports keyword search and date/number range filtering.
Two useful fields on every docket entry:
binder.documents— pre-fetched document metadata includingis_cachedanddownload_costfor each PDF, so you can check availability without a separate documents API call.annotations— key dates extracted from docket text (deadlines, hearings, etc.) withkey_phrase,datetime, andtime_zone. Useful for building calendar integrations without parsing docket text.
When calling with include_live_pacer=true to buy a fresh docket sheet from PACER, always pass date_filed_from to limit the purchase to entries newer than what CourtAPI already has. Omitting it buys the entire docket history — expensive for active cases.
get_document
Get a PDF attached to a docket entry. Checks the cache first:
is_cached=trueordownload_cost="0.00"→ returnsdownload_url,preview_url, andocr_linkat no cost- Not cached +
purchase=false(default) → returns cost info so you can decide before spending - Not cached +
purchase=true→ buys from PACER, stores it, returnsdownload_url+ PACERreceipt
docket_seq comes from docket entries (e.g. "42.00000"). part defaults to 1 (main document); exhibits and attachments have higher part numbers.
Once purchased, the document is cached — all subsequent GETs are free.
get_claims
Get the bankruptcy claims register — all proofs of claim filed by creditors, with amounts (filed/allowed/paid), claim type, creditor names, and filing dates. Essential for Chapter 11 creditor analysis.
Filter by claim_type (secured, unsecured, priority, admin, etc.) and sort by claim number, filing date, or amendment date.
get_parties
Get all parties in a case (debtors, creditors, plaintiffs, defendants, trustees) and optionally their attorneys with firm name, contact info, and bar number. Attorney records return null (not an error) when they haven't been purchased for this case — use include_attorneys=false to suppress the attorney fetch.
Useful for conflicts checks, service lists, and identifying who is involved in a case.
get_creditors
Get scheduled creditors from bankruptcy Schedules D/E/F. This is different from get_claims — creditors listed here may not have filed a proof of claim. Use both to get a complete creditor picture.
ncl_search
Search PACER's National Case Locator across all federal courts at once. More comprehensive than find_cases for party name searches because it queries PACER directly. Costs PACER credits.
Supports: name searches, SSN/TIN lookups (with last name), case number, chapter, court, and date range filters. Paginate with search_id from the previous response.
list_courts
List all ~200 PACER courts with their court codes and names. Filter by type: bankruptcy, district, or appellate.
Common codes: nysbke (NY Southern Bankruptcy), debke (Delaware Bankruptcy), ilnbke (IL Northern Bankruptcy), cacdbe (CA Central Bankruptcy), txnbke (TX Northern Bankruptcy).
get_pacer_credentials
Manage PACER credentials stored in CourtAPI. PACER credentials are required before any include_live_pacer=true call.
Understanding costs
CourtAPI has two independent cost layers:
CourtAPI API credits — charged by your CourtAPI plan. Free for: case GET lookups, party/title searches, docket GETs from cache, document GETs from cache. Costs 1 call per 25 results for keyword search (search-filings).
PACER fees — charged by the US federal courts per page. Only incurred when:
include_live_pacer=trueon dockets, claims, creditors, or case refreshpurchase=trueonget_document
download_cost="0.00" means a document is cached and free to retrieve. Always check before purchasing.
Case number format
CourtAPI requires long-form PACER case numbers. PACER often shows short forms in its UI (e.g. 14-10557) but the API always needs the full form.
Non-appellate courts (district, bankruptcy):
O— office/division number (e.g.1,2,3)YY— two-digit filing yearTT— case type:bkbankruptcy,cvcivil,crcriminal,apadversary proceedingNNNNN— sequence number
Example: 1:14-bk-10557 (not 14-10557)
Appellate courts:
Example: 23-1234
If PACER shows a short form, use find_cases to resolve it. Always pair a case number with its court_code — the same sequence number can exist in multiple courts.
PACER screenshots on updates
When get_dockets or get_claims fetches live data from PACER (include_live_pacer=true), the response includes links.screenshot.pdf.href — a link to a PDF screenshot of the actual PACER page that was fetched. Useful for audit and compliance verification.
License
MIT — © CourtDrive. See courtapi.com for API terms.
來源:README.md,提交 2f2136a
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。