You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The server will start up and the UI will be accessible at `http://localhost:6274`.
31
31
32
+
### Docker Container
33
+
34
+
You can also start it in a Docker container with the following command:
35
+
36
+
```bash
37
+
docker run --rm --network host -p 6274:6274 -p 6277:6277 ghcr.io/modelcontextprotocol/inspector:latest
38
+
```
39
+
32
40
### From an MCP server repository
33
41
34
42
To inspect an MCP server implementation, there's no need to clone this repo. Instead, use `npx`. For example, if your server is built at `build/index.js`:
@@ -90,6 +98,16 @@ The MCP Inspector provides convenient buttons to export server launch configurat
90
98
}
91
99
```
92
100
101
+
**Streamable HTTP transport example:**
102
+
103
+
```json
104
+
{
105
+
"type": "streamable-http",
106
+
"url": "http://localhost:3000/mcp",
107
+
"note": "For Streamable HTTP connections, add this URL directly in your MCP Client"
108
+
}
109
+
```
110
+
93
111
-**Servers File** - Copies a complete MCP configuration file structure to your clipboard, with your current server configuration added as `default-server`. This can be saved directly as `mcp.json`.
94
112
95
113
**STDIO transport example:**
@@ -123,9 +141,23 @@ The MCP Inspector provides convenient buttons to export server launch configurat
123
141
}
124
142
```
125
143
144
+
**Streamable HTTP transport example:**
145
+
146
+
```json
147
+
{
148
+
"mcpServers": {
149
+
"default-server": {
150
+
"type": "streamable-http",
151
+
"url": "http://localhost:3000/mcp",
152
+
"note": "For Streamable HTTP connections, add this URL directly in your MCP Client"
153
+
}
154
+
}
155
+
}
156
+
```
157
+
126
158
These buttons appear in the Inspector UI after you've configured your server settings, making it easy to save and reuse your configurations.
127
159
128
-
For SSE transport connections, the Inspector provides similar functionality for both buttons. The "Server Entry" button copies the SSE URL configuration that can be added to your existing configuration file, while the "Servers File" button creates a complete configuration file containing the SSE URL for direct use in clients.
160
+
For SSE and Streamable HTTP transport connections, the Inspector provides similar functionality for both buttons. The "Server Entry" button copies the configuration that can be added to your existing configuration file, while the "Servers File" button creates a complete configuration file containing the URL for direct use in clients.
129
161
130
162
You can paste the Server Entry into your existing `mcp.json` file under your chosen server name, or use the complete Servers File payload to create a new configuration file.
131
163
@@ -166,6 +198,16 @@ If you need to disable authentication (NOT RECOMMENDED), you can set the `DANGER
166
198
DANGEROUSLY_OMIT_AUTH=true npm start
167
199
```
168
200
201
+
---
202
+
203
+
**🚨 WARNING 🚨**
204
+
205
+
Disabling authentication with `DANGEROUSLY_OMIT_AUTH` is incredibly dangerous! Disabling auth leaves your machine open to attack not just when exposed to the public internet, but also **via your web browser**. Meaning, visiting a malicious website OR viewing a malicious advertizement could allow an attacker to remotely compromise your computer. Do not disable this feature unless you truly understand the risks.
206
+
207
+
Read more about the risks of this vulnerability on Oligo's blog: [Critical RCE Vulnerability in Anthropic MCP Inspector - CVE-2025-49596](https://www.oligo.security/blog/critical-rce-vulnerability-in-anthropic-mcp-inspector-cve-2025-49596)
208
+
209
+
---
210
+
169
211
You can also set the token via the `MCP_PROXY_AUTH_TOKEN` environment variable when starting the server:
170
212
171
213
```bash
@@ -234,6 +276,78 @@ Example server configuration file:
234
276
}
235
277
```
236
278
279
+
#### Transport Types in Config Files
280
+
281
+
The inspector automatically detects the transport type from your config file. You can specify different transport types:
> **Tip:** You can easily generate this configuration format using the **Server Entry** and **Servers File** buttons in the Inspector UI, as described in the Servers File Export section above.
238
352
239
353
You can also set the initial `transport` type, `serverUrl`, `serverCommand`, and `serverArgs` via query params, for example:
0 commit comments