fastmcp
FastMCP TypeScript framework patterns for MCP servers. Auto-loads when building MCP servers, creating tools/resources/prompts, implementing authentication, configuring transports, or working with FastMCP in TypeScript.
npx skills add majiayu000/claude-skill-registry --skill fastmcp-jpoutrin-product-forge --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# FastMCP Development Skill FastMCP is a TypeScript framework for building Model Context Protocol (MCP) servers. This skill provides patterns for tools, resources, prompts, authentication, and transport configuration. ## Installation ```bash npm install fastmcp ``` ## Basic Server Setup ```typescript import { FastMCP } from "fastmcp"; import { z } from "zod"; const server = new FastMCP({ name: "My Server", version: "1.0.0", }); server.start({ transportType: "stdio" }); ``` ## Tools ### Basic Tool with Zod Schema ```typescript server.addTool({ name: "add", description: "Add two numbers", parameters: z.object({ a: z.number(), b: z.number(), }), execute: async (args) => { return String(args.a + args.b); }, }); ``` ### Tool Without Parameters ```typescript server.addTool({ name: "sayHello", description: "Say hello", execute: async () => { return "Hello, world!"; }, }); ``` ### Tool with Logging ```typescript server.addTool({ name: "download", parameters: z.object({ url: z.string() }), execute: async (args, { log }) => { log.info("Downloading file...", { url: args.url }); // ... process ... log.info("Downloaded file"); return "done"; }, }); ``` ### Tool with Progress Reporting ```typesc
- Installation
- Basic Server Setup
- Tools
- Basic Tool with Zod Schema
- Tool Without Parameters
- Tool with Logging
- Tool with Progress Reporting
- Tool with Streaming Output
- Tool with Multiple Content Types
- Tool with Image Content
- Tool with Audio Content
- Tool with Error Handling
- Tool with Annotations
- Tool with Authorization
npm install fastmcp Development mode with hot reload npx fastmcp dev src/server.ts HTTP streaming transport npx fastmcp dev src/server.ts --transport http-stream --port 8080 Stateless mode npx fastmcp dev src/server.ts --transport http-stream --port 8080 --stateless true Or via environment variable
What does the fastmcp skill do?
FastMCP TypeScript framework patterns for MCP servers. Auto-loads when building MCP servers, creating tools/resources/prompts, implementing authentication, configuring transports, or working with FastMCP in TypeScript.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill fastmcp-jpoutrin-product-forge --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
