Install
Create a server
AFastMCP server turns plain TypeScript functions into MCP components. Input schemas are inferred from any Standard Schema-compatible library (Zod, Valibot, ArkType, …) and your handler’s argument types follow automatically.
Create server.ts:
server.ts
Run it
Use the bundled CLI to start the server. It runs TypeScript directly — no build step:Call it from a client
With the server running over HTTP, connect with theClient class:
client.ts
Where to next
Tools
Schemas, return-value conversion, and the full tool config surface.
Resources
Static resources, URI templates, and subscriptions.
Clients
Lifecycle, error handling, and multi-server connections.
CLI
Every
fastmcp command, including editor installs.