mcpField
L
LexPact UK Contracts

LexPact UK Contracts

Local
github.com/IdadabhaiLegal & Government0Updated 6d ago

About LexPact UK Contracts

LexPact UK Contracts is an MCP server that exposes LexPact’s UK-law contract generation API to Claude Desktop and other MCP clients. It provides tools to browse templates, generate contracts and retrieve them, while API-side validation and generation remain on LexPact’s service.

Key features

  1. 01List contract templates
  2. 02Generate contracts
  3. 03Retrieve contracts
  4. 04Pass structured API errors through unchanged

Use cases

  1. 01Browse available UK contract templates
  2. 02Draft an NDA or service contract
  3. 03Retrieve a previously generated contract

MCP support

Exposes LexPact’s API to MCP clients through `list_contract_templates`, `generate_contract` and `get_contract` tools. An API key is required.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"idadabhai-lexpact": {
"command": "npx",
"args": [
"-y",
"lexpact-mcp-server"
],
"env": {
"LEXPACT_API_KEY": "<LEXPACT_API_KEY>"
}
}
}
}
Run commandnpx -y lexpact-mcp-server
Environment variables to set
LEXPACT_API_KEYSecretYour LexPact API key (lp_live_…) from https://lexpact.co.uk/dashboard/api-keys

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmlexpact-mcp-server1.0.1

Tools

3

Saved tool list · updated 6d ago

This tool takes no parameters.

Details

From the project README

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.

Environment variables

VarRequiredPurpose
LEXPACT_API_KEYYesYour LexPact API key.
LEXPACT_API_BASE_URLNoOverride 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).

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.