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

# Connect Cursor

> Add the Earth Care Network MCP server to Cursor via mcp.json.

[Cursor](https://cursor.com) connects to remote MCP servers through an `mcp.json`
file.

<Steps>
  <Step title="Open MCP settings">
    **Cursor Settings → MCP → Add new MCP server**, or edit the file directly:
    `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (per-project).
  </Step>

  <Step title="Add the server">
    ```json theme={null}
    {
      "mcpServers": {
        "earth-care-network": {
          "url": "https://api.earthcare.network/mcp/",
          "headers": {
            "Authorization": "Bearer ecn_mcp_YOUR_KEY"
          }
        }
      }
    }
    ```
  </Step>

  <Step title="Verify">
    Reopen the MCP settings panel — `earth-care-network` should show a green status
    and its tools. In a chat, ask Cursor to *"search the Earth Care Network directory."*
  </Step>
</Steps>

<Warning>
  A per-project `.cursor/mcp.json` is convenient but easy to commit by accident.
  Keep real keys out of version control.
</Warning>

## Troubleshooting

* **Server shows red / "no tools"** — confirm the URL ends in `/mcp/` and the
  `Authorization` header includes the `Bearer ` prefix.
* **Calls fail with Unauthorized** — the key may be revoked; create a new one in
  the workspace.
