π
Fastmcp Sentry Demo
Sample FastMCP server with Sentry MCP tracing
0 installs
Trust: 34 β Low
Analytics
Ask AI about Fastmcp Sentry Demo
Powered by Claude Β· Grounded in docs
I know everything about Fastmcp Sentry Demo. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
fastmcp-sentry
A sample FastMCP server with Sentry MCP tracing.
Setup
Requires Python 3.13+, uv, and Node.js (for the MCP Inspector).
git clone https://github.com/obostjancic/fastmcp-sentry-demo.git
cd fastmcp-sentry-demo
uv sync
Create a .env file with your Sentry DSN:
SENTRY_DSN=https://your-key@your-org.ingest.sentry.io/your-project
Run
source .env && uv run python server.py
Starts the MCP server on http://localhost:8000 (streamable-http transport).
To also launch the MCP Inspector:
./dev.sh
What's inside
| Type | Name | Description |
|---|---|---|
| Tool | search_books | Search books by title/author, optional min_rating filter |
| Tool | add_book | Add a new book (ISBN, title, author, year, optional rating) |
| Prompt | recommend_books | Ask an LLM to recommend books in a genre |
| Prompt | summarize_book | Ask for a concise summary of a book |
| Resource | bookshelf://catalog | Full JSON catalog |
| Resource | bookshelf://stats | Aggregate stats (count, avg rating, year range) |
Sentry integration

The Sentry SDK is initialized with MCPIntegration() β every tool call, prompt render, and resource read is traced automatically. The DSN comes from the SENTRY_DSN env var.
