CleanClean
Agents

Cursor

Connect Clean to Cursor via MCP — locally over stdio or through the cloud.

Cursor reads MCP servers from ~/.cursor/mcp.json.

The local edition runs as a stdio server. Add this to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "clean": {
      "command": "python",
      "args": ["-m", "clean.local.mcp_server"]
    }
  }
}

To pin a default repo, append --repo owner/repo to args. Install Clean from source first. If you already have other servers, merge the clean entry into the existing mcpServers object rather than replacing the file.

Open Cursor MCP settings

Alternatively, paste the config through Cursor's UI:

Settings → Features → MCP Servers → Add Server

Restart Cursor

Restart Cursor completely for the MCP server to be detected.

Verify

Open Cursor's MCP panel. You should see clean listed as a connected server with the Clean toolssearch_code, expand_result, get_source, get_file_tree, list_repos (plus index_repo and delete_repo locally).

On this page