Skip to main content
Cursor connects to AiLunaPro over HTTP and reads your MCP key from an environment variable, so the key never appears in the configuration file.

Prerequisites

  • MCP access for your organisation and the owner role.
  • An MCP key from Settings → Organization → AI client access (MCP) → Create key.
  • Cursor installed.

Set up

1

Set the AILUNAPRO_MCP_KEY variable permanently

Cursor reads environment variables when it starts, so set the variable for your user account, not just one terminal.
Expected: no output. Open a new PowerShell window and check:
2

Add the server to your global mcp.json

Open (or create) the global file, so the server is available in every project and stays out of repositories:
mcp.json
If the file already has other servers, add only the "ailunapro": { … } entry inside mcpServers.
3

Restart Cursor and check

Quit Cursor completely and open it again. Open Cursor Settings → MCP (or Tools & MCP). ailunapro should show a green status and 3 tools.
Cursor MCP settings showing ailunapro enabled with three toolsCursor MCP settings showing ailunapro enabled with three tools
4

Ask a question

In the Agent chat:Start with a test that needs no audit:
The client runs docs_search_product and quotes AiLunaPro’s product help about reports. If you see that answer, the connection works.Then ask about your own audit:
“No matching audit was found for your account” means your organisation has no completed Audit Express yet. Complete one in AiLunaPro, then ask again.
Cursor does not support VS Code-style inputs password prompts in mcp.json. Use the environment variable shown above.

Troubleshooting

  • Cursor started before the variable existed. Quit Cursor fully and open it again (on Windows, sign out and back in if it still fails).
  • Check the file is valid JSON and that ailunapro sits inside mcpServers.
  • Test the key directly; see the curl check in Troubleshooting.
That happens when Cursor tries OAuth. Check that the headers block is present and spelled exactly as above, then restart Cursor.
Remote sessions read ~/.cursor/mcp.json and environment variables on the remote host. Set AILUNAPRO_MCP_KEY and the file there too.
More cases: Troubleshooting.
Last modified on November 29, 2026