Skip to main content
Glama
LBurny

py-spy MCP Server

by LBurny

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

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

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
record_profileA

Record a sampling profile of a Python process or command.

dump_stacksA

Dump the current Python call stacks of a process.

list_python_processesA

List running Python processes on this machine.

Returns: A table of PID, memory usage, and command line.

analyze_profileA

Analyze an existing py-spy profile and return the hottest frames.

compare_profilesA

Compare two speedscope profiles and show percentage changes.

top_profileA

Run a live py-spy top view for a few seconds and return the summary.

On Windows, py-spy top cannot be captured through a pipe, so this tool falls back to a short record --format raw sample and returns the hottest frames instead of raw top output.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
python_processes_resourceReturn a JSON list of currently running Python processes.

TDQS

A4/5.0

Scored across 6 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: listing processes, recording, analyzing, comparing, dumping stacks, and live top view. No two tools overlap, making selection unambiguous for an agent.

Naming Consistency4/5

Most tools follow a verb_noun pattern (e.g., list_python_processes, record_profile). The tool 'top_profile' deviates slightly by using 'top' as a verb, but it is still interpretable. Overall consistent.

Tool Count5/5

With 6 tools, the set covers all essential py-spy operations without being excessive. Each tool earns its place for a focused profiling server.

Completeness5/5

The tools cover the full lifecycle of profiling: process discovery, recording, analysis, comparison, stack inspection, and live monitoring. No major gaps are apparent for the intended use case.

Maintenance

ActivityStale
ResponsivenessNo issues