# fastmcp

> MCP Server

FastMCP is a TypeScript framework for building MCP servers that handle client sessions, offering features like authentication, logging, SSE, error handling, and prompt argument auto-completion. It also includes a CLI

## Overview

- **Category:** Developer Tools
- **Language:** TypeScript
- **Stars:** 3251
- **Forks:** 52
- **Owner:** punkpeye
- **GitHub:** https://github.com/punkpeye/fastmcp
- **Created:** 2024-12-27T02:12:31+00:00
- **Updated:** 2025-03-28T23:24:52+00:00
- **Source:** https://model-context-protocol.com/servers/typescript-mcp-server-framework-fastmcp

## Setup

## Setup

1.  Install the package: `npm install fastmcp`
2.  Clone the repository: `git clone https://github.com/punkpeye/fastmcp.git`
3.  Change directory: `cd fastmcp`
4.  Install dependencies: `npm install`
5.  Test the addition server example using CLI: `npx fastmcp dev src/examples/addition.ts`
6.  Test the addition server example using MCP Inspector: `npx fastmcp inspect src/examples/addition.ts`

## Tools

## Available Tools

- Simple Tool, Resource, Prompt definition
- Authentication
- Sessions
- Image content
- Logging
- Error handling
- SSE
- CORS (enabled by default)
- Progress notifications
- Typed server events
- Prompt argument auto-completion
- Sampling
- Automated SSE pings
- Roots
- CLI for testing and debugging
