MCP Server

ClauseAI

io.github.wasauce/clauseai
Legal & Compliance Public & reachable MCP 2025-11-25

What this MCP does

Lists legal templates, exposes their fields, and generates completed NDAs, MSAs, DPAs, and other documents.

generate_document
Generate document
Use this after reading the field schema, to fill published fields and return markdown plus a download link. Do not invent clause text. Call it once per document: the result always includes the markdown text, download_url is the file in the requested format, and editable_download_url is a Word copy the user can edit. Answers are short values for the published fields; unknown keys, overlong values, and choices outside a field's options are rejected with instructions for fixing them.
Input schema
{'type': 'object', 'required': ['slug'], 'properties': {'slug': {'type': 'string', 'description': 'Template slug from list_templates.'}, 'format': {'type': 'string', 'default': 'pdf', 'description': 'pdf, docx, odt, or markdown. The download link uses this\nformat.'}, 'answers': {'anyOf': [{'type': 'object', 'additionalProperties': True}, {'type': 'null'}], 'default': None, 'description': 'Map of field keys to values, using only keys from\nget_template_fields. Leave out keys you cannot answer; they\nstay as placeholders. Do not send placeholder text. Dates\nare YYYY-MM-DD. Use __omit__ to remove a placeholder.'}}, 'additionalProperties': False}
Output schema
{'type': 'object', 'required': ['slug', 'title', 'format', 'filename', 'markdown', 'download_url', 'editable_download_url', 'answers'], 'properties': {'slug': {'type': 'string'}, 'title': {'type': 'string'}, 'format': {'type': 'string'}, 'answers': {'type': 'object', 'description': 'Answers as printed. ISO dates are written out in full.', 'additionalProperties': {'type': 'string'}}, 'filename': {'type': 'string'}, 'markdown': {'type': 'string', 'description': 'Filled template text for summarization. The file the user downloads is at download_url.'}, 'warnings': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Answers that were accepted but look wrong. Fix and regenerate, or pass each warning on to the user.'}, 'download_url': {'type': 'string', 'description': 'Absolute URL that downloads the rendered PDF, Word, ODT, or Markdown file.'}, 'unfilled_fields': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Field keys still shown as placeholders in the document. Tell the user these need completing before the document is used.'}, 'editable_download_url': {'type': 'string', 'description': 'Absolute URL for a Word (.docx) copy the user can edit before signing. Give it to the user with download_url.'}}, 'description': 'Filled template text plus a link to the rendered file.'}
get_template_fields
Get template fields
Use this after choosing a template slug, to read the fill-in fields before generating a document.
Read only Idempotent
Input schema
{'type': 'object', 'required': ['slug'], 'properties': {'slug': {'type': 'string', 'description': 'Template slug from list_templates.'}}, 'additionalProperties': False}
Output schema
{'type': 'object', 'required': ['slug', 'title', 'category', 'description', 'when_needed', 'source_url', 'fields'], 'properties': {'slug': {'type': 'string'}, 'title': {'type': 'string'}, 'fields': {'type': 'array', 'items': {'type': 'object', 'required': ['key', 'label', 'question', 'type', 'required'], 'properties': {'key': {'type': 'string'}, 'type': {'type': 'string'}, 'label': {'type': 'string'}, 'marks': {'type': 'array', 'items': {'type': 'integer'}}, 'options': {'type': 'array', 'items': {'type': 'string'}}, 'question': {'type': 'string'}, 'replaces': {'type': 'string', 'default': ''}, 'required': {'type': 'boolean'}, 'max_length': {'anyOf': [{'type': 'integer'}, {'type': 'null'}], 'default': None, 'description': 'Longest answer accepted, in characters. Null for choice fields, which must match one of options exactly.'}}, 'description': 'One fill-in field on a template.'}}, 'category': {'type': 'string'}, 'source_url': {'type': 'string'}, 'description': {'type': 'string'}, 'when_needed': {'type': 'string'}}, 'description': 'Field schema for one template.'}
list_templates
List templates
Use this when the user wants a startup legal document and you need to choose a template such as an NDA, MSA, DPA, privacy policy, terms of use, cookie notice, offer letter, advisor agreement, or business associate agreement.
Read only Idempotent
Input schema
{'type': 'object', 'properties': {}, 'additionalProperties': False}
Output schema
{'type': 'object', 'required': ['templates'], 'properties': {'templates': {'type': 'array', 'items': {'type': 'object', 'required': ['slug', 'title', 'category', 'description', 'when_needed', 'source_url', 'field_count'], 'properties': {'slug': {'type': 'string'}, 'title': {'type': 'string'}, 'category': {'type': 'string'}, 'source_url': {'type': 'string'}, 'description': {'type': 'string'}, 'field_count': {'type': 'integer'}, 'when_needed': {'type': 'string'}}, 'description': 'One template in the public catalog.'}}}, 'description': 'Templates the user can draft.'}
send_feedback
Send feedback
Use this when a template lacks a field or clause the user needs, no template fits the request, a tool result was wrong, or the user wants to tell the ClauseAI team something. The message goes to the ClauseAI operator. Do not include document text or personal details.
Open world
Input schema
{'type': 'object', 'required': ['message'], 'properties': {'slug': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'default': None, 'description': 'Template slug the feedback is about, if any.'}, 'email': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'default': None, 'description': 'Optional address for a reply. Only pass one the user gave you.'}, 'message': {'type': 'string', 'description': 'What you were trying to do and what was wrong or missing.\nUp to 4000 characters.'}, 'category': {'type': 'string', 'default': 'other', 'description': 'bug, missing_field, template_request, or other.'}}, 'additionalProperties': False}
Output schema
{'type': 'object', 'required': ['status', 'detail'], 'properties': {'detail': {'type': 'string'}, 'status': {'type': 'string'}}, 'description': 'Confirmation that feedback reached the ClauseAI operator.'}
Added
send_feedback
Oct. 5, 2026, 2:51 a.m.
Changed
generate_document
Oct. 5, 2026, 2:51 a.m.
Changed
get_template_fields
Oct. 5, 2026, 2:51 a.m.
Changed
list_templates
Oct. 5, 2026, 2:51 a.m.
Added
generate_document
Sept. 17, 2026, 12:53 p.m.
Added
get_template_fields
Sept. 17, 2026, 12:53 p.m.
Added
list_templates
Sept. 17, 2026, 12:53 p.m.