Self-Hosting MCP Inspector
Deploy the MCP Inspector to your own infrastructure with a single Docker container. Perfect for enterprise environments, air-gapped networks, or when you need full control over your debugging environment.Quick Deploy
CLI Usage
You can also run the inspector using the CLI. See the CLI Usage guide for command-line options and examples.Docker Deployment
Using Docker Run
Deploy locally or on any Docker-compatible infrastructure:Using Docker Compose
For more complex deployments with environment variables:Environment Variables
All configuration is optional. The inspector works out of the box with sensible defaults.
| Variable | Default | Description |
|---|---|---|
NODE_ENV | production | Node.js environment |
PORT | 8080 | Port to run the inspector on |
HOST | 0.0.0.0 | Host to bind to |
MCP_INSPECTOR_FRAME_ANCESTORS | 'self' in production, * in dev | Configure which origins can embed inspector widgets in iframes. Use space-separated origins (e.g., "https://app.example.com https://dev.example.com") or * for all. |