open-agreements/open-agreements
π π βοΈ π π§ πͺ - Fill standard legal agreement templates (NDAs, SAFEs, NVCA docs, employment, cloud terms) and produce signable DOCX files.
Quick Install
{
"mcpServers": {
"open-agreements-open-agreements": {
"command": "npx",
"args": [
"-y",
"open-agreements-open-agreements"
]
}
}
}Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.
Documentation Overview
OpenAgreements
OpenAgreements helps people and software agents find primary-source-backed U.S. legal guidance and produce reviewable DOCX files from standard agreement templates.
What OpenAgreements does
- Publishes jurisdiction-specific practice guides with citations to primary law.
- Provides standard agreement templates with source and license metadata.
- Fills templates locally through a CLI or over MCP.
- Publishes review checklists and comparison surveys in human- and machine-readable formats.
OpenAgreements provides legal information and document mechanics, not legal advice. It does not decide whether a form or clause is right for a transaction, and generated documents are drafts for human review.
The projectβs longer-term goal is a citable conformance layer for legal AI: primary law becomes inspectable requirements, an AI can check a document against them, and a lawyer owns the final call. Read Why OpenAgreements Exists for the rationale; this README stays focused on using the project.
Fill your first agreement
Install the CLI locally, inspect the available forms, and fill the Common Paper Mutual NDA:
npm install -g open-agreements
open-agreements list
open-agreements fill common-paper-mutual-nda \
--set party_1_name="Jane Doe" \
--set party_1_company="Acme Manufacturing, Inc." \
--set party_2_name="John Smith" \
--set party_2_company="Northeast Logistics LLC" \
--set effective_date="2026-07-15" \
--set purpose="Evaluating a potential logistics relationship" \
--output mutual-nda.docx
The last command writes mutual-nda.docx. Open it in Word or another DOCX
viewer and review every filled term before signature. Defaults supply the
standard one-year term, Delaware governing law, and other omitted cover terms;
the CLI reports any priority fields that still need attention.
For a complete, copyable example and field-review steps, follow the quick start.
Understand the workflow
standard form + source and license metadata
β supplied field values
β validation and local rendering
β reviewable DOCX
β human legal and business review
The standard form is authoritative until rendering. Your supplied values become the transaction-specific inputs. The generated DOCX is an output for review; it is never automatically accepted or signed.
The legal-content path is separate: practice guides cite primary sources, surveys compare jurisdictions, and checklists turn requirements into review steps. Those materials can inform a decision, but they do not mutate an agreement.
Choose your next step
- Install OpenAgreements β choose local CLI, local MCP, or hosted MCP.
- Fill a standard agreement β complete the canonical workflow end to end.
- Use legal guidance and checklists β find the right human- or machine-readable source.
- Connect an AI agent β configure Claude Code, Codex CLI, Cursor, or Gemini CLI.
- Browse the full catalog β templates, guides, surveys, checklists, skills, and packages.
- Understand system boundaries β follow content and documents through the system.
- Contribute β change code, documentation, templates, or field-selectors.
Links: Website | Template Catalog | Docs | Trust | npm
Privacy and document handling
- Local CLI and local stdio MCP processing stay on your machine.
- Hosted MCP template filling runs server-side; filled documents are not stored after the response is returned.
- Some field-selector workflows download an official source document at runtime.
Choose an execution mode that matches your document-sensitivity and internal policy requirements. See the trust-boundary status and security policy.
License
Project code is licensed under Apache License 2.0. Content retains its
source-specific license. See the licensing reference
and each template's metadata.yaml before redistribution or modification.