Labsco
mwpryer logo

DIY MCP

โ˜… 1

from mwpryer

A from-scratch implementation of the Model Context Protocol (MCP) for building servers and clients, using a Chinese tea collection as an example.

๐Ÿ”ฅโœ“ VerifiedAccount requiredNeeds API keys

โŒ labsco summary โ€” our analysis, not the vendor's

What it is โ€” a from-scratch, educational MCP implementation (server + client) using a Chinese tea collection as the example dataset.

What you get โ€”

  • A minimal stdio MCP server exposing tea resources (tea://teas, tea://teas/{slug}) and tools (getTeasByType, getTeasByRegion)
  • A companion CLI client with three modes: ask the LLM, fetch a resource directly, or call a tool directly
  • Example prompts to learn from ("Which teas come from Fujian?", "What is your favorite green tea?")

Requirements โ€” an Anthropic API key (ANTHROPIC_API_KEY) with credits for the LLM client; Node.js to build both halves.

Cost snapshot โ€” free to run; the client fronts the Anthropic API, so LLM usage is billed by Anthropic. License isn't stated in the metadata.

Setup effort โ€” self-host: build the server, npm install the client, copy .env.example to .env and add your key.

Our take โ€” a great learning reference for how MCP works under the hood. Caveat: the README itself says to use the official MCP SDKs for production โ€” this is a teaching example, not a library.

Source: the project README โ€” summarized 2026-07-08.