mcp-context-inspector

sohaibsohail98/mcp-context-inspector
★ 2 stars Python AI/LLM Updated 2d ago
Drop-in MCP server that records real per-session agent cost/token/tool metrics and renders a Context Window Explorer over an actual MCP handshake
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-context-inspecto": {
      "command": "uvx",
      "args": [
        "mcp-context-inspector"
      ]
    }
  }
}

Or install with pip: pip install mcp-context-inspector

README Excerpt

<p align="center"> <img src="assets/lumen-logo.svg" alt="Lumen" width="360"> </p> <p align="center"> A drop-in MCP server that gives Claude Code, Bedrock-based agents, and other MCP/LLM clients real per-session cost, token, and tool metrics, plus a full <strong>Context Window Explorer</strong>, over a real MCP handshake.

Tools (13)

CHAT_UI_ORIGINDEV_MODE_SUBSMCP_ALLOWED_HOSTSPUBLIC_ORIGINSTORAGE_BACKENDget_agent_traceget_context_timelineget_cost_estimateget_recent_sessionsget_session_metricsget_token_breakdownget_tool_metricsrecord_session

Topics

anthropiccontext-windowdynamodbllm-agentmcpmodel-context-protocolobservabilitypython