Connecting Cursor
Connect Cursor to ZopNight's MCP server to query your cloud infrastructure directly from your editor.
Before you start
Make sure you have completed the prerequisites — enable MCP for your organisation and create a Personal Access Token.
Setup
- Open Cursor
- Go to Settings
- Click Tools & MCP in the sidebar
- Click New MCP Server
- Paste the following JSON config
- Press Ctrl+S (or Cmd+S) to save
Configuration
{
"mcpServers": {
"zopnight": {
"url": "<server-url>",
"headers": {
"Authorization": "Bearer <your-token>"
}
}
}
}Note
- Replace
<server-url>with the Server URL copied from your Organisation Settings page or from the Developer Settings page while creating your PAT token. - Replace
<your-token>with your Personal Access Token (starts withzn_pat...).
Verify Connection
Once configured, ask Cursor's AI assistant:
List my organisationsIf configured correctly, it will call the list_organisations tool and show your organisations.