# NextConstraint

> NextConstraint is a paid MCP server for analytics and data. Read your SaaS funnel's costliest leak and its fix from an AI coding agent. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API
- **Website:** https://nextconstraint.app/docs/mcp
- **MCP Registry name:** app.nextconstraint/nextconstraint
- **Categories:** analytics and data, developer tools
- **Listing updated:** 2026-11-14

## About

NextConstraint watches a product funnel and picks the one leak costing the most each month. This server lets Claude Code, Cursor or Claude Desktop read that workspace directly, pull the evidence, and fetch a ready-made fix prompt tuned for the tool you code in (Claude Code, Cursor, Lovable, Bolt, v0 or ChatGPT).

Seven tools cover status, the current constraint, alerts, single alerts, fix prompts, history of past fixes, and one write action that records a fix as shipped. When you pass the commit SHA just deployed, the re-check waits for that commit to reach production. Its docs state that nothing can touch your code, payments, analytics or site, and results carry counts and amounts, never customer names or emails.

Access uses a token starting with ncm_, created in Settings and sent as a bearer header. Each token reads one workspace and is limited to 60 calls a minute and 2,000 a day. The MCP server is part of the paid plan.

## Features

- **Constraint and fix lookup:** Returns the current leak, its monthly cost when picked, and the one fix to make.
- **Watchdog alerts:** Lists open and recent alerts, costliest first, with likely causes around the date.
- **Fix prompts per tool:** Generates the fix prompt in the format for Claude Code, Cursor, Lovable, Bolt, v0 or ChatGPT.
- **Fix history:** Shows past constraints and how each fix turned out.
- **Mark fix shipped:** Records a deployed fix, optionally with a commit SHA to time the re-check.
- **Token controls:** Per-workspace tokens with rate limits that can be revoked at once.

## Good for

- Ask an agent what is hurting funnel conversion most
- Fetch a fix prompt and apply it on a new branch
- Review this week's alerts
- Close the loop by marking a fix live

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http nextconstraint https://nextconstraint.app/mcp
```

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

```sh
https://nextconstraint.app/mcp
```

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

```json
{
  "mcpServers": {
    "nextconstraint": {
      "url": "https://nextconstraint.app/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "nextconstraint": {
      "type": "http",
      "url": "https://nextconstraint.app/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "nextconstraint": {
      "serverUrl": "https://nextconstraint.app/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "nextconstraint": {
      "type": "http",
      "url": "https://nextconstraint.app/mcp"
    }
  }
}
```

## Tools

- `get_status`: Funnel health right now: whether a constraint is locked and where its re-check stands, every funnel step priced in dollars per month (only while nothing is locked - while one is, the rest is re-priced once it resolves), what each watchdog check concluded, and which sources are connected. Start here.
- `get_current_constraint`: The locked constraint: which funnel step is leaking, what it cost per month when it was selected, the one fix NextConstraint prescribed (and any prep step), and how the fix will be measured. Returns state "none" when nothing is locked.
- `list_alerts`: Watchdog alerts: open issues, plus those closed or fixed in the last 30 days, most expensive first. Each has an id for get_alert, get_fix_prompt and mark_fix_done.
- `get_alert`: One watchdog alert in full: what moved and by how much, what it costs if it continues, the likely causes lined up against the days before it started (deploys, price changes, page changes, traffic-source shifts - possible, not certain), and what could not be checked.
- `get_fix_prompt`: A ready-to-use fix prompt, written by NextConstraint, for the current constraint (omit issue_id) or for one alert, in the format for the chosen coding tool. It carries the evidence, the task, safety rules (new branch, show the diff, never touch billing, auth, user data or secrets) and how to check the fix worked. After shipping, call mark_fix_done with the commit SHA (see the fix-workflow prompt) 
- `get_history`: Past constraints, newest first (up to 20): the leak, the fix tried, and how it ended - measured as better, no clear change or worse (with before and after), skipped as already done, dismissed, or not enough data.
- `mark_fix_done`: Record that a fix has shipped: the current constraint's fix (omit issue_id) or one alert's fix. Give commit_sha (and optionally branch) when the fix was a code change: NextConstraint waits for that exact commit to reach a production deploy before starting the re-check, so the window starts from when the fix actually went live, not from this call (see the fix-workflow prompt). Omit commit_sha to st

## FAQ

### Which tool writes data?

Only mark_fix_done, and it changes only NextConstraint's own record.

### How do I authenticate?

Create a token in Settings, Connect your AI agent. It starts with ncm_, is shown once, and goes in an Authorization bearer header.

### What are the limits?

60 tool calls a minute and 2,000 a day per token, scoped to one workspace.

### Is it free?

No. The docs say the MCP server is part of the paid plan.

### Is NextConstraint free?

No. NextConstraint is a paid product.

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

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

### What are the best alternatives to NextConstraint?

The closest alternatives to NextConstraint 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.
- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [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.

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