Open Agreements
Fill standard legal agreement templates (NDAs, SAFEs, NVCA docs, employment contracts) as DOCX files. Remote MCP server — no install required. MIT licensed.
OpenAgreements
English | Español | 简体中文 | Português (Brasil) | Deutsch
Demo: Claude fills a Common Paper Mutual NDA in under 2 minutes. Sped up for brevity.
Fill standard legal agreement templates and get signable DOCX files. 41 templates covering NDAs, cloud service agreements, employment docs, contractor agreements, SAFEs, and NVCA financing documents.
Works with Claude Code, Gemini CLI, and Cursor.
Install
npm install -g open-agreements
Or run directly with zero install:
npx -y open-agreements@latest list
Quick Start
With Claude Code (zero install)
Just ask Claude:
> Fill the Common Paper mutual NDA for my company
Claude discovers templates, interviews you for field values, and renders a signed-ready DOCX. No install needed — Claude runs npx on demand.
With Gemini CLI
gemini extensions install https://github.com/open-agreements/open-agreements
Then ask Gemini to draft an agreement.
With the CLI
# See all available templates
open-agreements list
# Fill a template from a JSON data file
open-agreements fill common-paper-mutual-nda -d values.json -o my-nda.docx
# Fill with inline values
open-agreements fill common-paper-mutual-nda --set party_1_name="Acme Corp" --set governing_law="Delaware"
Example Prompts
- "Draft an NDA for our construction subcontractor"
- "Create a consulting agreement for our insurance agency"
- "Fill the independent contractor agreement for a freelance designer"
- "Generate a SAFE with a $5M valuation cap"
What Happens
- The agent runs
list --jsonto discover templates and their fields - It interviews you for field values (grouped by section, a few at a time)
- It runs
fill <template>to render a DOCX preserving all original formatting - You review and sign the output document
Templates
41 templates across 7 categories. Run open-agreements list for the full inventory.
- NDAs — Mutual and one-way (Common Paper, Bonterms)
- Cloud & SaaS — Cloud service agreements, order forms, SLAs, pilot agreements, software licenses
- Services & Contractors — Professional services, independent contractor, SOW (Common Paper, Bonterms)
- Employment — Offer letter, IP assignment, confidentiality acknowledgement, restrictive covenant
- Data Privacy — DPA, BAA, AI addendum (Common Paper)
- SAFEs — Valuation cap, discount, MFN, pro rata side letter (Y Combinator)
- Venture Financing — Stock purchase, certificate of incorporation, investors' rights, voting, ROFR, indemnification, management rights letter (NVCA)
Internal templates are CC BY 4.0. YC SAFEs are CC BY-ND 4.0 (vendored unchanged). NVCA documents are downloaded on demand from nvca.org (not bundled).
What Gets Installed
open-agreements/
bin/ # CLI entry point
dist/ # Compiled TypeScript
content/
templates/ # Fillable DOCX templates with {tag} placeholders
external/ # YC SAFE templates (vendored unchanged)
skills/ # Agent skill definitions (Claude Code, Gemini, Cursor)
server.json # MCP server manifest
gemini-extension.json # Gemini CLI extension config
README.md, LICENSE
NVCA recipe templates (7) are downloaded at runtime — not bundled in the package.
CLI Reference
list
Show available templates with license info and field counts.
open-agreements list
# Machine-readable JSON (for agent skills and automation)
open-agreements list --json
fill <template>
Render a filled DOCX from a template.
# From a JSON data file
open-agreements fill common-paper-mutual-nda -d data.json -o output.docx
# With inline --set flags
open-agreements fill common-paper-mutual-nda --set party_1_name="Acme Corp" --set governing_law="Delaware"
validate [template]
Run the validation pipeline on one or all templates.
open-agreements validate # All templates
open-agreements validate common-paper-mutual-nda # One template
Agent Setup Details
Claude Code — Agent Skill
npx skills add open-agreements/open-agreements
Then ask Claude to draft an agreement. Claude discovers available templates, interviews you for field values, and renders a signed-ready DOCX.
Gemini CLI — Extension
gemini extensions install https://github.com/open-agreements/open-agreements
The extension provides MCP tools, context files, and skills for template discovery and filling.
Cursor — Plugin
This repository includes a Cursor plugin manifest at .cursor-plugin/plugin.json with MCP wiring in mcp.json.
Local vs. Hosted Execution
OpenAgreements supports two execution modes:
- Local (
npx, global install, or stdio MCP): all processing happens on your machine. No document content leaves your machine. - Hosted (
https://openagreements.org/api/mcp): template filling runs server-side for fast setup. No filled documents are stored after the response.
Choose based on document sensitivity and workflow needs. See docs/trust-checklist.md for a 60-second data-flow summary.
Privacy
- Local mode (
npx, global install, stdio MCP): all processing happens on your machine. No document content is sent externally. - Hosted mode (
https://openagreements.org/api/mcp): template filling runs server-side. No filled documents are stored after the response is returned.
See our Privacy Policy for details.
Built With OpenAgreements
- Safe Clause — AI-powered contract platform for startups. #1 on vibecode.law, March 2026.
Building on OpenAgreements? Open a PR to add your project.
See Also
- safe-docx — surgical editing of existing Word documents with coding agents (MCP server)
Contributing
See CONTRIBUTING.md for how to add templates, recipes, and other improvements.
License
MIT. Template content is licensed by their respective authors — CC BY 4.0 (Common Paper, Bonterms), CC BY-ND 4.0 (Y Combinator), or proprietary (NVCA, downloaded at runtime). See each template's metadata.yaml for details.
This tool generates documents from standard templates. It does not provide legal advice. Consult an attorney for legal guidance.
Serveurs connexes
MCP Prompt Manager
A server for managing local prompt files, allowing AI models to create, retrieve, update, and delete them.
iMCP
A macOS app that connects your digital life with AI, providing access to Calendar, Contacts, Location, Maps, Messages, Reminders, and Weather services.
YNAB
Access and manage your YNAB (You Need A Budget) data through MCP-enabled clients.
ComplianceCow MCP Server
Provides AI agents with compliance insights, auditable responses, and actions like ticket creation and policy fixes.
FireHydrant
An MCP server for interacting with the FireHydrant incident management platform API.
MCP Atlassian Server
Integrate Atlassian products like Confluence and Jira with the Model Context Protocol.
Shared Memory
Provides shared memory for agentic teams to improve token efficiency and coordination.
Productive.io
Interact with the Productive.io API for project management and productivity tasks.
Dynamics 365
Interact with Microsoft Dynamics 365 for customer relationship management.
Gatherings
A server for managing gatherings and sharing expenses.