Building an MCP server
For engineers
Choosing an SDK, defining tools and resources with precise schemas, serving them over stdio and HTTP, and testing before agents use them
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
What does the high-level API of an MCP SDK, such as FastMCP, do for you?
Check yourself · 2 of 5
A tool fails because the order does not exist. How should the server report it so the model can read and recover?
Check yourself · 3 of 5
Who normally decides to use an MCP prompt?
Check yourself · 4 of 5
A stdio MCP server prints "Server ready" with console.log. What happens?
Check yourself · 5 of 5
What is the main benefit of an in-memory transport in server tests?
Topics
- Choosing an official MCP SDK and framework4 min read · Official SDKs for TypeScript, Python, C#, Java, Kotlin, Go and Rust, high-level helpers such as FastMCP versus low-level handlers, and SDK spec support
- Tool input schemas, output schemas and annotations5 min read · JSON Schema inputs, outputSchema with structuredContent, read-only and destructive hints, and isError results the model can read
- Exposing resources, resource templates and prompts5 min read · URI design, resource templates, resource links in tool results, prompt arguments, and when data belongs in a resource rather than a tool
- Serving one server over stdio and Streamable HTTP5 min read · Keeping stdout for protocol messages only, logging to stderr, mounting an HTTP endpoint, and running the same code in both modes
- Testing servers with MCP Inspector and scripted clients5 min read · Manual checks in MCP Inspector, in-memory client tests in CI, schema validation and a first run against a real model
Start here
- Build an MCP server (official tutorial) (opens in a new tab)DocsFree
Step-by-step server in Python, TypeScript and other SDKs, including the stdout logging rule.
- MCP SDKs (opens in a new tab)DocsFree
The list of official SDKs by language and their support tiers.
- MCP specification: Tools (opens in a new tab)StandardFree
The normative definition of tool schemas, outputSchema, structuredContent, annotations and isError.
Helps to know first
110 questions · last verified 2026-12