The decision platform for engineering teams. CLI and MCP server for LexQ
- ✓Open-source license (Apache-2.0)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add lexq-cli -- npx -y @lexq/cli{
"mcpServers": {
"lexq-cli": {
"command": "npx",
"args": ["-y", "@lexq/cli"]
}
}
}MCP Servers overview
# LexQ CLI
> **The Decision Operations Platform for engineering teams.**
> CLI and MCP server for [LexQ](https://lexq.io) — move business rules out of
> your deploy pipeline, prove every change with Impact Simulation, and ship without
> a git push.
**[Website](https://lexq.io)** · **[Docs](https://docs.lexq.io)** · **[Console](https://console.lexq.io)**
[](https://www.npmjs.com/package/@lexq/cli)
[](LICENSE)
---
## Why LexQ?
Your business rules — pricing, promotions, fee logic, eligibility checks —
change often. But every change ships through the same PR → review → staging
→ deploy cycle as your core application code. A one-line discount rule
takes two weeks.
This is an architectural problem, not a process problem. Business logic
that changes weekly shouldn't live in code that ships quarterly.
**LexQ separates the two.** Rules live outside your application. You change
them in a visual console or through this CLI. You prove every change with
Impact Simulation against real execution data. You deploy without touching
your codebase.
Every decision leaves a full audit trace.
## Install
```bash
npm install -g @lexq/cli
```
Or run without installing:
```bash
npx @lexq/cli
```
Requires **Node.js 22+**.
## Quick Start
```bash
# 1. Authenticate
lexq auth login
# Enter your API key (create one at console.lexq.io → Management → API Keys)
# 2. Verify
lexq auth whoami
# 3. Start from a domain template — provisions facts, sample rules, and a policy group
lexq domain-templates list
lexq domain-templates apply --template ECOMMERCE
# Returns: policyGroupId, policyVersionId, factsCreated, rulesCreated
# 4. Test a rule against your data before shipping
lexq analytics dry-run --version-id <VERSION_ID> --debug \
--json '{"facts":{"loyaltyTier":"PLATINUM","purchaseSubtotalUsd":150}}'
# 5. Deploy
lexq deploy publish --group-id <GROUP_ID> --version-id <VERSION_ID> --memo "v1"
lexq deploy live --group-id <GROUP_ID> --version-id <VERSION_ID> --memo "Initial deploy"
```
## For AI Agents — the Complete Partner API
LexQ is designed to be AI-native. The entire policy engine Partner API is
exposed via Model Context Protocol. Claude, Cursor, and other MCP-compatible
agents can create, simulate, and deploy rules autonomously, with human approval
before production.
### Claude.ai (Cloud — no install)
1. **Settings → Connectors → Add Custom Integration**
2. Enter: `https://mcp.lexq.io`
3. Sign in with your LexQ account and select an API key
4. Done — the full toolset available in every conversation
### Remote (Streamable HTTP)
For any MCP client that supports remote servers:
```json
{
"mcpServers": {
"lexq": {
"url": "https://mcp.lexq.io"
}
}
}
```
OAuth 2.1 authentication is handled automatically by your client.
### Local (stdio)
Run LexQ CLI as a local MCP server:
```bash
lexq serve --mcp
```
#### Claude Desktop
Add to `claude_desktop_config.json`:
```json
{
"mcpServers": {
"lexq": {
"command": "npx",
"args": [
"-y",
"@lexq/cli",
"serve",
"--mcp"
]
}
}
}
```
#### VS Code / Cursor
`.vscode/mcp.json`:
```json
{
"servers": {
"lexq": {
"command": "npx",
"args": [
"-y",
"@lexq/cli",
"serve",
"--mcp"
]
}
}
}
```
> **Prerequisite:** `lexq auth login` must have been run once to store an
> API key in `~/.lexq/config.json`.
## AI Agent Skills
LexQ CLI ships with **AI Agent Skills** — structured documentation agents
read to understand *how* to use the tools, not just *what* they are.
```
skills/
├── lexq-shared/SKILL.md Core concepts, auth, workflow
├── lexq-groups/SKILL.md Policy groups, conflict resolution, A/B testing
├── lexq-rules/SKILL.md Condition syntax, action types, mutex
├── lexq-simulation/SKILL.md Dry run, Impact Simulation, compare
├── lexq-execution/SKILL.md History, stats, failure logs, provenance, replay, latency profile
└── lexq-recipes/SKILL.md End-to-end recipes
.claude/CLAUDE.md Claude Code project context
AGENTS.md Universal agent guide (Cursor, Windsurf, Gemini CLI, Cline)
CONTEXT.md Platform architecture & glossary
```
After installing `@lexq/cli`, agents can read skills from:
```
node_modules/@lexq/cli/skills/
node_modules/@lexq/cli/AGENTS.md
node_modules/@lexq/cli/CONTEXT.md
```
## Commands
```
lexq auth login | logout | whoami
lexq status API health check
lexq serve Run as MCP stdio server (--mcp)
lexq groups list | get | create | update | delete | reorder
lexq groups ab-test start | stop | adjust
lexq versions list | get | create | update | delete | clone
lexq rules list | get | create | update | delete | reorder | toggle
lexq facts list | create | update | delete | action-metadata | unregistered
lexq domain-templates list | preview | apply
lexq deploy publish | live | rollback | undeploy | history | detail | overview | deployable | diff | schedule | unschedule | schedules
lexq analytics dry-run | dry-run-compare | requirements
lexq analytics simulation start | status | list | cancel | export
lexq analytics dataset upload | template
lexq profile <groupId> — per-rule latency profile
lexq history list | get | stats
lexq replay decision | start | list | get | cancel
lexq logs list | get | action | bulk-action
lexq provenance get | reveal-audits
lexq webhook-subscriptions list | get | save | delete | test
```
## Global Options
| Flag | Description |
|--------------------------|--------------------------------------------|
| `--format <json\|table>` | Output format (default: `json`) |
| `--api-key <key>` | Override stored API key |
| `--base-url <url>` | Override API base URL |
| `--dry-run` | Preview the HTTP request without executing |
| `--verbose` | Show request/response details |
| `--no-color` | Disable colored output |
## Configuration
Config is stored at `~/.lexq/config.json`:
```json
{
"apiKey": "YOUR_API_KEY",
"baseUrl": "https://api.lexq.io/api/v1/partners",
"format": "json"
}
```
## Development
```bash
git clone https://github.com/lexq-io/lexq-cli.git
cd lexq-cli
pnpm install
pnpm build
pnpm start -- groups list
```
```bash
pnpm typecheck # Type check
pnpm lint # ESLint
pnpm test:fact-key # Fact key grammar
pnpm test:decimals # Metric precision display
```
## License
[Apache-2.0](LICENSE)What people ask about lexq-cli
What is lexq-io/lexq-cli?
+
lexq-io/lexq-cli is mcp servers for the Claude AI ecosystem. The decision platform for engineering teams. CLI and MCP server for LexQ It has 0 GitHub stars and its last recorded update is dated 2026-09-09.
How do I install lexq-cli?
+
You can install lexq-cli by cloning the repository (https://github.com/lexq-io/lexq-cli) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is lexq-io/lexq-cli safe to use?
+
Our security agent has analyzed lexq-io/lexq-cli and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains lexq-io/lexq-cli?
+
lexq-io/lexq-cli is maintained by lexq-io. The last recorded GitHub activity is dated 2026-09-09, with 1 open issues.
Are there alternatives to lexq-cli?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy lexq-cli to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/lexq-io-lexq-cli)<a href="https://claudewave.com/repo/lexq-io-lexq-cli"><img src="https://claudewave.com/api/badge/lexq-io-lexq-cli" alt="Featured on ClaudeWave: lexq-io/lexq-cli" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!