Build your own MCP server
Build an MCP server from scratch. Implement Model Context Protocol with JSON-RPC, tools and resources to connect AI clients to your programs.
TypeScript · Python · Go
Build a DNS resolver from scratch. Encode and parse UDP packets, then resolve domain names by walking the hierarchy from root servers.
Build it in your language
The tester treats your program as a black box: any language works. These are just the most convenient ones for this project.
Project in preparation: we are completing and verifying the implementation path and its tests. The capabilities below describe the project goal; starting the project is not enabled yet.
Every time you type a URL, something translates a name into an IP address by walking a worldwide hierarchy of servers. That something fits in a few hundred lines.
Here you build DNS packets bit by bit, send them over UDP and parse the response, including the name compression that trips everyone up. You'll finish resolving real domains starting from the root servers, without leaning on the system resolver.
8 stages across 4 phases. Every stage comes with its guide and its tests: you move on when they pass.
Build a DNS query byte by byte and send it over UDP.
Parse the header and sections, and decompress pointer-based names.
Iterative walk from the root servers, CNAMEs and several record types.
Honour TTLs and avoid repeated lookups.
Build an MCP server from scratch. Implement Model Context Protocol with JSON-RPC, tools and resources to connect AI clients to your programs.
TypeScript · Python · Go
Build a BitTorrent client from scratch. Decode bencode, contact trackers and download a real file through the peer-to-peer protocol.
Go · Python · Java
Build an HTTP server from scratch. Parse requests from socket bytes, manage connections and serve concurrent traffic with real HTTP responses.
Go · Python · C · Rust