The AMP client source is available but worthless. Google validates that you're running their blessed version of the framework and if you change a single bit in the files Google doesn't serve your AMP content anymore.
It's a classic walled garden, like the Android app store. You can develop Android apps that don't meet their guidelines but you can't distribute them through normal channels.