A two-sided legal platform connecting lawyers with clients (citizens and business owners), featuring AI-powered document processing, case management, and intelligent agent orchestration backed by 24+ public legal data sources.
Demo Link: https://www.youtube.com/watch?v=7Snf00f-hGw Devpost Link: https://devpost.com/software/adjourned
Ajourned is an AI-powered legal assistant system designed to:
- For Lawyers: Streamline case triage, document processing, and client management with AI-assisted recommendations
- For Citizens: Understand legal rights, get help with forms (W-2, immigration, loans), and access legal guidance
- For Business Owners: Navigate complex filings (patents, LLC, IPO/10-K), tax optimization, and regulatory compliance
The platform features a lawyer-in-the-loop learning system that continuously improves from human feedback.
┌─────────────────────────────────────────────────────────────────────────┐
│ FRONTEND (React + Vite) │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Case List │ │ Case Detail │ │ Forms View │ │ Dashboard │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘ │
└─────────────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────────────┐
│ BACKEND (FastAPI) │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │ Legal Orchestrator │ │
│ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ │
│ │ │ Research │ │ Document │ │ Forms │ │ Context │ │ │
│ │ │ Agent │ │ Agent │ │ Agent │ │ Agent │ │ │
│ │ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │ │
│ └─────────────────────────────────────────────────────────────────┘ │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │ Learning System (Human-in-the-Loop) │ │
│ └─────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────────────┐
│ MCP DATA SERVERS (24 Sources) │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ USPTO │ │CourtList │ │ LegiScan │ │SEC EDGAR │ │ CFPB │ │
│ │ Patents │ │ Case Law │ │ Bills │ │ Filings │ │Complaints│ │
│ └──────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ IRS │ │ USCIS │ │ eCFR │ │ GovInfo │ │ FL OIR │ │
│ │ Forms │ │ Forms │ │ Regs │ │ Docs │ │Insurance │ │
│ └──────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │
└─────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────┐
│ Cases [Alerts] │
│ ├─ Case #1234 - Smith v. Acme │
│ └─ Case #1235 - Jones Insurance │
└─────────────────────────────────────┘
┌─────────────────────────────────────┐
│ Case #1234 │
│ ┌─────────────────────────────────┐ │
│ │ Situation: Insurance dispute │ │
│ │ AI Recommendation: [analysis] │ │
│ │ │ │
│ │ [Edit] [Look Deeper] [Accept] │ │
│ │ │ │
│ │ Files | Transcripts | Timeline │ │
│ └─────────────────────────────────┘ │
└─────────────────────────────────────┘
┌──────────┬─────────────────────────┐
│ Forms │ Your Rights │
│ Rights │ ─────────────────────── │
│ Alerts │ Based on your situation │
│ │ you may be entitled to │
│ │ [detailed guidance] │
│ │ │
│ │ [Call Lawyer] │
└──────────┴─────────────────────────┘
Alerts:
• File your W-2 by April 15
• Copyright infringement detected
| Agent | Function |
|---|---|
| Research Agent | Legal research, case law lookup, statute analysis |
| Document Agent | Summarization, extraction, classification |
| Forms Agent | PDF form assistance, validation, auto-fill |
| Context Agent | User profile management, real-time processing |
| Educational Agent | Rights information, legal guidance |
| Records Agent | Database management, case organization |
The platform implements lawyer-in-the-loop learning:
- System finds similar cases via RAG
- Proposes AI-generated recommendation
- Lawyer reviews and edits (or accepts)
- Feedback captured for model improvement
- Future cases benefit from corrections
Supported learning modes: supervised, reinforcement, few-shot, one-shot, zero-shot
24 Model Context Protocol servers providing access to legal data:
| Server | Description | Tools |
|---|---|---|
uspto-mcp |
Patents, PTAB proceedings, litigation | 18 |
uspto-forms-mcp |
Patent application forms | 42 forms |
copyright-mcp |
U.S. Copyright Office registry | 14 |
| Server | Description | Tools |
|---|---|---|
courtlistener-mcp |
Case law, PACER/RECAP, judges | Largest free legal DB |
pacer-mcp |
Federal court documents | - |
| Server | Description | Tools |
|---|---|---|
legiscan-mcp |
All 50 states + Congress bills | 24 |
federal-register-mcp |
Federal Register documents | - |
ecfr-mcp |
Code of Federal Regulations | 15 |
openstates-mcp |
State legislative tracking | - |
uscode-mcp |
United States Code | - |
govinfo-mcp |
Government documents | 20 |
| Server | Description | Tools |
|---|---|---|
sec-edgar-mcp |
SEC corporate filings | - |
fdic-mcp |
FDIC bank information | - |
hmda-mcp |
Home Mortgage Disclosure Act | - |
fred-mcp |
Federal Reserve economic data | - |
usaspending-loans-mcp |
Federal lending programs | - |
cfpb-complaints-mcp |
Consumer complaint database | 17 |
| Server | Description | Tools |
|---|---|---|
irs-forms-mcp |
IRS tax forms library | - |
irs-irm-mcp |
IRS Internal Revenue Manual | - |
uscis-forms-mcp |
Immigration forms | - |
business-formation-forms-mcp |
FL business forms | - |
| Server | Description | Tools |
|---|---|---|
florida-insurance-mcp |
FL Office of Insurance Regulation | 14 |
| Server | Description |
|---|---|
openlaws-mcp |
Open Laws data |
municode-mcp |
Municipal codes |
- Search CFPB complaint database for similar cases
- Access FL OIR for insurer information
- Research relevant case law via CourtListener
- Search U.S. Copyright Office registry
- Find prior registrations and ownership
- Research related litigation
- Access SEC EDGAR for company filings
- Search CFPB for consumer complaints
- Review HMDA mortgage data
- USCIS form assistance
- Jurisdiction-aware guidance
- Document checklist generation
- LLC, patent, trademark filings
- State-specific requirements
- Tax optimization research
- React 18 + TypeScript
- Vite (dev server on port 3000)
- Radix UI (50+ accessible components)
- TailwindCSS (styling)
- React Hook Form (form management)
- Recharts (data visualization)
- FastAPI (Python, port 3002)
- DSPy (structured LLM interactions)
- Pydantic (data validation)
- Uvicorn (ASGI server)
- OpenAI (GPT-4)
- Anthropic (Claude)
- Google (Gemini)
- Mock provider (testing)
- Nginx reverse proxy
- Azure App Service
- EC2 deployment scripts
Swamphacks/
├── api/ # FastAPI backend
│ └── server.py # Main API (481 lines)
├── agents/ # AI agent system
│ ├── legal_agents.py # Agent blueprints (38KB)
│ ├── legal_orchestrator.py # Orchestration (35KB)
│ ├── learning.py # Human-in-the-loop (46KB)
│ ├── llm_providers.py # LLM abstraction (18KB)
│ └── learning_data/ # Training examples
├── src/ # React frontend
│ ├── components/
│ │ ├── ClientDashboard.tsx # Main dashboard (53KB)
│ │ ├── CaseDetail.tsx # Case view (16KB)
│ │ ├── FormsView.tsx # Legal forms
│ │ ├── TimelineView.tsx # Case timeline
│ │ └── ui/ # UI component library
│ └── App.tsx
├── data/ # 24 MCP servers
│ ├── uspto-mcp/
│ ├── legiscan-mcp/
│ ├── courtlistener-mcp/
│ ├── cfpb-complaints-mcp/
│ ├── copyright-mcp/
│ ├── florida-insurance-mcp/
│ └── ... (18 more)
├── tests/ # Test suite
├── deploy/ # Deployment configs
├── package.json # Frontend deps
├── requirements.txt # Backend deps
└── vite.config.ts
- Node.js 18+
- Python 3.10+
- API keys for LLM providers (OpenAI/Anthropic/Google)
npm install
npm run dev # Dev server at http://localhost:3000
npm run build # Production buildpython -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
# Set environment variables
export OPENAI_API_KEY=your_key
export PORT=3002
uvicorn api.server:app --host 0.0.0.0 --port 3002# Example: Start the CFPB complaints server
cd data/cfpb-complaints-mcp
npm install
npm start| Method | Endpoint | Description |
|---|---|---|
| GET | /health |
Health check |
| GET | /agents |
List all agents |
| POST | /process |
Process legal request |
| POST | /execute |
Execute single agent |
| GET | /reviews/pending |
Pending lawyer reviews |
| POST | /reviews/submit |
Submit lawyer feedback |
| GET | /learning/stats |
Learning system stats |
| GET | /learning/similar-cases |
Find similar cases |
pytest tests/ -vSample config at deploy/nginx.conf. Update server_name and SSL paths.
CI/CD configured in .github/workflows/deploy.yml
./deploy/setup_ec2.sh
./deploy/deploy_to_ec2.sh# Required
OPENAI_API_KEY=sk-...
# Optional
ANTHROPIC_API_KEY=...
GOOGLE_API_KEY=...
PORT=3002
LLM_MODEL_KEY=gpt-4
# MCP Server API Keys (where required)
LEGISCAN_API_KEY=...
COURTLISTENER_API_TOKEN=...
OPENSTATES_API_KEY=...- Fork the repository
- Create a feature branch
- Make changes with tests
- Submit a pull request
MIT
- SwampHacks hackathon team
- Model Context Protocol
- DSPy
- All public legal data providers