Data centres were a central issue in the midterm elections earlier in November. Democratic candidates who promised tougher rules on data centre construction won on 3 November, helped by those concerns.
He spoke to reporters at a press briefing after returning from a trip to Asia.
"We're not going to allow our companies to build data centres outside of our country,"Trump said.
He provided little detail on the potential policy. He said others in his cabinet were hearing about it for the first time.
It remains unclear how such a policy would be enforced if it was brought in.
Data centres are vast warehouse-style buildings. They house the advanced computer chips and servers needed to run AI programmes such as Claude and ChatGPT.
Many of them are built in rural areas. Concerns including noise pollution and energy consumption have followed the projects.
Large technology firms, often called AI hyperscalers because of the size of their investments in AI, have also been branching out.
Tech giants including Meta and Google have entered agreements to build data centres overseas.
Last month, building work for two of those centres was halted over concerns about the clearance of more than 300 hectares of forest.