Usually CAPE is computed using the radiosonde vertical profiles of temperature and humidity. I am interested in knowing the alternative method if radiosonde data is not available.
I do not believe that CAPE can be calculated only from the surface T and q. If your data has a high temporal frequency, you might be able to diagnose convection based on the derivatives, but then you probably have precipitation measurements anyway.
I am not aware of any reasonable method based only on surface observations. You would have to make some assumptions about the vertical temperature profile, but then you results would only be as good as your assumption. I would suggest you try using profiles form reanalyses or model forecasts as surrogate for the radiosondes. If that makes sense or not depends on the accuracy your application/study requires.
Ricardo, you must look any available documentation on the output of the GFS. There are multiple ways to calculate CAPE, but all use upper-air data. The vertical structure of the atmosphere is a fundamental property determining the potential for convection.
The surface based CAPE just uses the thermodynamic properties of the near-surface air to define the parcel being lifted. I think it basically comes down to calculating the virtual potential temperature from the near-surface properties, comparing that value to the current environmental profile and vertically integrating (the positive part) to get CAPE.