Skip to main content

Connect Cursor

  1. Put your API key in an environment variable, for example in your shell profile:

    export HARMONY_API_KEY="harmony_pk_..."
  2. Add the Harmony server to ~/.cursor/mcp.json, or to .cursor/mcp.json for one project:

    {
    "mcpServers": {
    "harmony": {
    "url": "https://api.harmony.ai/api/mcp",
    "headers": { "Authorization": "Bearer ${env:HARMONY_API_KEY}" }
    }
    }
    }
  3. Open Cursor's chat and ask: "List my Harmony workflows."

Cursor reads HARMONY_API_KEY from the environment it starts in, so open Cursor from a terminal where the variable is set. If your Account is in the EU, use https://api.eu.harmony.ai/api/mcp.