mcp-builder
Installation
SKILL.md
Building an MCP server
An MCP server exposes an external service to an AI as a set of tools. Its quality is measured by one thing: how reliably an AI can use those tools to accomplish real tasks. Build for the AI that will call it, not for human readers of the API.
Phase 1 — Research and plan
- Read the service’s API docs first. Identify the key endpoints, the auth model, rate limits, and the core data shapes. Use web search and fetch the live docs rather than guessing.
- Read the MCP spec and SDK docs. Start from the sitemap at
https://modelcontextprotocol.io/sitemap.xml, then fetch specific pages with a.mdsuffix. For the SDKs, fetch the TypeScript SDK README (github.com/modelcontextprotocol/typescript-sdk) or Python SDK README (github.com/modelcontextprotocol/python-sdk). - Decide coverage vs. workflow tools. Comprehensive endpoint coverage gives the AI flexibility to compose operations; a few higher-level workflow tools are more convenient for common tasks. When unsure, prioritize comprehensive coverage and add workflow tools for the hot paths.
Phase 2 — Implement
Recommended stack: TypeScript with the MCP SDK. Use streamable HTTP with stateless JSON for remote servers (simple to scale), and stdio for local servers.
Build shared infrastructure once: an authenticated API client, error-handling helpers, response formatting, and pagination.
For each tool: