A TypeScript and JavaScript project creating a minimal Model Context Protocol (MCP) server. It provides tools for dice rolling and coin flipping, and resources like server metadata. The server is designed to be a hands-on learning project, connecting with a client like Claude Desktop via stdio.
From the README
toy-mcp-server A minimal Model Context Protocol (MCP) server built from scratch to learn how MCP actually works — no boilerplate generators, no templates, just the SDK. Built as a first hands-on MCP project: two tools and one resource, wired into Claude Desktop over stdio. What it does MCP lets an LLM client (like Claude Desktop) call functions running on your own machine, instead of only generating text from its training data. This server exposes: Tools (functions Claude can call): • rolldice — rolls N dice with a configurable number of sides • flipcoin — flips a coin N times Resources (read-only data Claude can fetch): • server-info — basic metadata about the server (name, purpose,...
Skills
- TypeScript
- JavaScript