loading…
Search for a command to run...
loading…
Enables searching and downloading court documents, listing cases, and retrieving case details via the DocketBird API. It supports secure OAuth 2.0 authenticatio
Enables searching and downloading court documents, listing cases, and retrieving case details via the DocketBird API. It supports secure OAuth 2.0 authentication for remote access and a standard local mode for personal use.
An MCP server for searching and downloading court documents via the DocketBird API. Deployed on DigitalOcean with Docker, using OAuth 2.0 so each user brings their own DocketBird API key.
| Tool | Description |
|---|---|
docketbird_get_case_details |
Get case info, parties, and paginated documents |
docketbird_search_documents |
Search documents within a case by keyword |
docketbird_list_cases |
List cases for company or user scope |
docketbird_list_courts |
Get court codes and case types (optional search filter) |
docketbird_download_document |
Retrieve a single document's content (or save it locally in stdio) |
docketbird_download_files |
List a case's documents with direct download links (or save them locally in stdio) |
docketbird_get_calendar |
Get calendar entries (deadlines and hearings) |
docketbird_follow_case |
Follow a case so DocketBird monitors new filings |
Using these tools from an agent: a ready-to-install Claude skill lives in skills/docketbird-mcp/, covering the case-ID format, each tool, and common research workflows.
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt
# stdio transport (uses DOCKETBIRD_API_KEY env var, no OAuth)
DOCKETBIRD_API_KEY="your-key" python docketbird_mcp.py --transport stdio
# HTTP transport with OAuth (Streamable HTTP at /mcp)
python docketbird_mcp.py --transport http
# Then visit http://localhost:8080/signup to create an account
Note: All diagnostic logging goes to stderr, never stdout. This keeps the stdio JSON-RPC stream clean — writing logs to stdout would corrupt it and break the client.
| Variable | Mode | Default | Description |
|---|---|---|---|
DOCKETBIRD_API_KEY |
stdio | (none) | API key used for all requests in stdio mode (no OAuth). Required for stdio. |
SERVER_URL |
http | http://localhost:8080 |
Public base URL. Used as the OAuth issuer/resource URL and for redirects. Must match the URL clients connect to. |
DATA_DIR |
http | ./data |
Directory holding the SQLite auth database. Mounted as a volume in Docker. |
See .env.example for a template.
See DocketBird_MCP_Installation_Guide.pdf for the full walkthrough with screenshots.
https://app.docketbird-mcp.com/mcpFor Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json) or Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"docketbird-mcp": {
"command": "uv",
"args": [
"run",
"--directory",
"/path/to/docketbird-mcp-plus",
"python",
"docketbird_mcp.py"
],
"env": {
"DOCKETBIRD_API_KEY": "YOUR_KEY"
}
}
}
}
The server uses OAuth 2.0 with PKCE for HTTP mode. Each user registers with their own DocketBird API key, which is stored server-side and attached to OAuth tokens. The SDK handles the protocol endpoints automatically:
/.well-known/oauth-authorization-server - OAuth metadata discovery/register - Dynamic Client Registration/authorize - Authorization endpoint (redirects to /login)/token - Token exchange and refreshIn stdio mode, the DOCKETBIRD_API_KEY env var is used directly (no OAuth).
mcpuserDownloads — where files go: over a remote (HTTP) connection the download tools return document content and links to your client; a
save_pathis ignored (it would write to the server, not your machine). In local stdio mode, pass asave_pathto save to your own machine.
Install the dev extras and run the test suite:
uv pip install -e ".[dev]" # or: pip install -e ".[dev]"
pytest
The suite (tests/) runs fully offline — network calls are faked — and covers
the security helpers (path/URL validation, filename sanitization), pagination
math, the rate limiter, error formatting, the streaming download size cap, and
the remote-vs-local download behavior (inline content / links vs save-to-disk).
For a deeper look at how the server is wired together (OAuth flow, request lifecycle, database schema, security model), see docs/ARCHITECTURE.md.
No DocketBird API key available: in stdio mode set DOCKETBIRD_API_KEY;
in HTTP mode complete the OAuth login at /signup → connect from Claude.SERVER_URL exactly
matches the public URL clients use (scheme + host, no trailing slash)./change-api-key.
It validates the new key against DocketBird and clears stale access tokens so
the new key takes effect immediately.Deployed via Docker and GitHub Actions. Pushes to main trigger automatic deployment.
app.docketbird-mcp.comdocketbird-data at /app/data (SQLite auth database)https://app.docketbird-mcp.com/health — returns
{"status":"ok","service":"docketbird-mcp","version":"<git-sha>"}, where
version is the deployed commit (set by the deploy workflow via GIT_SHA), so
a single curl confirms exactly which build is live.docker build -t docketbird-mcp:latest .
docker run -d \
--name docketbird-mcp \
--restart=always \
-e SERVER_URL="http://localhost:8040" \
-v docketbird-data:/app/data \
-p 8040:8080 \
docketbird-mcp:latest
courts.json - Court codes and namescase_types.json - Case type abbreviations and examplesThis project is built upon the original docketbird-mcp developed in conjunction with @federicoburman and the Gravix.AI team.
Выполни в терминале:
claude mcp add docketbird-mcp-server -- npx CSA PROJECT - FZCO © 2026 IFZA Business Park, DDP, Premises Number 31174 - 001
Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.