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

Capabilities

Features and capabilities supported by this server

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.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LBurny/pyspy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server