This is a link to our learning guide to make your own MCP server in C/C++ (with no other dependencies). If you wanted to make one from scratch but needed some insight into dealing with MCP messages: the I/O flow, JSON parsing, and request dispatch, grab the teaching version tagged mcp/teaching/v1.0.0 in the repository. The JSON parsing in C would have been a hurdle, but then there's this amusing story:
Eric: "Let's create a helloWorld MCP server in C." Gemini: "That will be somewhat difficult, there are easier ways." Eric: "Why is it difficult??" (the second '?' was a bit of my ego). Gemini: "Well, you'll need to parse JSON, handle raw I/O, and return strict JSON-RPC back to the client." Eric: "One moment....", attaching a decade-old JSON parser engine file JSONParser.h Amusingly, the AI read the code and completely shifted its tone... Gemini: "Oh, well then it's not so difficult."
The head revision plus the aspect guide gets you a self-diagnosing, asynchronous, enterprise-ready baseline to be able to concentrate on what you really want your own MCP Server to do. I would begin with the repository README.md though, because it's actually as easy to use as it describes.
Cheers,
... Eric