mcp-builder
Skill2 starsChanged 4 months agoMITView on GitHub
Use when building or scaffolding an MCP (Model Context Protocol) server wrapping a REST API, database, or service as tools for an MCP client. Triggers on: ''build an MCP server'', ''create MCP tools'', ''write an MCP server for'', ''integrate X with Claude via MCP'', ''expose API via MCP'', ''add MCP support for'', ''make Claude able to call X'', ''MCP server for Stripe/GitHub/Postgres'', ''scaffold MCP'', ''wrap this API in MCP'', ''Claude tool for X API'', ''FastMCP server'', ''TypeScript MCP'', ''MCP server for Cursor/Codex/Gemini/OpenCode''. Not for inspecting an existing MCP server, or client config only.
- Reads credentials
- Installs packages
193 other projects use a version of this.
Adopted by
Most recently taken up by
- magicpro97/vibeflowtheir own version, first seen Oct 4, 2026
- IGTA-Tech/claude-skills-researchtheir own version, first seen Oct 3, 2026
- delorenj/skillstheir own version, first seen Oct 2, 2026
- basher83/Zammad-MCPtheir own version, first seen Oct 1, 2026
- BrightGold70/skillstheir own version, first seen Sep 29, 2026
- databricks/devhubtheir own version, first seen Sep 28, 2026
Used with
Projects with it also use skill-share, meeting-insights-analyzer and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ArogyaReddySkillskill-share
A skill that creates new Claude skills and automatically shares them on Slack using Rube for seamless team collaboration and skill discovery.
Also in 20 projects that use this
ArogyaReddySkillmeeting-insights-analyzer
Analyzes meeting transcripts and recordings to uncover behavioral patterns, communication insights, and actionable feedback. Identifies when you avoid conflict, use filler words, dominate conversations, or miss opportunities to listen. Perfect for professionals seeking to improve their communication and leadership skills.
Also in 27 projects that use this
JetBrainsSkillslack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack.
Also in 100 projects that use this
mrgoonieSkillai-multimodal
Process and generate multimedia content using Google Gemini API. Capabilities include analyze audio files (transcription with timestamps, summarization, speech understanding, music/sound analysis up to 9.5 hours), understand images (captioning, object detection, OCR, visual Q&A, segmentation), process videos (scene detection, Q&A, temporal analysis, YouTube URLs, up to 6 hours), extract from documents (PDF tables, forms, charts, diagrams, multi-page), generate images (text-to-image, editing, composition, refinement). Use when working with audio/video files, analyzing images or screenshots, processing PDF documents, extracting structured data from media, creating images from text prompts, or implementing multimodal AI features. Supports multiple models (Gemini 2.5/2.0) with context windows up to 2M tokens.
Also in 5 projects that use this
GoogleSkillalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Also in 87 projects that use this
bkootazSkillartifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
Also in 36 projects that use this
- +4 more from ArogyaReddy
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- anthropics/skills★ 199ksame name
- shareAI-lab/learn-claude-code★ 78ksame name
- ComposioHQ/awesome-claude-skills★ 77ksame name
- activepieces/activepieces★ 25ksame name
- composio-community/awesome-codex-skills★ 17ksame name
- mcp-use/mcp-use★ 11ksame name
- jnMetaCode/superpowers-zh★ 8.3ksame name
- SynkraAI/aiox-core★ 3.1ksame name
- microsoft/skills★ 3.1ksame name
- mrgoonie/claudekit-skills★ 2.2ksame name
183 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/commit-conventions.mdcCursor rule
- .cursor/rules/cross-platform-handoff.mdcCursor rule
- .cursor/rules/dev-files-workspace.mdcCursor rule
- .cursor/rules/gh-cli-preference.mdcCursor rule
- .cursor/rules/github-repository-policy.mdcCursor rule
- .cursor/rules/git-worktree-agent-workflow.mdcCursor rule
- .cursor/rules/hooks-guide.mdcCursor rule
- .cursor/rules/plugin-structure.mdcCursor rule
- .cursor/rules/plugin-version-bump.mdcCursor rule
- .cursor/rules/skill-frontmatter.mdcCursor rule
- .cursor/rules/skill-quality-standards.mdcCursor rule
- .cursor/rules/skills-guide.mdcCursor rule
- .cursor/rules/user-facing-script-standards.mdcCursor rule
- run-tamirs-superpowersSkill
- field-notebook-uiSkill
- diagnose-refusalSkill
- targeted-debugSkill
- decisionSkill
- deliver-devSkill
- orchestrate-devSkill
- plan-devSkill
- pr-devSkill
- start-devSkill
- switch-devSkill
- worker-devSkill
- changelog-reviewSkill
- dark-terminal-docSkill
- docs-reviewSkill
- platform-syncSkill
- mcp-paginationSkill
- cleanupSkill
- github-policySkill
- multi-agent-repoSkill
- repo-scaffoldSkill
- repo-standardsSkill
- capture-configSkill
- find-skillSkill
- notify-setupSkill
- retroSkill
- session-reportSkill
- skill-creatorSkill
- usage-captureSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 6 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 180 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 116
Read the bundled quick reference first (URLs, patterns, naming cheat sheet):
- Distinctive: line 147
If the catalog from 1.2 includes any list, search, or bulk-read operation, invoke the internal skill before writing tool schemas:
- Very specific: line 210
Use {service}_{verb}_{noun} — always action-oriented and unambiguous:
- Distinctive: line 302
Test each tool in the MCP Inspector before declaring done.
- Very specific: line 309
If the server includes any list/search/SQL tools, invoke:
- Very specific: line 315
Run its Quick-reference checklist against the implemented tool set.
- Distinctive: line 321
Create 10 read-only evaluation questions that require 3+ tool calls to answer.
- Very specific: line 334
If eval scenarios require paginated tools, confirm with Skill("mcp-pagination") that evals use explicit limits and caller-driven …
- Very specific: line 348
Read the mcp capability for each target in core/capabilities/platforms.json.
- Distinctive: line 355
Never write a config file on the assumption a host supports MCP.
- Very specific: line 415
Tool names must be unambiguous: Always use {service}_{verb}_{noun} — never single-word names like list or get.
- Very specific: line 416
Never hardcode credentials: Read tokens from environment variables (process.env.X / os.environ["X"]) only.
- Distinctive: line 420
Phase 4 pagination audit must pass: before marking the server done.
“Common” is measured: kept by at least 6 in 10 of the 180 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MCP Server Development Guide
Why this skill exists
Wrapping an external API in an MCP server sounds simple, but naive implementations fail in practice: tools return walls of JSON that exhaust context, list operations return unbounded results that time out, error messages say "400 Bad Request" without guidance, and tool names are so generic (get, list) that the model picks wrong ones. This guide enforces the patterns — pagination-first, structured output, actionable errors, consistent naming — that make the difference between a server a model can use reliably and one it struggles with.
MCP is a protocol, not a Claude feature. The server you build here is host-neutral: the same stdio or HTTP server is consumed by Claude Code, Claude Desktop, Cursor, Codex CLI, Gemini CLI, OpenCode and anything else speaking MCP. Nothing in the server implementation may assume a particular host. What does differ per host is the client config file that registers the server — that difference is confined to Phase 6, where it is generated and validated per target, and it never leaks into the server code.
Throughout this guide, "the client" or "the host" means whichever agent runtime is calling your tools. Where a passage says Claude, it is naming one client among several, not a requirement.
Supporting files
| File | When to use |
scripts/scaffold.sh | Run at the start of Phase 2 to generate a project skeleton. Usage: bash <skill-dir>/scripts/scaffold.sh <name> [ts|py] [prefix] ($CLAUDE_SKILL_DIR on Claude Code; substitute the skill directory on other hosts) |
references/quick-reference.md | Read during Phase 1 and Phase 3 for SDK URLs, Zod patterns, annotation hints, return shapes, naming examples, and error message templates. |
At the start of Phase 2, run the scaffold script to bootstrap the project, then replace the placeholder tools in Phase 3.
Internal skills
Pagination guardrails live in a companion skill — do not duplicate or guess limits inline:
Skill("mcp-pagination")mcp-pagination is internal-only (user-invocable: false). Invoke it with the Skill tool whenever this workflow touches list/search operations. It owns limit defaults, cursor conventions, SQL LIMIT enforcement, and the pre-ship checklist.
Invoke mcp-pagination when any of these apply:
| Trigger | Phase |
| Planning tool inventory and any endpoint returns a collection | Phase 1 |
Before writing each list_*, search_*, or array-returning tool | Phase 3 |
| Before adding or changing SQL-executing tools | Phase 3 |
| After implementing list/search tools — audit against checklist | Phase 4 |
| Eval questions require multi-page fetches — verify caller-driven pagination | Phase 5 |
Skip invocation only when the server has zero list, search, or bulk-read operations (e.g. a single create_* write tool).
Language selection
| Criterion | TypeScript | Python |
| Recommended default | Yes | If team is Python-only |
| SDK maturity | High (first-party) | High (FastMCP) |
| Remote HTTP servers | @modelcontextprotocol/sdk | FastMCP |
| Local stdio servers | Same SDK | Same SDK |
| Type safety | Static (Zod + tsc) | Pydantic v2 |
| Compilation check | npm run build | python -m py_compile |
Phase 1 — Research and planning
1.1 Load MCP specification and quick reference
Read the bundled quick reference first (URLs, patterns, naming cheat sheet):
Read("<skill-dir>/references/quick-reference.md") # $CLAUDE_SKILL_DIR on Claude CodeThen fetch authoritative SDK docs with WebFetch:
WebFetch("https://modelcontextprotocol.io/specification/draft.md")
WebFetch("https://modelcontextprotocol.io/docs/concepts/tools.md")TypeScript SDK:
WebFetch("https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md")Python (FastMCP):
WebFetch("https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md")1.2 Understand the target API
Review authentication method, rate limits, pagination strategy (cursor vs. offset), and which endpoints map to the most common user tasks. Deprioritize rarely-used admin endpoints.
Catalog every endpoint that returns a collection or supports search — these become list/search tools in Phase 3.
1.3 Apply pagination guardrails (mcp-pagination)
If the catalog from 1.2 includes any list, search, or bulk-read operation, invoke the internal skill before writing tool schemas:
Skill("mcp-pagination")Pass the planned tool names and the target API's native pagination params. Apply its Step 1–3 output to your tool design (limit defaults, cursor/offset mapping, safe starting limits). Do not proceed to Phase 3 implementation until pagination strategy is set for every collection endpoint.
Phase 2 — Project setup
Use the scaffold script
The fastest way to start is the bundled scaffold:
# TypeScript
bash <skill-dir>/scripts/scaffold.sh my-mcp-server ts myservice
# Python (FastMCP)
bash <skill-dir>/scripts/scaffold.sh my-mcp-server py myserviceThis generates package.json / requirements.txt, entry file with two example tools, README.md with env var table, and tsconfig.json (TS only). Then replace the placeholder tools in Phase 3.
Manual setup (if scaffold doesn't fit)
TypeScript:
mkdir my-mcp-server && cd my-mcp-server
npm init -y
npm install @modelcontextprotocol/sdk zod
npm install -D typescript @types/node ts-node
npx tsc --init --target ES2022 --module NodeNext --moduleResolution NodeNext --outDir dist --rootDir src --strict
mkdir srcPython:
mkdir my-mcp-server && cd my-mcp-server
python -m venv .venv && source .venv/bin/activate
pip install fastmcp pydantic httpxPhase 3 — Implement tools
3.0 Pagination gate (before each list/search tool)
For every tool matching list_*, search_*, top-level array results, or SQL execution:
- Invoke
Skill("mcp-pagination")if not already applied this session for this tool. - Implement the limit/cursor/filter params and defaults from its workflow — do not invent your own.
- Return
next_cursor(or equivalent) when results are truncated; never auto-fetch page 2+.
The templates below show the expected shape; numeric defaults must match mcp-pagination safe ranges for the operation type.
Naming convention
Use {service}_{verb}_{noun} — always action-oriented and unambiguous:
| Good | Bad |
github_list_issues | get, list, issues |
stripe_create_payment_intent | payment, do_payment |
db_query_users | query, fetch |
TypeScript tool template
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";
const server = new McpServer({ name: "my-service", version: "1.0.0" });
server.registerTool(
"myservice_list_items",
{
description: "List items from MyService. Supports cursor-based pagination.",
inputSchema: {
limit: z.number().int().min(1).max(100).default(20).describe("Max items to return (1–100)."),
cursor: z.string().optional().describe("Pagination cursor from a previous response."),
filter: z.string().optional().describe("Filter by status: 'active' | 'archived'"),
},
annotations: { readOnlyHint: true },
},
async ({ limit, cursor, filter }) => {
const params = new URLSearchParams({ limit: String(limit) });
if (cursor) params.set("cursor", cursor);
if (filter) params.set("status", filter);
const res = await fetch(`https://api.myservice.com/items?${params}`, {
headers: { Authorization: `Bearer ${process.env.MYSERVICE_ACCESS}` },
});
if (!res.ok) {
const body = await res.text();
throw new Error(`MyService API error ${res.status}: ${body}. Check MYSERVICE_ACCESS env var and API quota.`);
}
const data = await res.json();
return {
content: [{ type: "text", text: JSON.stringify(data.items, null, 2) }],
structuredContent: { items: data.items, next_cursor: data.next_cursor ?? null },
};
}
);Python tool template (FastMCP)
from fastmcp import FastMCP
from pydantic import BaseModel, Field
import httpx, os
mcp = FastMCP("my-service")
class ListItemsInput(BaseModel):
limit: int = Field(20, ge=1, le=100, description="Max items to return (1–100).")
cursor: str | None = Field(None, description="Pagination cursor from a previous response.")
@mcp.tool()
async def myservice_list_items(params: ListItemsInput) -> dict:
"""List items from MyService. Supports cursor-based pagination."""
async with httpx.AsyncClient() as client:
res = await client.get(
"https://api.myservice.com/items",
params={"limit": params.limit, **({"cursor": params.cursor} if params.cursor else {})},
headers={"Authorization": f"Bearer {os.environ['MYSERVICE_ACCESS']}"},
)
if res.is_error:
raise ValueError(f"MyService API error {res.status_code}: {res.text}. Check MYSERVICE_ACCESS env var.")
data = res.json()
return {"items": data["items"], "next_cursor": data.get("next_cursor")}Phase 4 — Build and test
# TypeScript
npm run build # must pass with zero errors
npx @modelcontextprotocol/inspector dist/index.js
# Python
python -m py_compile my_server.py
fastmcp dev my_server.py # opens Inspector UITest each tool in the MCP Inspector before declaring done. The Inspector is host-neutral — it speaks the protocol directly, so a server that passes there works for every client. Check:
list_*tools returnnext_cursorwhen truncated- Error messages include the HTTP status, response body snippet, and a suggested fix
- Tool descriptions are concise (under 120 chars for the summary line)
4.1 Pagination audit (mcp-pagination)
If the server includes any list/search/SQL tools, invoke:
Skill("mcp-pagination")Run its Quick-reference checklist against the implemented tool set. Fix every failing item before shipping. Typical failures: missing limit, default above 100, auto-pagination in server code, SQL without LIMIT.
Phase 5 — Evaluations
Create 10 read-only evaluation questions that require 3+ tool calls to answer. These test the server through the protocol, so they are valid for every host. Format:
<evaluation>
<qa_pair>
<question>How many open issues are labeled 'bug' in the myservice/core repo as of today?</question>
<answer>42</answer>
</qa_pair>
</evaluation>Each question must be: independent, read-only, complex (multi-step), realistic, and produce a stable verifiable answer.
If eval scenarios require paginated tools, confirm with Skill("mcp-pagination") that evals use explicit limits and caller-driven continuation — not server-side full scans.
Phase 6 — Register the server with each target host
The server is host-neutral. Registration is not. Each host reads a different config file
with a different shape, and a server that works perfectly is still unreachable if the config
it is registered in is wrong. Generate config only for the targets the user actually uses —
detect them the way platform-sync does (see
skills/documentation/platform-sync/references/detection.md), or ask.
6.1 Check the capability first
Read the mcp capability for each target in core/capabilities/platforms.json. If a target
marks mcp as unsupported or unknown, do not emit a config file for it. Say so:
<target>: MCP is <unsupported|not verified> per the capability registry — no config emitted.Never write a config file on the assumption a host supports MCP.
6.2 Config shape per target
| Target | Config path | Shape |
| Claude Code (project) | .mcp.json | {"mcpServers": {"<name>": {"command", "args", "env"}}} |
| Claude Code (user) | the user-level config file in the home directory | same mcpServers object |
| Claude Desktop | claude_desktop_config.json (OS-specific dir) | same mcpServers object |
| Cursor | .cursor/mcp.json | {"mcpServers": {...}} |
| Codex CLI | .codex/config.toml (or the path the fetched Codex docs name) | TOML [mcp_servers.<name>] table |
| Gemini CLI | .gemini/settings.json | mcpServers object |
| OpenCode | opencode.json | mcp object, entries typed local (command array) or remote (url) |
Shapes drift between releases. Verify the current shape against the target's live docs
before writing — the URL lists live in
skills/documentation/platform-sync/references/platforms/<id>.md. If you cannot fetch them,
emit the config and label it unverified; do not present a remembered shape as current.
6.3 Secrets
Config files carry ${ENV_VAR} placeholders and nothing else. Never write a literal token
into a config file, in any host's format, even in an example. Document the required
variables in the server README.
6.4 Validate what you generated
Per target, run a check that actually parses the file:
jq empty .mcp.json # Claude Code / Cursor / Gemini / Claude Desktop
jq empty .cursor/mcp.json
jq empty .gemini/settings.json
jq empty opencode.json
python3 -c 'import tomllib,sys; tomllib.load(open(sys.argv[1],"rb"))' .codex/config.tomlThen confirm the server actually starts under the command the config names:
# the exact command string from the config's "command" + "args"
node dist/index.js < /dev/null # stdio server should start and wait, not crashA config that parses but names a wrong path is the most common failure — check that the command path resolves from the directory the host will launch it in (usually the project root, not the server directory).
6.5 Report honestly
State per target: config written, validated how, and anything unverified. "Works with Cursor" is a claim that needs the parse check plus the start check behind it — evidence over declarations.
Hard rules
- Never return unbounded lists. Delegate limit/cursor/filter rules to
mcp-pagination— invoke it at every trigger in the table above; do not skip for "simple" APIs. - Error messages must be actionable. Include the HTTP status, a snippet of the response body, and a concrete next step (e.g., "Check the service's auth env var" or "Use a valid repo slug").
- Tool names must be unambiguous. Always use
{service}_{verb}_{noun}— never single-word names likelistorget. - Never hardcode credentials. Read tokens from environment variables (
process.env.X/os.environ["X"]) only. - Never auto-paginate server-side. Fetch one page per tool call; expose cursor/token for the caller to continue (
mcp-paginationStep 5). - Compilation must pass before shipping.
npm run build(TypeScript) orpython -m py_compile(Python) must exit 0. - Tool descriptions must state what the tool returns, not just what it does. Bad: "Gets issues." Good: "Returns a paginated list of open GitHub issues with title, labels, and assignee."
- Phase 4 pagination audit must pass before marking the server done.
- Never assume a host. The server implementation must not branch on which client is calling it. Host differences belong in Phase 6 config generation only.
- Never emit a client config for a target whose
mcpcapability isunsupportedorunknownincore/capabilities/platforms.json. Report the gap instead. - Every generated config must be validated by a parse check and a server-start check before you claim the target works.
What NOT to do
| Anti-pattern | Why it fails | Fix |
| Return raw API response JSON as-is | The client reads 50KB of nested objects, wasting context | Filter to the 5–10 fields actually needed |
Single api_call(endpoint, method, body) catch-all tool | The client can't discover what the API supports | Implement explicit tools per operation |
| No pagination — return all results | Times out on large datasets; floods context | Invoke Skill("mcp-pagination"); add limit + cursor per its checklist |
throw new Error("Error") on API failure | The client retries blindly with no fix | Include status code, body snippet, env var hint |
| Put auth tokens in the source code | Security leak | Use env vars; document required vars in README |
| Skip MCP Inspector testing | Broken tools ship silently | Always run Inspector before marking done |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

