Agents

Connect Cursor

Add the Artifact MCP server in Cursor settings, then save an always-on project rule.

  1. In Artifact, open Integrations, choose Cursor, and create a token.
  2. In Cursor, open Cursor Settings, then Tools & MCP, then New MCP Server. Cursor opens ~/.cursor/mcp.json.
  3. Add the artifact server. If the file already has other servers, add only the artifact entry inside mcpServers.
  4. From the project root, create .cursor/rules/artifact.mdc and paste the agent rule from Integrations. The rule should be set to always apply.
  5. Return to Tools & MCP. Artifact should be enabled and list its tools. Turn each Artifact tool on. Restart Cursor once if the server does not appear.
  6. Send the test prompt, then check Home.

~/.cursor/mcp.json

{
  "mcpServers": {
    "artifact": {
      "type": "http",
      "url": "https://app.artifactcomputing.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_ARTIFACT_TOKEN" }
    }
  }
}

To disconnect Cursor, remove the artifact entry, delete the project rule, restart Cursor, and revoke the token in Artifact.