About
Go Process Inspector (gospy) is a debugging and analysis tool for inspecting running Go processes in real-time. It provides deep visibility into goroutine states, memory allocation, and runtime information through both an interactive terminal interface and a programmatic HTTP API. Key features of Go Process Inspector: - Live goroutine inspection with status, scheduling info, and stack traces for debugging deadlocks and performance issues - Memory statistics analysis including heap usage, garbage collection metrics, and allocation patterns - Binary information retrieval to understand compiled Go applications - Interactive terminal UI with search, filter, and refresh capabilities for exploring process data - HTTP API endpoints for integration with external tools and automated monitoring - MCP server support via Server-Sent Events for AI assistant integration - Cross-platform support for Linux and macOS (Apple Silicon)
README
Go Process Inspector
[](https://goreportcard.com/report/github.com/monsterxx03/gospy) [](LICENSE) [](https://cursor.com/install-mcp?name=gospy&config=eyJ1cmwiOiJodHRwOi8vbG9jYWxob3N0Ojg5NzQvbWNwIn0%3D)
A tool for inspecting and analyzing running Go processes, including goroutine states, memory statistics, and binary information.
Features
Installation
go install github.com/monsterxx03/gospy@latest
Usage
CLI Interface
# Interactive terminal UI
sudo gospy top --pid HTTP API server
sudo gospy serve --port 8974Get process summary
sudo gospy summary --pid Get process summary in JSON format
sudo gospy summary --pid --json
#### Summary Command Options
--pid/-p - Target process ID (required)--bin/-b - Path to binary file (optional)--json/-j - Output results in JSON formatAPI Endpoints
GET /goroutines?pid= - List all goroutinesGET /memstats?pid= - Get memory statisticsGET /runtime?pid= - Get runtime version infoMCP Server
The MCP server provides an http (streamableHTTP) endpoint. To enable:
>>> sudo gospy serve --enable-mcp --port 8974Starting API server on port 8974
Endpoints:
GET /runtime?pid= - Get runtime info
GET /goroutines?pid= - Get goroutines list
GET /memstats?pid= - Get memory stats
GET /mcp - MCP http endpoint
Available MCP tools:
goroutines - Dump goroutines for a go processgomemstats - Dump memory stats for a go processgoruntime - Dump runtime info for a go processpgrep - Find pid from process nameConfig in cursor
Terminal UI Controls
q - Quitr - Refresh datas - Suspend/Resume top view/ - Search/filter goroutinesTerminal UI Screenshot
Building from Source
git clone https://github.com/monsterxx03/gospy.git
cd gospy
make
Requirements
Root Privileges
gospy requires root privileges to:
Run with sudo:
sudo gospy top --pid
For development/debugging, you may want to:
1. Build the binary first: make
2. Run with sudo: sudo ./gospy [command]
Credits
Version 0.7.0 was completely rewritten from scratch with aider, which wrote >90% of the code. Additional assistance from:
Total AI compute cost: ~$2 USD
License
MIT - See LICENSE file for details.
Related MCP Servers
AI Research Assistant
hamid-vakilzadeh
AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar
Linkup
LinkupPlatform
Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages
Math-MCP
EthanHenrickson
Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support