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
- 01List contract templates
- 02Generate contracts
- 03Retrieve contracts
- 04Pass structured API errors through unchanged
Use cases
- 01Browse available UK contract templates
- 02Draft an NDA or service contract
- 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.
npx -y lexpact-mcp-serverLEXPACT_API_KEYSecretYour LexPact API key (lp_live_…) from https://lexpact.co.uk/dashboard/api-keysLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
3Saved tool list · updated 6d ago
This tool takes no parameters.
Details
From the project READMELexPact 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
- Get an API key at lexpact.co.uk/dashboard/api-keys.
- Install dependencies:
cd mcp-server npm install - 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" } } } } - Restart Claude Desktop. Ask it to draft a contract — it will call
list_contract_templatesandgenerate_contractas needed.
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).
Comments
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.