URL: https://gofastmcp.com/servers/progress
Title: Progress Reporting - FastMCP

Documentation Index
Fetch the complete documentation index at:
/llms.txt
Use this file to discover all available pages before exploring further.
Skip to main content
Meet
Prefect Horizon
, the enterprise MCP gateway built by the team behind FastMCP
FastMCP
home page
v3
Prefect Horizon
PrefectHQ/fastmcp
25,596
PrefectHQ/fastmcp
25,596
Search...
Navigation
Interactivity
Progress Reporting
Search the docs...
Ctrl
K
Documentation
Get Started
Welcome!
Installation
Quickstart
Servers
Overview
Core Components
Working with Tools
MCP Providers
Interactivity
Elicitation
Sampling
Progress
Logging
Pagination
NEW
Icons
Extensibility
Auth
Deployment
Apps
Overview
Quickstart
NEW
FastMCPApp
NEW
Interactive Tools
NEW
Generative UI
NEW
Custom HTML
Reference
Clients
Overview
Client-Only Package
Transports
fastmcp-remote
Operations
UPDATED
Authentication
UPDATED
Integrations
Auth
Web Frameworks
AI Assistants
AI SDKs
MCP.json
More
Settings
CLI
Upgrading
Development
What's New
FAQ
On this page
Basic Usage
Progress Patterns
Client Requirements
Interactivity
Progress Reporting
Copy page
Update clients on the progress of long-running operations through the MCP context.
Copy page
Progress reporting allows MCP tools to notify clients about the progress of long-running operations. Clients can display progress indicators and provide better user experience during time-consuming tasks.
​
Basic Usage
Use
ctx.report_progress()
to send progress updates to the client. The method accepts a
progress
value representing how much work is complete, and an optional
total
representing the full scope of work.
from
fastmcp
import
FastMCP
,
Context
import
asyncio
mcp
=
FastMCP
(
"
ProgressDemo
"
)
@
mcp
.
tool
async
def
process_items
(
items
:
list
[
str
],
ctx
:
Context
)
->
dict
:
"""
Process a list of items with progress updates.
"""
total
=
len
(
items
)
results
=
[]
for
i
,
item
in
enumerate
(
items
):
await
ctx
.
report_progress
(
progress
=
i
,
total
=
total
)
await
asyncio
.
sleep
(
0.1
)
results
.
append
(
item
.
upper
())
await
ctx
.
report_progress
(
progress
=
total
,
total
=
total
)
return
{
"
processed
"
:
len
(
results
),
"
results
"
:
results
}
​
Progress Patterns
Pattern
Description
Example
Percentage
Progress as 0-100 percentage
progress=75, total=100
Absolute
Completed items of a known count
progress=3, total=10
Indeterminate
Progress without known endpoint
progress=files_found
(no total)
For multi-stage operations, map each stage to a portion of the total progress range. A four-stage operation might allocate 0-25% to validation, 25-60% to export, 60-80% to transform, and 80-100% to import.
​
Client Requirements
Progress reporting requires clients to support progress handling. Clients must send a
progressToken
in the initial request to receive progress updates. If no progress token is provided, progress calls have no effect (they don’t error).
See
Client Progress
for details on implementing client-side progress handling.
Sampling
Previous
Client Logging
Next
Ctrl
+I
discord
github
website
x
Powered by
This documentation is built and hosted on Mintlify, a developer documentation platform
Assistant
Responses are generated using AI and may contain mistakes.
\n\n
\n
\n \n
\n
