Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
A guide for building MCP (Model Context Protocol) servers that expose external APIs and services as tools for LLMs. Covers TypeScript and Python implementations across four phases: research, implementation, testing, and evaluation creation.
Follows a four-phase workflow from API research through LLM-facing evaluation, reducing the common outcome of MCP servers that compile but agents cannot use effectively.
When to use it
- Wrapping a third-party REST API so an AI agent can call it as a tool
- Building a local stdio MCP server for development and testing workflows
- Designing paginated, structured tool responses for complex data APIs
- Adding actionable error messages so agents can recover from failures
- Writing evaluation question sets to verify an MCP server works correctly with LLMs
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Build a TypeScript MCP server that wraps the GitHub REST API
- 1Fetches MCP specification and TypeScript SDK documentation
- 2Reviews GitHub API endpoints and selects priority operations to cover
- 3Sets up TypeScript project with Zod input schemas and MCP SDK
- 4Implements tools with consistent naming, pagination, and actionable error messages
- 5Creates 10 read-only evaluation questions and verifies answers against live API
A deployable TypeScript MCP server with GitHub tools, structured output schemas, and an XML evaluation file