kazemcodes/skill-tree/mcp-builder

Claude Code and agent skill by kazemcodes/skill-tree

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Create MCP (Model Context Protocol) servers that let LLMs interact with external services — covers Python FastMCP and TypeScript MCP SDK

Install

npx vskill@latest install kazemcodes/skill-tree/mcp-builder

SKILL.md

The same SKILL.md was published earlier as kazemcodes/skill-tree/mcp-builder.

MCP Builder

Build high-quality MCP servers for LLM integration.

When to Use

  • Creating MCP server for an external API
  • Building tools that LLMs can call
  • Integrating services with AI agents

Design Principles

  1. Build for workflows, not API endpoints — consolidate related operations
  2. Optimize for limited context — return high-signal data, not dumps
  3. Design actionable errors — guide toward correct usage
  4. Use evaluation-driven development — test with realistic scenarios

Python (FastMCP)

python
from fastmcp import FastMCP
from pydantic import BaseModel, Field
mcp = FastMCP("my-server")
class SearchInput(BaseModel):
query: str = Field(description="Search query")
limit: int = Field(default=10, ge=1, le=100)
@mcp.tool()
async def search(input: SearchInput) -> str:
"""Search the database for matching records.
Args:
input: Search parameters
Returns:
JSON string with search results
"""
results = await db.search(input.query, limit=input.limit)
return json.dumps(results)

TypeScript (MCP SDK)

typescript
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";
const server = new McpServer({ name: "my-server", version: "1.0.0" });
server.tool(
"search",
"Search the database for matching records",
{
query: z.string().describe("Search query"),
limit: z.number().min(1).max(100).default(10),
},
async ({ query, limit }) => {
const results = await db.search(query, limit);
return { content: [{ type: "text", text: JSON.stringify(results) }] };
}
);

Tool Annotations

python
@mcp.tool(
readOnlyHint=True, # No side effects
destructiveHint=False, # Safe to run
idempotentHint=True, # Same result on retry
)
async def get_user(user_id: str) -> dict:
...

Error Handling

python
# Good: actionable error messages
raise ValueError(
"No results found. Try broader search terms or "
"use filter='active_only' to reduce scope."
)
# Bad: unhelpful error
raise Exception("Error")

Checklist

  • [ ] Tool names use kebab-case or snake_case consistently
  • [ ] Input schemas have descriptions and constraints
  • [ ] Error messages suggest next steps
  • [ ] Read-only tools marked with readOnlyHint
  • [ ] Character limits enforced (truncate at ~25k tokens)
  • [ ] Pagination for large result sets
  • [ ] Tests with realistic scenarios

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
3

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kazemcodes/skill-tree/mcp-builder/badge)](https://verified-skill.com/skills/kazemcodes/skill-tree/mcp-builder)

Something wrong with this skill or its page? Tell us.