mcp-samply
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_SAMPLY_BIN | No | Path to the samply executable. If `samply` is not on PATH, set MCP_SAMPLY_BIN to an absolute executable path (e.g. "samply"). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| samply_doctorA | Check whether the samply binary is available for this MCP server and report the current execution environment. |
| samply_recordA | Run |
| samply_summarize_profileA | Load a samply / Firefox Profiler JSON file and return a compact, agent-friendly performance summary. If profilePath is omitted, the latest profile from this MCP session is used. |
| samply_inspect_threadA | Inspect one thread in detail, including its hottest functions and most common stacks. The thread argument accepts either the numeric thread index from samply_summarize_profile or a thread name substring. |
| samply_search_functionsB | Search for function names or library names within a profile and return per-thread sample counts for matching hotspots. |
| samply_breakdown_subsystemsB | Group hot functions by Rust / C++ namespace prefix so agents can identify which native subsystems dominate a profile. This is useful for Rspack and other native-heavy builds. |
| samply_focus_functionsA | Find the hottest sample contexts around a target function or namespace. Each matching sample is counted once using its deepest matching frame. |
| samply_locate_symbolsA | Map native stack symbols back to likely source files in one or more local code roots. This is useful after hotspot analysis when an agent needs to inspect the implementation. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Each tool has a distinct role in the profiling workflow: recording, environment check, overall summary, thread inspection, function search, subsystem breakdown, focused contexts, and source mapping. Search vs. focus and thread inspect vs. summary can overlap conceptually, but the descriptions make their outputs and use cases sufficiently distinct.
All tools use a consistent samply_ prefix and snake_case, with mostly verb_noun naming such as summarize_profile, inspect_thread, and search_functions. The main minor deviation is samply_doctor, which is noun-based rather than verb-based.
Eight tools is well-scoped for a profiler MCP server, covering setup, recording, and multiple analysis angles without excessive redundancy. Each tool appears to earn its place in the workflow.
The surface covers the core profiling lifecycle from binary/environment checking through recording, summarization, thread/function inspection, subsystem breakdown, and symbol resolution. Minor gaps exist around explicit profile listing/comparison or report export, but agents can work around them.