fastmcp
View on GitHubA TypeScript framework for building MCP servers.
FastMCP is a TypeScript framework built on the official MCP SDK that removes boilerplate for defining tools, resources, and prompts, with auth, OpenAPI conversion, HTTP streaming/SSE, and edge/serverless support. Note: it targets legacy handshake MCP revisions, not the newer stateless spec.
Use Cases
Build MCP servers in TypeScript with minimal boilerplateConvert OpenAPI specs into MCP toolsAdd OAuth authentication to MCP serversServe MCP over HTTP streaming or SSEDeploy MCP servers on edge runtimes and serverlessAdd custom REST/webhook routes alongside MCP endpointsTest and debug MCP servers with the bundled CLI and InspectorUnit test MCP servers with an in-memory transport
Built With
- Language
- TypeScript
- Frameworks
- Hono · Zod · Model Context Protocol SDK · Vitest · tsup · AJV · jose · yargs · Swagger Parser · mcp-proxy · Fuse.js · Node.js
Tags
mcp · mcp-server · typescript · sse · http-streaming · oauth · openapi · sessions · edge-runtime · stdio · authentication · hono · zod · cli · server-framework · stateless-mode