OpenAgreements Contract Templates MCP

OpenAgreements provides local MCP tools to discover contract templates, retrieve source material and fill agreement documents.

Local serverstdioTypeScriptApache-2.0

What is the OpenAgreements Contract Templates MCP Server?

OpenAgreements provides local MCP tools to discover contract templates, retrieve source material and fill agreement documents.

Discover a form before drafting

The contract-templates package exposes a catalogue of templates and supporting legal content. Use list_content to discover stable identifiers, then get_content to retrieve the actual item. Template filling produces documents from supplied fields; it does not establish that a form suits a particular transaction or jurisdiction.

Choose the correct package

The documented npm package runs locally over stdio. It is separate from the contracts-workspace server, which organizes repository and catalogue workflows. Some practice guides, checklists and surveys require a local OpenAgreements checkout because they are not bundled into the template package. When those resources are unavailable, the catalogue reports the missing content types.

Inspect the resulting document

Start with a sample template and fictional parties, then compare the completed DOCX with the template and field values. The APAP pilot covers a limited eligible template rather than every agreement in the catalogue. Review provenance, clauses and unresolved placeholders before using a generated document in a real transaction.

Project documentation

Repository and setup guide

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_templatesList fillable agreement templates.
get_templateRetrieve a selected template definition.
list_contentDiscover templates, guides, checklists and surveys.
get_contentRetrieve canonical content and provenance by content ID.
fill_templateFill a selected agreement template.
get_apap_templateExport an eligible APAP template.
create_apap_agreement_docxRender APAP agreement data to a local DOCX file.
get_forms_survey_evidenceRetrieve published forms-survey evidence.

How to install the OpenAgreements Contract Templates MCP Server

{
  "mcpServers": {
    "contract-templates-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@open-agreements/contract-templates-mcp"
      ]
    }
  }
}

Configuration

Node.js 20 or later. A repository checkout is needed for content types not bundled in the package.

Frequently asked questions

No. Some guides, checklists and surveys require a repository checkout; unavailable content types are reported by the catalogue.