Mcp builder

From akillness/jeo-skills · View interactive version

Mcp builder is an AI agent skill from the GitHub repository akillness/jeo-skills. Build production MCP (Model Context Protocol) servers that let LLMs drive an external API through well-designed tools, in TypeScript (MCP SDK) or Python (FastMCP). Route one request to research and planning, tool design, transport choice, implementation, security review, or evaluation. Use when the

How to use this skill

Skill file

MCP Server Builder

Build an MCP server whose quality is measured by one thing: **can an LLM

actually accomplish real tasks with it?** Not endpoint coverage, not schema

elegance. A server that mirrors 40 REST endpoints and leaves the model unable to

complete a workflow has failed.

The most common failure is treating this as an API-wrapping exercise. Tool

naming, response shape, error text, and pagination are all agent ergonomics

problems, and they decide whether the server works.

Bundled from anthropics/skills commit

3b3fad96af16a10759d930941b4520ba0c40edae (2026-08-21), Apache-2.0. Upstream

ships skills/mcp-builder/LICENSE.txt; the repository root carries no SPDX

license, so the per-skill license is the operative one — see

upstream and licensing.

When to use this skill

Do not use this skill for neighboring jobs:

Instructions

Step 0: Pick the phase

| Phase | Job | Output |

|---|---|---|

| research | understand the API and MCP design norms | tool inventory and plan |

| design | naming, granularity, response shape | tool contract |

| implement | build in TypeScript or Python | working server |

| secure | auth, validation, error handling, DNS rebinding | reviewed surface |

| evaluate | 10 verified questions, harness run | pass or fail evidence |

Skipping research and design is what produces servers with 40 thin tools

that no agent can use.

Step 1: Research before writing tools

Read the target API's real semantics: resources, verbs, pagination style, auth

model, rate limits, error shapes. Then decide coverage strategy.

Coverage versus workflow tools. Comprehensive endpoint coverage gives agents

composition flexibility; workflow tools are more convenient for specific tasks.

Performance varies by client — some benefit from code execution combining basic

tools, others from higher-level workflows. Upstream's guidance when uncertain:

prioritize comprehensive API coverage.

MCP specification: start at https://modelcontextprotocol.io/sitemap.xml, then

fetch pages with a .md suffix for markdown.

Step 2: Choose the stack deliberately

Upstream recommends TypeScript: strong SDK support, good compatibility in

execution environments such as MCPB, static typing, and models generate it well.

Python with FastMCP is fully supported and often better when the surrounding

service is already Python.

| Need | Choose |

|---|---|

| Default, broad compatibility | TypeScript + MCP SDK |

| Existing Python service, scientific stack | Python + FastMCP |

Step 3: Design tools for discoverability

failure. "Invalid repo" is a dead end; `"Repository not found. List

available repositories with github_list_repos."` is recoverable.

Full conventions in design and implementation.

Step 4: Choose transport and state model

| Transport | Use for | Note |

|---|---|---|

| stdio | local servers | simplest; process-scoped |

| Streamable HTTP | remote servers | prefer stateless JSON |

Upstream prefers stateless JSON over stateful sessions and streaming responses:

simpler to scale and maintain. Choose stateful only with a concrete reason.

Step 5: Secure the surface before exposing it

trap for both the agent and its user.

Step 6: Evaluate — the phase most often skipped

Ten questions, each independent, read-only, complex (multiple tool

calls), realistic, verifiable by string comparison, and stable over

time.

Process: inspect the tools, explore data with read-only calls, generate the

questions, then solve each one yourself to verify the answer before it

becomes the expected value.

<evaluation>
  <qa_pair>
    <question>...</question>
    <answer>3</answer>
  </qa_pair>
</evaluation>

Upstream ships a harness (scripts/evaluation.py, scripts/connections.py)

that runs these against a live model.

Cost and blast radius. The harness requires an Anthropic API key and

spends credits per question, and it drives your server against whatever it is

connected to. Confirm before running it, keep questions read-only, and point

it at non-production data.

See evaluation.

Step 7: Verify what you claim

State which layer you verified. Writing evaluations is not running them.

Examples

Example 1: Wrapping a REST API

Request: "Turn our internal REST API into an MCP server."

Start in research. Inventory endpoints, identify the two or three workflows

users actually perform, then decide coverage. Default to comprehensive coverage

plus a small number of workflow tools for the dominant paths.

Example 2: Agent picks the wrong tool

Request: "The model keeps calling the wrong tool."

This is design, not a bug. Check for ambiguous names, overlapping

descriptions, missing prefixes, and tools that differ only by an unstated

precondition. Rename and re-describe before touching code.

Example 3: Evaluation request with cost

Request: "Run the eval suite."

Confirm the API key source, the per-run credit cost, and that every question is

read-only against non-production data. Then run and report the pass count.

Best practices

  1. Measure by task completion — not endpoint coverage.
  2. Default to comprehensive coverage — add workflow tools for real paths.
  3. Prefix and verb every tool name — discovery is the agent's bottleneck.
  4. Make errors actionable — every failure names a next step.
  5. Prefer stateless streamable HTTP — stateful needs a reason.
  6. Annotate destructive tools honestly — read-only means read-only.
  7. Verify eval answers yourself — an unverified expected value tests nothing.
  8. Gate the harness on cost and confirmation — it spends credits per run.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.