> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Cursor to Nixflex with MCP

> Connect Cursor to the Nixflex MCP server using private environment variables, verify the tools and try five prompts with clear approval and action limits.

**FIXED · platform** Raw HTTP base URL: `https://api.nixflex.com/v1`. Node and Python SDK base URL: `https://api.nixflex.com`. The SDK adds `/v1`. Keep the credential on your server.

**NOT OFFERED → do this instead · platform** There is one public API: `https://api.nixflex.com/v1`. There is no sandbox. Test with your own number on production. Use local fixtures when you do not need a real call or text.

**YOU CAN CHANGE · account** Rotate the credential and update its callers together.

**SCOPE · account** A platform uses one Nixflex account for all its businesses, with one agent per business or a shared agent. Separate accounts only when businesses sign up themselves. No platform account-creation loop. Sub-accounts are not offered. Authorise each tenant on your server.

In Help choose New request for a capacity review, complaint or problem, abuse report, or other issue. Follow Your open chats. Owners and Admins see organisation tickets. Members see their own while authorised. Close chat removes it from the open list. A staff-closed chat can surface until its final reply is read. `POST /v1/support/tickets/chat-summary` is a read. Use watch\_ticket to check a displayed ticket outside the current page.

Use /v1/support/tickets. A personal session sends X-Nixflex-Expected-Account with the original workspace’s public key\_id for list, detail, chat-summary, writes and receipt lookup. Organisation keys select their own account. On 409 account\_changed, discard the stale draft and refresh Help in the intended workspace.

Create, reply and solve each need an Idempotency-Key. Reply uses X-Expected-Revision. Solve sends version in JSON. Lost response? The original person can `GET /v1/support/tickets/requests/{request_key}` with the original account header. A 200 returns the current ticket and original receipt. 404 means missing or inaccessible. Never resend in a different workspace. Organisation keys can replay only the identical write with its key, body and revision.

[Read the compact AI rules](https://docs.nixflex.com/ai-rules.md#account-access)

Connect Cursor to a local Nixflex MCP process for your selected account.

Building an app? [Developer version](https://docs.nixflex.com/sdks/mcp.md).

Connection: **Local Node process** · Configuration: **mcp.json** · Tools: **97** · Secrets: **Environment references**

**The important part**

* Use MCP 0.5.0 or later. It exposes 97 tools.
* Keep the organisation key private. It gives account authority and does not inherit a Member’s dashboard restrictions.
* Approve the exact recipients and changes before actions that call, text, change settings or spend credit.
* Check an uncertain write before repeating it. Keep a saved call request ID and its exact inputs together.

## See how it works

Illustrative conversation between colleagues.

**Owner**\
Prepare a new returns-policy topic from these approved facts.**Cursor**\
I will read the current knowledge and show a draft with any conflicts.**Owner**\
Show me how to review and publish it in the dashboard. Do not use another route to bypass the missing knowledge-write tool.

## Connect

1. [Set up the MCP server](https://docs.nixflex.com/ai-tools/overview.md#install-the-mcp-server) with Node 22 or later.
2. Have your private launcher or secret manager provide `NIXFLEX_API_KEY` to Cursor. Fully restart Cursor from that environment. Never paste the key into chat or a config file.
3. Add the entry below to your user `~/.cursor/mcp.json`, preserving other servers. For project-only use, Cursor also supports `.cursor/mcp.json` in the project. The example contains variable references, not credentials.
4. Ensure npx is available to Cursor. On Windows, use `"command": "cmd.exe"` and `"args": ["/c", "npx", "-y", "nixflex-mcp"]` if the client needs an executable wrapper.
5. Open Cursor's MCP settings, check that Nixflex connects, and inspect the tool list before approving the read below.

```json theme={"dark"}
{
  "mcpServers": {
    "nixflex": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y", "nixflex-mcp"
      ],
      "env": {
        "NIXFLEX_API_KEY": "${env:NIXFLEX_API_KEY}",
        "NIXFLEX_BASE_URL": "https://api.nixflex.com",
        "NIXFLEX_CREDENTIAL_SOURCE": "environment"
      }
    }
  }
}
```

Cursor expands the environment references when starting the server. If npx is not on its path, use the full executable path. See [Cursor's MCP configuration](https://cursor.com/docs/mcp) for configuration locations and environment interpolation.

## Verify before editing anything

> Use Nixflex get\_usage only. Summarise usage without changing the account, making a call or sending a message. Do not show credentials.

Check for **97 tools** in this server. Keep approval of tool calls enabled. Not every older write tool has its own confirmation field. If a write times out, inspect current state instead of repeating it automatically. The four calendar and credential writes—calendar connect, settings, disconnect and number-credential update—require `confirm: true`; missing confirmation sends no request.

## Five prompts to try

### 1. Create an agent

> List my Nixflex agents and prepare a Willow Support agent for service questions. Show the instructions and proposed settings for my review. Use create\_agent only after I approve. Do not change project files, existing agents or phone numbers as part of this request.

### 2. Add knowledge through the dashboard

> Read Willow Support's existing knowledge with the Nixflex tools. Help me draft a new returns-policy topic using only the facts I provide. Show duplicate or conflicting facts, then give me dashboard review and publication steps. MCP cannot add or publish it; do not report success before I do that.

### 3. Check calls

> Find the latest five completed calls for Willow Support with Nixflex list\_calls. Summarise confirmed outcomes and unresolved questions without exposing caller contact details. Do not edit records or contact callers.

### 4. Prepare a calendar booking test

> Help me prepare calendar booking on one Nixflex number. List the numbers and let me choose. Explain the dashboard connection, opening hours and Google invite switch, then draft a test conversation with full-name spelling, email-local-part spelling, a domain spoken as words, and one combined read-back followed by one clear yes. There is no direct booking tool here; do not start a call, send SMS or invent an appointment result.

### 5. Read usage

> Read Nixflex get\_usage and explain the returned usage and balance in a small table. Use the actual returned period and mark missing figures unknown. Do not change billing, rotate a key or estimate charges that were not returned.

## Read booking and request results

Use `get_call_bookings` for a known call ID and `get_outbound_call_request` for a saved request ID. These tools read results without booking or dialling. Report missing or unavailable content honestly, and do not change project files or make direct API calls to bypass a missing tool. See [the call-result states and saved-request workflow](https://docs.nixflex.com/ai-tools/overview.md#check-bookings-and-uncertain-call-requests).

## What stays outside MCP

The server can create a ten-minute Google consent link for a human to open, check the connection, update settings and disconnect a number. The status read can refresh or check an existing connection internally. Disconnect cannot recall dispatched work or guarantee remote revocation; `send_invites` does not confirm delivery. Knowledge publishing and direct booking remain unavailable.

The number-credential tool takes only number, provider and confirmation; it reads the selected carrier pair from the server's private environment. If enabling it, add only that pair's variable references to the existing `env` object, using the same `${env:NAME}` form as above. Never insert their values or ask Cursor to inspect them. Follow [the exact private variable names and limits](https://docs.nixflex.com/ai-tools/overview.md#google-calendar-and-number-credentials). A request to create a call is a real outbound action and can spend credit. Review [capabilities and permissions](https://docs.nixflex.com/ai-tools/overview.md) before enabling writes.

Give Cursor [llms.txt](https://docs.nixflex.com/llms.txt) to find documentation, or [this Markdown page](https://docs.nixflex.com/ai-tools/cursor.md) for setup context. Reading docs is separate from accessing your account.

## Next

* [Manage calendar settings](https://docs.nixflex.com/ai-tools/calendar-settings.md)
* [Check call and booking results](https://docs.nixflex.com/ai-tools/call-results.md)
* [Prepare private number credentials](https://docs.nixflex.com/ai-tools/number-credentials.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.