Create local server with mods

Can I create a local server and place mods on it? (A server that is not public or private, that does not appear in the list of servers) How can I do it?

You can prevent the server from showing in the server list by uncommenting sv_master1 in the server config.

And how can I create it?

has all the information you need.