jezweb/mcp-builder

Construisez des serveurs MCP en Python avec FastMCP. Définissez des outils / ressources / prompts, construisez le serveur, testez localement, déployez sur FastMCP Cloud ou Docker.

Qu'est-ce que mcp-builder ?

Ce skill permet de construire des serveurs MCP (Model Context Protocol) en Python en utilisant le framework FastMCP. Il est conçu pour les développeurs qui souhaitent exposer des outils, des ressources et des prompts à des LLMs comme Claude. Le skill guide l'utilisateur à travers toutes les étapes : définition des composants (tools, resources, prompts), construction du serveur FastMCP, test local avec des clients MCP, et déploiement sur FastMCP Cloud ou via Docker. Il est particulièrement utile pour le dépannage des erreurs courantes liées aux serveurs modulaires FastMCP, au stockage, au lifespan, au middleware, à l'authentification OAuth et aux déploiements. Le skill supporte les plateformes Claude Code, Cursor, et d'autres agents compatibles MCP. En utilisant `uv` pour la gestion des dépendances Python, il assure un environnement reproductible et simplifie le processus de build.

Compatible avec✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/jezweb/claude-skills/tree/main/skills/mcp-builder

Installed? Explore more Productivité et collaboration skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Que fait mcp-builder ?

Construisez des serveurs MCP en Python avec FastMCP. Définissez des outils / ressources / prompts, construisez le serveur, testez localement, déployez sur FastMCP Cloud ou Docker. Utilisez ce skill lorsque l'utilisateur mentionne la construction d'un serveur MCP, l'exposition d'outils aux LLMs, FastMCP, l'intégration avec Claude, ou le dépannage d'erreurs liées aux serveurs modulaires FastMCP, au stockage, au lifespan, au middleware, à OAuth ou au déploiement.

Prérequis

  • Python 3.10+
  • uv (recommandé) ou pip
  • Compte FastMCP Cloud (optionnel pour le déploiement cloud)
  • Docker (optionnel pour le déploiement Docker)

Utilisation

1. Initialiser un nouveau projet

uv init mcp-server
cd mcp-server
uv add fastmcp

2. Définir des outils

from fastmcp import FastMCP

mcp = FastMCP("Mon Serveur")

@mcp.tool()
def calculer(a: int, b: int) -> int:
    """Additionne deux nombres."""
    return a + b

3. Définir des ressources

@mcp.resource("config://app")
def get_config() -> str:
    """Récupère la configuration."""
    return "{\"theme\": \"dark\"}"

4. Définir des prompts

@mcp.prompt()
def salutation(nom: str) -> str:
    return f"Bonjour {nom}, comment puis-je vous aider ?"

5. Tester localement

# Avec l'inspector MCP
mcp dev main.py

# Ou avec un client MCP comme Claude Code
mcp run main.py

6. Déployer sur FastMCP Cloud

mcp deploy main.py

7. Déployer avec Docker

FROM python:3.11-slim
WORKDIR /app
COPY . .
RUN pip install fastmcp
CMD ["mcp", "run", "main.py"]

Construire et exécuter :

docker build -t mcp-server .
docker run -p 8000:8000 mcp-server

Dépannage

  • Erreur de serveur modulaire : Assurez-vous que toutes les fonctions de tool/resource/prompt sont définies avec les bons décorateurs et que FastMCP est correctement instancié.
  • Erreur de stockage : Vérifiez que les chemins de stockage sont accessibles et que les permissions sont correctes.
  • Erreur de lifespan : Utilisez @mcp.lifespan() pour gérer les cycles de vie du serveur.
  • Erreur de middleware : Configurez le middleware via mcp.add_middleware().
  • Erreur OAuth : Assurez-vous que les flux OAuth sont correctement configurés dans FastMCP.
  • Erreur de déploiement : Vérifiez que les variables d'environnement nécessaires sont définies et que le réseau est accessible.

Ressources supplémentaires

Ce skill est maintenu par jezweb. Signalez les problèmes sur GitHub.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

jezweb/ai-image-generator

Generate AI images using Gemini or GPT APIs directly. Covers model selection (Gemini for scenes; GPT Image 2 for text rendering, batch variations, multi-reference compositing; GPT Image 1.5 for transparent icons), the 5-part prompting framework, API calling patterns, multi-turn editing, and quality assurance. Produces photorealistic scenes, icons, illustrations, OG images, posters, infographics, and product shots. Use when building websites that need images, creating marketing assets, or generating visual content. Triggers: 'generate image', 'ai image', 'create hero image', 'make an icon', 'generate illustration', 'create og image', 'poster', 'infographic', 'image variations', 'gpt-image-2', 'ai art', 'image generation'.

jezweb/aussie-business-english

Australian business English writing style for professional communications — warm, direct, EN-AU spelling (colour, organise, centre). Use whenever the user is writing for an Australian audience: emails, chat messages, proposals, client communications, blog posts, web copy, or any business writing. Apply to drafting, editing, and tone-checking professional text.

jezweb/claude-skills

Generate project documentation from codebase analysis — ARCHITECTURE.md, API_ENDPOINTS.md, DATABASE_SCHEMA.md. Reads source code, schema files, routes, and config to produce accurate, structured docs. Use when starting a project, onboarding contributors, or when docs are missing or stale. Triggers: 'generate docs', 'document architecture', 'create api docs', 'document schema', 'project documentation', 'write architecture doc'.

jezweb/claude-skills

Agent skill at plugins/social-media/skills/social-media-posts/SKILL.md

jezweb/claude-skills

Generate a complete, deployable landing page from a brief. Produces a single self-contained HTML file with Tailwind CSS (via CDN), responsive design, dark mode, semantic HTML, and OG meta tags. Sections: hero with CTA, features, social proof, pricing (optional), FAQ, footer. Use when building a marketing page, product launch page, coming soon page, or any standalone landing page. Triggers: 'landing page', 'create a page', 'marketing page', 'launch page', 'coming soon page', 'one-page site'.

jezweb/cloudflare-worker-builder

Scaffold and deploy Cloudflare Workers with Hono routing, Vite plugin, and Static Assets. Describe project, scaffold structure, configure bindings, deploy. Use whenever the user wants to create a Worker project, set up Hono on Cloudflare, configure D1 / R2 / KV / Queues bindings, or troubleshoot Worker export syntax, API route conflicts, HMR issues, or deployment failures.

jezweb/color-palette

Generate complete, accessible colour palettes from a single brand hex. Produces 11-shade scale (50-950), semantic tokens, dark mode variants, Tailwind v4 CSS output, WCAG contrast checks. Use whenever the user supplies a brand hex and asks for a palette, mentions setting up a design system, wants Tailwind theme colours from a brand colour, or asks to check colour accessibility / contrast.

jezweb/d1-drizzle-schema

Generate Drizzle ORM schemas for Cloudflare D1 databases with correct D1-specific patterns. Produces schema files, migration commands, type exports, and DATABASE_SCHEMA.md documentation. Handles D1 quirks: foreign keys always enforced, no native BOOLEAN/DATETIME types, 100 bound parameter limit, JSON stored as TEXT. Use when creating a new database, adding tables, or scaffolding a D1 data layer.

jezweb/elevenlabs-agents

Build conversational AI voice agents on the ElevenLabs platform. Configure agent + tools + knowledge base, integrate SDK (React / React Native / Swift / JS / server-side), test, deploy. Use whenever the user mentions ElevenLabs, building a voice agent, an AI phone system, an AI receptionist, conversational AI, or troubleshooting deprecated @11labs packages, webhook errors, CSP violations, localhost allowlist, or tool parsing errors.

jezweb/fastapi

Build Python APIs with FastAPI, Pydantic v2, and SQLAlchemy 2.0 async. Covers project structure, JWT auth, validation, and database integration with uv package manager. Prevents 7 documented errors. Use when: creating Python APIs, implementing JWT auth, or troubleshooting 422 validation, CORS, async blocking, form data, background tasks, or OpenAPI schema errors.

jezweb/favicon-gen

Generate custom favicons from logos, text, or brand colours. Produces favicon.svg, favicon.ico, apple-touch-icon.png, icon-192/512.png, and web manifest. Use whenever the user wants a favicon, mentions replacing a CMS default favicon, converting a logo into a favicon, creating branded initials icons, or troubleshooting favicon not displaying / iOS black square / missing manifest.

jezweb/github-release

Prepare and publish GitHub releases. Sanitizes code for public release (secrets scan, personal artifacts, LICENSE/README validation), creates version tags, and publishes via gh CLI. Trigger with 'release', 'publish', 'open source', 'prepare for release', 'create release', or 'github release'.

jezweb/google-apps-script

Build Google Apps Script automation for Sheets and Workspace. Custom menus, triggers (onEdit / time-driven / form submit), dialogs, sidebars, email batches, PDF export, external API. Use whenever the user wants to automate a Google Sheet, build a Sheets menu / sidebar / dialog, hit a Sheets row from email or a webhook, schedule a Sheets workflow, or asks 'how do I script this in Sheets'.

jezweb/google-chat-messages

Send Google Chat messages via incoming webhooks — text, rich cards (cardsV2), threaded replies. TypeScript types, card builder utility, widget reference inline. Use whenever the user wants to post to Google Chat from a script, build a chatbot reply, send a notification card, build a Google Chat webhook integration, or troubleshoot card / threading issues.

jezweb/hono-api-scaffolder

Scaffold Hono API routes for Cloudflare Workers. Produces route files, middleware, typed bindings, Zod validation, error handling, and API_ENDPOINTS.md documentation. Use after a project is set up with cloudflare-worker-builder or vite-flare-starter, when you need to add API routes, create endpoints, or generate API documentation.

jezweb/icon-set-generator

Generate cohesive, project-specific SVG icon sets for websites and applications. Use this skill whenever the user needs custom icons, an icon set for a website or app, icons for a client project, or mentions needing SVG icons that look consistent together. Also trigger when the user describes a project and icons would naturally be part of the deliverable — e.g. 'I'm building a site for a plumber' implies they'll need service icons. Trigger on: 'icons for', 'icon set', 'custom icons', 'SVG icons', 'make me icons', 'I need icons', 'website icons', 'project icons', or any request for consistent visual assets for a web project. Produces individual SVG files with a consistent style engine, not generic icon library lookups.

jezweb/image-processing

Process images for web development — resize, crop, trim whitespace, convert formats (PNG/WebP/JPG), optimise file size, generate thumbnails, create OG card images. Uses Pillow (Python) — no ImageMagick needed. Trigger with 'resize image', 'convert to webp', 'trim logo', 'optimise images', 'make thumbnail', 'create OG image', 'crop whitespace', 'process image', or 'image too large'.

jezweb/nextjs

Build Next.js 16 apps with App Router, Server Components/Actions, Cache Components ("use cache"), and async route params. Includes proxy.ts and React 19.2. Prevents 25 documented errors. Use when: building Next.js 16 projects, or troubleshooting async params (Promise types), "use cache" directives, parallel route 404s, Turbopack issues, i18n caching, navigation throttling.

jezweb/project-health

All-in-one project configuration and health management. Sets up new projects (settings.local.json, CLAUDE.md, .gitignore), audits existing projects (permissions, context quality, MCP coverage, leaked secrets, stale docs), tidies accumulated cruft, captures session learnings, and adds permission presets. Uses sub-agents for heavy analysis to keep main context clean. Trigger with 'project health', 'check project', 'setup project', 'kickoff', 'bootstrap', 'tidy permissions', 'clean settings', 'capture learnings', 'audit context', 'add python permissions', or 'init project'.

jezweb/react-hook-form-zod

Build type-safe validated forms using React Hook Form v7 and Zod v4. Single schema works on client and server with full TypeScript inference via z.infer. Use when building forms, multi-step wizards, or fixing uncontrolled warnings, resolver errors, useFieldArray issues, performance problems with large forms.

Skills associés