Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.

Cheat sheet · Specialise

Model Context Protocol cheat sheet

Opens with credits

A quick-revision book on the Model Context Protocol: the roles, the JSON-RPC messages, transports, tools, resources and prompts, OAuth for remote servers, building servers with the official SDKs, and the security and design rules that keep them useful. It reflects the 2026-07-28 revision of the specification and notes what older revisions did differently.

Curated by Tauseef Fayyaz9 chapters62 concepts82 glossary terms

Chapters

9 chapters · 62 concepts

  1. 1What MCP isMCP is an open standard for plugging tools and data into AI applications, in the way a USB port lets any device work with any computer. Start with the roles and the three things a server can offer.7 concepts
  2. 2Messages and lifecycleEverything in MCP is a JSON-RPC 2.0 message. The current revision is stateless: every request carries the version and capabilities it relies on, instead of a handshake at the start of a connection.8 concepts
  3. TransportsA transport carries the JSON-RPC messages. Local servers use stdio; remote servers use Streamable HTTP. The older HTTP+SSE transport is deprecated.6 conceptsOpens with credits
  4. Tools, resources and promptsThe three server primitives in detail: how tools are described and answer, how resources are addressed, and how prompts give users reusable workflows.9 conceptsOpens with credits
  5. Client features and utilitiesClients can also offer features to servers, chiefly asking the user for input. Sampling, roots and protocol logging still work but are deprecated in the 2026-07-28 revision.6 conceptsOpens with credits
  6. Authorisation for remote serversRemote servers use OAuth 2.1. The MCP server is a resource server that checks tokens; a separate or built-in authorisation server logs the user in and issues them. Local stdio servers take credentials from the environment instead.7 conceptsOpens with credits
  7. Building and testing a serverThe official SDKs handle the protocol so you write plain functions. Python uses decorators on an MCPServer from the mcp package; TypeScript registers tools on an McpServer with Zod schemas.7 conceptsOpens with credits
  8. SecurityAn MCP server hands a model the power to act. Treat everything it returns as untrusted input, grant the least access that works, and keep a human in the loop for anything that cannot be undone.6 conceptsOpens with credits
  9. Designing good toolsA model uses your server only as well as your tools let it. Design for an agent reading descriptions, not a developer reading API docs.6 conceptsOpens with credits
  10. 10Glossary, A to ZEvery concept in the sheet and the smaller terms it uses, in one list.82 terms

About this sheet

How MCP connects AI applications to tools and data: hosts and servers, messages, transports, auth, building servers and staying safe.

Picked from the other libraries by shared topics.

Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.

  • 1:1 Mentorship
  • Fresh Graduate Mentorship
  • Career Guidance

Brand deals, promos and partnerships: tauseeffayyaz@gmail.com