> For the complete documentation index, see [llms.txt](https://docs.cloud.olakrutrim.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloud.olakrutrim.com/mcp/connect-cursor.md).

# Connect Cursor

Connect Krutrim Cloud MCP to Cursor using a local `stdio` server. The configuration can be global for your user or scoped to a single repository.

## Before you begin

* First, complete the shared installation and API-key setup in the [MCP Overview](/mcp/overview.md). These guides use local stdio, not a hosted OAuth connection.
* Ensure `uvx` is available in the environment from which Cursor launches its MCP server.
* Use the raw API key as `KRUTRIM_API_KEY`, without a `Bearer` prefix or surrounding spaces. Keep it private and restart the client after changing the key.

## Connect to Krutrim Cloud

{% stepper %}
{% step %}

### Choose the configuration scope

| Scope   | File                 | When to use it                                                                                     |
| ------- | -------------------- | -------------------------------------------------------------------------------------------------- |
| Project | `.cursor/mcp.json`   | The server is only for the current repository. Do not commit this file if it contains credentials. |
| Global  | `~/.cursor/mcp.json` | The server is available to your local Cursor user across projects.                                 |

> **Security note:** Cursor starts a local command-based server with the environment values in this file. Store the file only on a trusted machine and avoid committing secret-bearing configuration.
> {% endstep %}

{% step %}

### Add the server configuration

Create or merge the selected `mcp.json` file with this entry.

```json
{
  "mcpServers": {
    "krutrim-cloud": {
      "command": "uvx",
      "args": [
        "krutrim-mcp-server"
      ],
      "env": {
        "KRUTRIM_API_KEY": "YOUR_KRUTRIM_API_KEY"
      }
    }
  }
}
```

{% endstep %}

{% step %}

### Reload Cursor and check the server

Reload the Cursor window or restart Cursor. Open Customize → MCPs to confirm that `krutrim-cloud` starts successfully.
{% endstep %}

{% step %}

### Verify with a read-only request

Then ask Cursor:

```
List my VPCs in In-Hyderabad-1.
```

Review the proposed tool invocation and allow only the read-only request.
{% endstep %}
{% endstepper %}

## Next steps

Before changing Cloud resources, follow the safety guidance in the [MCP Overview](/mcp/overview.md). Start with a read-only request and review the exact region and resource identifiers.

Need help? Open [Troubleshooting](/mcp/troubleshooting.md) for startup, API-key, and tool-discovery checks.

For the current Cursor MCP configuration reference, see [Cursor's MCP documentation](https://cursor.com/docs/mcp).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cloud.olakrutrim.com/mcp/connect-cursor.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
