Skip to main content
Glama

LexPact MCP Server

Exposes the LexPact contract generation API to Claude Desktop (or any MCP client) as three tools: list_contract_templates, generate_contract, get_contract. Thin proxy only — all validation and generation happens server-side at https://lexpact.co.uk/api/v1, so structured, LLM-actionable error messages reach Claude unchanged.

Setup

  1. Get an API key at lexpact.co.uk/dashboard/api-keys.

  2. Install dependencies:

    cd mcp-server
    npm install
  3. Add to your Claude Desktop config (claude_desktop_config.json — Settings → Developer → Edit Config):

    {
      "mcpServers": {
        "lexpact": {
          "command": "node",
          "args": ["/absolute/path/to/mcp-server/index.js"],
          "env": {
            "LEXPACT_API_KEY": "lp_live_your_key_here"
          }
        }
      }
    }
  4. Restart Claude Desktop. Ask it to draft a contract — it will call list_contract_templates and generate_contract as needed.

Related MCP server: Precedent

Environment variables

Var

Required

Purpose

LEXPACT_API_KEY

Yes

Your LexPact API key.

LEXPACT_API_BASE_URL

No

Override the API base URL (defaults to https://lexpact.co.uk/api/v1) — useful for testing against a local dev server.

Manual test

LEXPACT_API_KEY=lp_live_... node index.js

Then connect any MCP client (e.g. the MCP Inspector: npx @modelcontextprotocol/inspector node index.js).

Available Tools

3 tools
generate_contractGenerate a contractA

Generate a UK jurisdiction-aware contract (nda, service_agreement, freelance_agreement, recruiter_terms_of_business, or ir35_agreement). Collect all required fields through conversation before calling — never invent party names, addresses, dates, or amounts. On a validation error, read error.suggestion in the response and fix the request yourself.

Inputs: parties (required), jurisdiction (required), contract_type (required), scope_of_work (required), +12 more.

get_contractGet a previously generated contractA

Retrieve a contract by id. Returns status "processing" while generation is still running (call again in about 30 seconds) and "completed" with the contract once done. content_markdown is always populated regardless of the original output_format — PDF URLs are only returned once, inline, by generate_contract.

Inputs: id (required).

list_contract_templatesList LexPact contract templatesA

List the 5 contract types LexPact can generate, their required/optional fields, and party role labels. Call this first if you don't already know the field requirements for a contract_type.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool targets a distinct phase of the lifecycle: discovery (list_contract_templates), creation (generate_contract), and retrieval (get_contract). The descriptions explicitly sequence them ('call this first', 'retrieve by id'), leaving no plausible misselection.

    Naming Consistency5/5

    All three tools follow a strict verb_noun snake_case pattern (list_/generate_/get_ + contract object). Terminology is stable across names and descriptions.

    Tool Count4/5

    Three tools is on the lean side, but each covers a necessary step and the server's scope is deliberately narrow (contract generation only). No tool feels redundant or padded.

    Completeness3/5

    The create-and-poll workflow is covered, but there is no way to list existing contracts, re-fetch a PDF URL after the initial generate response, or update/cancel a contract. Agents that lose the generate response or need an inventory are left with dead ends.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      C
      maintenance
      A production-quality MCP server that exposes the official eCFR API as structured tools for AI-driven contract compliance, enabling retrieval of relevant Code of Federal Regulations by clauses extracted from contracts.
      8
      -
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to search and retrieve contract intelligence over public contract data, with agent skills for precedent lookup, negotiation checks, and risk flagging, all with verification and citations.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to create and manage contract templates, draft agreements by filling in template variables and signers, send documents out for legally binding e-signature, and track signer status as signatures come in. It runs as a hosted remote server, so there is nothing to install or self-host.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables users to query, create, and manage contracts in plain English from any MCP client, including drafting and sending agreements, tracking renewals and signers, and building templates. It supports OAuth-authenticated workflows with safe defaults such as creating drafts and confirming before sending or changing live agreements.
      MIT