| Crates.io | mcpeek |
| lib.rs | mcpeek |
| version | 0.1.1 |
| created_at | 2025-11-22 04:09:00.775202+00 |
| updated_at | 2025-11-24 19:30:25.895861+00 |
| description | A TUI MCP inspector |
| homepage | |
| repository | https://github.com/subpop/mcpeek |
| max_upload_size | |
| id | 1944699 |
| size | 544,532 |
A Rust CLI tool for inspecting and interacting with Model Context Protocol (MCP) servers.

Interactive Terminal User Interface:
Full MCP Support:
cargo build --release
The binary will be available at target/release/mcpeek.
Launch the interactive terminal interface to explore an MCP server:
mcpeek <server-command> [server-args...]
Examples:
# Connect to a Node.js MCP server
mcpeek node /path/to/server.js
# Connect to a Python MCP server
mcpeek python -m my_mcp_server
# With uvx
mcpeek uvx mcp-server-git
TUI Controls:
Tab / ←/→: Switch between tabs (Tools, Prompts, Resources, Server Info, Logs)↑/↓: Navigate items in lists (or scroll logs in Logs tab)Enter: View detailed information about selected itemC: Call/execute the selected tool (in Tools tab)E: Jump to end of logs (in Logs tab)R: Refresh current tabEsc: Close detail view or cancel tool call inputQ: Quit applicationTool Calling (in Tools tab):
When you press C on a selected tool:
Tab / Shift+TabEnter to execute the tool callEsc to cancelTabs:
Enable debug logging to stderr:
mcpeek --debug node server.js
src/
├── main.rs # CLI entry point and TUI event loop
├── mcp/
│ ├── mod.rs # Module exports
│ ├── client.rs # MCP client with JSON-RPC over stdio
│ └── protocol.rs # MCP protocol types and messages
└── tui/
├── mod.rs # TUI module exports
├── app.rs # Application state management
└── ui.rs # UI rendering logic
MCP Client (mcp/client.rs):
Protocol Types (mcp/protocol.rs):
TUI (tui/):
This tool implements the MCP protocol version 2024-11-05 and supports:
Run in development mode:
# Run the TUI
cargo run -- <server-command> [args...]
# With debug logging
cargo run -- --debug <server-command> [args...]
MIT License - see LICENSE for details.
Contributions are welcome! Areas for enhancement:
Made with ❤️. Fueled by ☕️ and 🤖.