Skip to content
Back to skills

Mcp Builder

ASecurity

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools.

  • 7 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 3, 2026
ai-agentstypescriptpythonbashnodegitapi

Works with

  • cli
  • api
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned September 3, 2026

npx -y skills add mediar-ai/skillhubz --skill mcp-builder --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mcp Builder?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mcp Builder
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mediar-ai-mcp-builder/badge)](https://www.skillsdirectory.com/skills/mediar-ai-mcp-builder)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# MCP Builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools.

## Prerequisites

- TypeScript (recommended) or Python
- Node.js 18+ for TypeScript, Python 3.10+ for Python
- Understanding of async/await patterns
- Familiarity with API integration

## Instructions

1. **Phase 1: Research and Planning**
   - Study MCP Protocol: Start with `https://modelcontextprotocol.io/sitemap.xml`
   - Understand the API you're integrating
   - Plan tool selection prioritizing comprehensive API coverage

2. **Phase 2: Set Up Project**

   For TypeScript (recommended):
   ```bash
   npm init -y
   npm install @modelcontextprotocol/sdk zod
   ```

   For Python:
   ```bash
   pip install mcp pydantic
   ```

3. **Implement Core Infrastructure**
   - API client with authentication
   - Error handling helpers with actionable messages
   - Response formatting (JSON/Markdown)
   - Pagination support

4. **Implement Tools**

   Each tool needs:
   - **Input Schema**: Use Zod (TypeScript) or Pydantic (Python)
   - **Output Schema**: Define `outputSchema` for structured data
   - **Clear Description**: Concise summary with parameter descriptions
   - **Annotations**: readOnlyHint, destructiveHint, idempotentHint

   ```typescript
   server.registerTool({
     name: "github_create_issue",
     description: "Create a new issue in a GitHub repository",
     inputSchema: z.object({
       repo: z.string().describe("Repository in owner/name format"),
       title: z.string().describe("Issue title"),
       body: z.string().optional()
     }),
     annotations: { destructiveHint: false, idempotentHint: false }
   });
   ```

5. **Phase 3: Test**
   ```bash
   # TypeScript
   npm run build
   npx @modelcontextprotocol/inspector

   # Python
   python -m py_compile your_server.py
   ```

6. **Phase 4: Create Evaluations**
   - Create 10 complex, realistic test questions
   - Each question should require multiple tool calls
   - Verify answers are stable and verifiable

## Error Handling

- Return actionable error messages that guide toward solutions
- Include specific suggestions and next steps
- Handle rate limiting gracefully

## Notes

- Use consistent tool naming prefixes (e.g., `github_create_issue`)
- Balance API coverage with workflow convenience tools
- Transport: Streamable HTTP for remote, stdio for local
- Return both text content and structured data

Source: anthropics/skills

Files in this skill

  • manifest.json352 B
  • skill.md2.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.