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

# Cursor

> Connect Geekflare API to Cursor using MCP to give the AI agent web scraping, search, screenshot, and DNS tools.

[Cursor](https://cursor.com) is an AI-powered code editor. With the Geekflare MCP server connected, Cursor's agent can scrape pages, run searches, take screenshots, and look up DNS records directly from your editor.

## Setup

<Tabs>
  <Tab title="Remote URL (Recommended)">
    No installation required. Open **Cursor Settings → MCP** and add:

    ```json theme={null}
    {
      "mcpServers": {
        "geekflare": {
          "url": "https://mcp.geekflare.com/YOUR_API_KEY/mcp"
        }
      }
    }
    ```

    Replace `YOUR_API_KEY` with your Geekflare API key.
  </Tab>

  <Tab title="Local via npx">
    Requires [Node.js](https://nodejs.org) installed locally.

    Open **Cursor Settings → MCP** and add:

    ```json theme={null}
    {
      "mcpServers": {
        "geekflare": {
          "command": "npx",
          "args": ["-y", "@geekflare/mcp"],
          "env": {
            "API_KEY": "YOUR_API_KEY"
          }
        }
      }
    }
    ```
  </Tab>
</Tabs>

After saving, click **Refresh** in the MCP panel. You should see the Geekflare tools listed.

<Info>
  Cursor MCP support requires version 0.45.6 or later. Update via **Help → Check
  for Updates**.
</Info>

## Usage Examples

Open Cursor's Composer (`Cmd+L` / `Ctrl+L`), switch to **Agent** mode, and try:

**Scrape a webpage**

```
Scrape https://example.com and summarize the main content in bullet points.
```

**Search the web**

```
Search for Nvidia’s stock performance and explain the main reasons for the trend.
```

**Take a screenshot**

```
Take a screenshot of https://stripe.com and tell me what you see.
```

**DNS lookup**

```
Look up DNS records for openai.com
```
