Debug MCP Server
Enables sharing and evaluating variables from Node.js debug sessions via the helper-node package, including custom-named variables and local scope sharing.
Enables sharing and evaluating variables from Python debug sessions via the debug_mcp helper, including sharing locals and listing shared variables.
Enables sharing and evaluating variables from Node.js/TypeScript debug sessions via the helper-node package.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Debug MCP Server
Share debugging session variables with AI assistants (Cursor, Claude, etc.) via Model Context Protocol (MCP).
Features
Multi-language support: Python, Node.js/TypeScript (more coming)
Easy to use: Just
share(variable)in your debug consoleExtensible: Add support for any language via the standard API
Works everywhere: Cursor, Claude Desktop, any MCP-compatible client
Related MCP server: DebugMCP
Quick Start
1. Install the MCP Server
Add to your MCP client configuration:
Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"debug": {
"command": "npx",
"args": ["@debug-mcp/server"]
}
}
}Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"debug": {
"command": "npx",
"args": ["@debug-mcp/server"]
}
}
}2. Install the Language Helper
Python:
pip install debug-mcpNode.js/TypeScript:
npm install -D @debug-mcp/helper-node3. Share Variables in Debug Session
Python (in Debug Console):
from debug_mcp import share
share(my_variable)
share(response.data, "api_response")Node.js (in Debug Console):
const { share } = require('@debug-mcp/helper-node');
share(myVariable);
share(myObject, 'customName');4. Ask the AI
Now in Cursor or Claude, just ask:
"What's in the
my_variabledebug variable?""Evaluate
len(response.data)in the Python debug session""Show me all shared variables"
Architecture
┌─────────────────────────────────────────────────────────────────────┐
│ Your Debug Session │
│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │
│ │ Python :9753 │ │ Node.js :9754 │ │ Go :9755 │ │
│ │ share(var) │ │ share(var) │ │ share(var) │ │
│ └────────┬────────┘ └────────┬────────┘ └────────┬────────┘ │
└───────────┼─────────────────────┼─────────────────────┼─────────────┘
│ HTTP │ HTTP │ HTTP
▼ ▼ ▼
┌─────────────────────────────────────────────────────────────────────┐
│ MCP Server (@debug-mcp/server) │
│ - Discovers language helpers automatically │
│ - Provides unified tools: get_variable, evaluate, list_sessions │
│ - Communicates via MCP protocol (stdio) │
└─────────────────────────────────────────────────────────────────────┘
│ MCP (stdio)
▼
┌─────────────────────────────────────────────────────────────────────┐
│ AI Assistant (Cursor / Claude) │
│ "What's in my_variable?" │
│ → Uses debug_get_variable("my_variable") tool │
│ → Gets serialized JSON response │
└─────────────────────────────────────────────────────────────────────┘Available MCP Tools
Tool | Description |
| List all active debug sessions |
| List shared variables from a session |
| Get value of a specific variable |
| Evaluate an expression in debug context |
| Get type info and attributes |
| Get all local variables from debug frame |
Language Helpers
Python (debug-mcp)
from debug_mcp import share, share_locals, list_shared
# Share a variable
share(my_variable) # Auto-detect name
share(obj, "custom_name") # Custom name
# Share all local variables
share_locals()
# List shared variables
list_shared()
# Quick aliases
from debug_mcp import s, sl, ls
s(my_var) # = share()
sl() # = share_locals()
ls() # = list_shared()Supported types: dict, list, tuple, set, dataclass, Pydantic models, Protobuf messages, NumPy arrays, Pandas DataFrames, any object with __dict__
Node.js/TypeScript (@debug-mcp/helper-node)
const { share, shareLocals, listShared } = require('@debug-mcp/helper-node');
// Share a variable
share(myVariable);
share(myObject, 'customName');
// Share local scope
shareLocals({ myVar, otherVar, config });
// List shared variables
listShared();
// Quick aliases
const { s, sl, ls } = require('@debug-mcp/helper-node');Supported types: primitives, objects, arrays, Map, Set, Date, RegExp, Error, Buffer, class instances
Configuration
Environment Variables
Variable | Default | Description |
|
| Port for helper server |
|
| Host for helper server |
Adding New Language Support
See docs/ADDING_LANGUAGE.md for a guide on implementing support for additional languages.
Development
# Clone the repo
git clone https://github.com/YOUR_USERNAME/debug-mcp-server.git
cd debug-mcp-server
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run the MCP server locally
node packages/mcp-server/dist/index.jsContributing
Contributions are welcome! See CONTRIBUTING.md for guidelines.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Live browser debugging for AI assistants — DOM, console, network via MCP.
Agent Replay Debugger MCP — record every agent step + deterministic replay. Step-debugger for
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Query application logs, traces, and metrics from your AI coding assistant via Foam's MCP server.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to perform interactive Python debugging with breakpoints, step execution, and variable inspection using the Debug Adapter Protocol (DAP) through an MCP server interface.81MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to debug code inside VS Code by setting breakpoints, stepping through execution, inspecting variables, and evaluating expressions across multiple languages.588MIT
- AlicenseNot gradedqualityBmaintenanceExposes VS Code's Debug Adapter Protocol as MCP tools, enabling AI coding agents to set breakpoints, step through code, inspect variables, and read exceptions in a real debug session.GPL 3.0

DOMRay MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to inspect active authenticated browser sessions and runtime state, capture user breadcrumbs and network/error telemetry, and generate Playwright/Cypress tests or MSW mock handlers through standard MCP tools.2MIT