X.Org: Protocol Headers
X.Org: XML-XCB protocol descriptions for libxcb code generation
Copy the tea one-liner above into your terminal to install protocol. tea will interpret the documentation and take care of any dependencies.