You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Sentry JavaScript SDK supports MCP observability by wrapping the MCP Server from the [@modelcontextprotocol/sdk](https://www.npmjs.com/package/@modelcontextprotocol/sdk) package. This wrapper automatically captures spans for your MCP server workflows including tool executions, resource access, and client connections.
21
22
22
23
#### Quick Start with MCP Server
@@ -41,3 +42,40 @@ const server = Sentry.wrapMcpServerWithSentry(new McpServer({
41
42
42
43
...
43
44
```
45
+
46
+
### Python - MCP Server
47
+
48
+
<VersionRequirement
49
+
product="MCP Observability"
50
+
sdk="Python SDK"
51
+
minVersion="2.43.0"
52
+
/>
53
+
54
+
The Sentry Python SDK supports MCP observability for [FastMCP](https://gofastmcp.com/getting-started/welcome). The integration automatically captures spans for your MCP server workflows including tool executions, resource access, and prompt handling.
55
+
56
+
#### Quick Start with FastMCP
57
+
58
+
```python
59
+
import sentry_sdk
60
+
from mcp.server.fastmcp import FastMCP
61
+
62
+
# Sentry init needs to be above everything else
63
+
sentry_sdk.init(
64
+
dsn="___PUBLIC_DSN___",
65
+
traces_sample_rate=1.0,
66
+
# Optional: Enable to capture tool call arguments and results in Sentry, which may include PII
0 commit comments