URL: https://gofastmcp.com/clients/progress
Title: Progress Monitoring - 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
Operations
Progress Monitoring
Search the docs...
Ctrl
K
Documentation
Get Started
Welcome!
Installation
Quickstart
Servers
Overview
Core Components
Working with Tools
MCP Providers
Interactivity
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
Tools
Resources
Prompts
Sampling
Elicitation
Tasks
NEW
Progress
Logging
Roots
Notifications
Authentication
UPDATED
Integrations
Auth
Web Frameworks
AI Assistants
AI SDKs
MCP.json
More
Settings
CLI
Upgrading
Development
What's New
FAQ
On this page
Progress Handler
Per-Call Handler
Operations
Progress Monitoring
Copy page
Handle progress notifications from long-running server operations.
Copy page
New in version
2.3.5
Use this when you need to track progress of long-running operations.
MCP servers can report progress during operations. The client receives these updates through a progress handler.
​
Progress Handler
Set a handler when creating the client:
from
fastmcp
import
Client
async
def
progress_handler
(
progress
:
float
,
total
:
float
|
None
,
message
:
str
|
None
)
->
None
:
if
total
is
not
None
:
percentage
=
(
progress
/
total
)
*
100
print
(
f
"Progress:
{
percentage
:.1f
}
% -
{
message
or
''
}
"
)
else
:
print
(
f
"Progress:
{
progress
}
-
{
message
or
''
}
"
)
client
=
Client
(
"
my_mcp_server.py
"
,
progress_handler
=
progress_handler
)
The handler receives three parameters:
Handler Parameters
​
progress
float
Current progress value
​
total
float | None
Expected total value (may be None if unknown)
​
message
str | None
Optional status message
​
Per-Call Handler
Override the client-level handler for specific tool calls:
async
with
client
:
result
=
await
client
.
call_tool
(
"
long_running_task
"
,
{
"
param
"
:
"
value
"
},
progress_handler
=
my_progress_handler
)
Background Tasks
Previous
Server 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
