# LexQ

> LexQ is a freemium MCP server for developer tools. Manage, simulate and deploy business rules from an AI assistant over MCP or the CLI. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, API, Web
- **Website:** https://lexq.io
- **Repository:** https://github.com/lexq-io/lexq-cli
- **MCP Registry name:** io.lexq/lexq
- **Categories:** developer tools
- **Listing updated:** 2026-11-14

## About

LexQ moves business rules such as pricing, promotions, fee logic and eligibility out of application code. A service calls the LexQ API to evaluate them, and rules change through a visual console, the CLI or this MCP server without an application release.

The pitch is testing before shipping. Impact Simulation runs a change against past executions or an uploaded dataset, Decision Replay re-runs earlier traffic against a candidate version to show which decisions flip, and publishes are versioned and can be rolled back. Every decision keeps a trace of the rule that fired, the inputs and the version, held for 30 days on the Free plan and 730 days on Pro.

Over MCP, an agent can manage policy groups, versions, rules and facts, run simulations and replays, deploy versions and read execution history. Tools that delete, change live traffic or count toward usage are marked destructive so a client can ask first. Connect remotely at mcp.lexq.io with OAuth 2.1, or run the CLI locally with lexq serve --mcp (Node.js 22+). Domain templates cover checkout pricing, transfer approval, plan limits, claim triage and agent action approval.

## Features

- **Impact Simulation:** Tests a rule change against historical or uploaded data before deployment.
- **Decision Replay:** Re-runs past traffic on a candidate version to show which decisions flip.
- **Rule versioning:** Draft, review, publish and roll back rules with a recorded history.
- **Decision audit trail:** Keeps the rule, inputs and version for each decision.
- **Domain templates:** Starter facts and rules for e-commerce, fintech, SaaS, insurance and agent approvals.
- **Remote and local MCP:** Hosted endpoint with OAuth, or a local stdio server from the CLI.

## Good for

- Preview how a pricing threshold change affects real traffic
- Let an agent draft and deploy eligibility rules
- Answer an auditor by looking up why a decision was made
- Add an approval policy for actions taken by an AI agent

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http lexq https://mcp.lexq.io
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://mcp.lexq.io
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "lexq": {
      "url": "https://mcp.lexq.io"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "lexq": {
      "type": "http",
      "url": "https://mcp.lexq.io"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "lexq": {
      "serverUrl": "https://mcp.lexq.io"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "lexq": {
      "type": "http",
      "url": "https://mcp.lexq.io"
    }
  }
}
```

## FAQ

### How do I connect it?

Add https://mcp.lexq.io as a remote server in a client that supports it, or run npx @lexq/cli serve --mcp locally after lexq auth login.

### What does the free plan include?

1,000 executions a month, 100 simulated and 100 replayed records, 10 TPS and 30-day audit retention.

### How long are decisions kept?

730 days on Pro and longer on Enterprise by agreement.

### What Node version does the CLI need?

Node.js 22 or later.

### Is LexQ free?

LexQ has a free plan, with paid plans for more usage or features.

### How do I add LexQ to Claude Code?

Run this command in your terminal: claude mcp add --transport http lexq https://mcp.lexq.io

### What are the best alternatives to LexQ?

The closest alternatives to LexQ are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/lexq
