GeneSCF serves as command line tool for clustering list of genes based on functional annotation (Geneontology, KEGG, REACTOME and NCG). This tool requires gene list in the form of Entrez Gene IDs or Official gene symbols as a input.
http://genescf.kandurilab.org/